f71561e3 by 任超

style:字典

1 parent 079f16be
...@@ -68,12 +68,12 @@ export default { ...@@ -68,12 +68,12 @@ export default {
68 render: (h, scope) => { 68 render: (h, scope) => {
69 return ( 69 return (
70 <div> 70 <div>
71 <el-input placeholder="字典项编码" disabled={this.details.isenable === '0'} v-show={scope.row.codeShow} v-fo value={scope.row[scope.column.property]} 71 <el-input placeholder="字典项编码" disabled={this.details.isenable == 2} v-show={scope.row.codeShow} v-fo value={scope.row[scope.column.property]}
72 onFocus={() => { this.itemShowFalse(); scope.row.codeShow = true; }} 72 onFocus={() => { this.itemShowFalse(); scope.row.codeShow = true; }}
73 onInput={(val) => { scope.row[scope.column.property] = val }} maxlength='8'></el-input> 73 onInput={(val) => { scope.row[scope.column.property] = val }} maxlength='8'></el-input>
74 74
75 75
76 <el-input placeholder="字典项编码" disabled={this.details.isenable === '0'} v-show={!scope.row.codeShow} value={scope.row[scope.column.property]} 76 <el-input placeholder="字典项编码" disabled={this.details.isenable == 2} v-show={!scope.row.codeShow} value={scope.row[scope.column.property]}
77 onFocus={() => { this.itemShowFalse(); scope.row.codeShow = true; }} 77 onFocus={() => { this.itemShowFalse(); scope.row.codeShow = true; }}
78 onInput={(val) => { scope.row[scope.column.property] = val }} maxlength='8'></el-input> 78 onInput={(val) => { scope.row[scope.column.property] = val }} maxlength='8'></el-input>
79 </div> 79 </div>
...@@ -86,11 +86,11 @@ export default { ...@@ -86,11 +86,11 @@ export default {
86 render: (h, scope) => { 86 render: (h, scope) => {
87 return ( 87 return (
88 <div> 88 <div>
89 <el-input placeholder="字典项编码" disabled={this.details.isenable === '0'} v-show={scope.row.nameShow} v-fo value={scope.row[scope.column.property]} 89 <el-input placeholder="字典项编码" disabled={this.details.isenable == 2} v-show={scope.row.nameShow} v-fo value={scope.row[scope.column.property]}
90 onFocus={() => { this.itemShowFalse(); scope.row.nameShow = true; }} 90 onFocus={() => { this.itemShowFalse(); scope.row.nameShow = true; }}
91 onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> 91 onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
92 92
93 <el-input placeholder="字典项名称" disabled={this.details.isenable === '0'} v-show={!scope.row.nameShow} value={scope.row[scope.column.property]} 93 <el-input placeholder="字典项名称" disabled={this.details.isenable == 2} v-show={!scope.row.nameShow} value={scope.row[scope.column.property]}
94 onFocus={() => { this.itemShowFalse(); scope.row.nameShow = true; }} 94 onFocus={() => { this.itemShowFalse(); scope.row.nameShow = true; }}
95 onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> 95 onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
96 </div> 96 </div>
...@@ -104,11 +104,11 @@ export default { ...@@ -104,11 +104,11 @@ export default {
104 render: (h, scope) => { 104 render: (h, scope) => {
105 return ( 105 return (
106 <div> 106 <div>
107 <el-input placeholder="部标编码" disabled={this.details.isenable === '0'} v-show={scope.row.normcodeShow} v-fo value={scope.row[scope.column.property]} 107 <el-input placeholder="部标编码" disabled={this.details.isenable == 2} v-show={scope.row.normcodeShow} v-fo value={scope.row[scope.column.property]}
108 onFocus={() => { this.itemShowFalse(); scope.row.normcodeShow = true; }} 108 onFocus={() => { this.itemShowFalse(); scope.row.normcodeShow = true; }}
109 onInput={(val) => { scope.row[scope.column.property] = val }} maxlength='8'></el-input> 109 onInput={(val) => { scope.row[scope.column.property] = val }} maxlength='8'></el-input>
110 110
111 <el-input placeholder="部标编码" disabled={this.details.isenable === '0'} v-show={!scope.row.normcodeShow} value={scope.row[scope.column.property]} 111 <el-input placeholder="部标编码" disabled={this.details.isenable == 2} v-show={!scope.row.normcodeShow} value={scope.row[scope.column.property]}
112 onFocus={() => { this.itemShowFalse(); scope.row.normcodeShow = true; }} 112 onFocus={() => { this.itemShowFalse(); scope.row.normcodeShow = true; }}
113 onInput={(val) => { scope.row[scope.column.property] = val }} maxlength='8'></el-input> 113 onInput={(val) => { scope.row[scope.column.property] = val }} maxlength='8'></el-input>
114 </div> 114 </div>
...@@ -121,11 +121,11 @@ export default { ...@@ -121,11 +121,11 @@ export default {
121 render: (h, scope) => { 121 render: (h, scope) => {
122 return ( 122 return (
123 <div> 123 <div>
124 <el-input placeholder="部标名称" disabled={this.details.isenable === '0'} v-show={scope.row.normnameShow} v-fo value={scope.row[scope.column.property]} 124 <el-input placeholder="部标名称" disabled={this.details.isenable == 2} v-show={scope.row.normnameShow} v-fo value={scope.row[scope.column.property]}
125 onFocus={() => { this.itemShowFalse(); scope.row.normnameShow = true; }} 125 onFocus={() => { this.itemShowFalse(); scope.row.normnameShow = true; }}
126 onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> 126 onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
127 127
128 <el-input placeholder="部标名称" disabled={this.details.isenable === '0'} v-show={!scope.row.normnameShow} value={scope.row[scope.column.property]} 128 <el-input placeholder="部标名称" disabled={this.details.isenable == 2} v-show={!scope.row.normnameShow} value={scope.row[scope.column.property]}
129 onFocus={() => { this.itemShowFalse(); scope.row.normnameShow = true; }} 129 onFocus={() => { this.itemShowFalse(); scope.row.normnameShow = true; }}
130 onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> 130 onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
131 </div> 131 </div>
...@@ -138,7 +138,7 @@ export default { ...@@ -138,7 +138,7 @@ export default {
138 label: '是否禁用', 138 label: '是否禁用',
139 render: (h, scope) => { 139 render: (h, scope) => {
140 return ( 140 return (
141 <el-radio-group disabled={this.details.isenable === '0'} v-model={scope.row.isenable}> 141 <el-radio-group disabled={this.details.isenable == 2} v-model={scope.row.isenable}>
142 <el-radio label="1">启用</el-radio> 142 <el-radio label="1">启用</el-radio>
143 <el-radio label="0">禁用</el-radio> 143 <el-radio label="0">禁用</el-radio>
144 </el-radio-group> 144 </el-radio-group>
...@@ -188,7 +188,6 @@ export default { ...@@ -188,7 +188,6 @@ export default {
188 this.ruleForm = newValue.rowData 188 this.ruleForm = newValue.rowData
189 this.addIndexes() 189 this.addIndexes()
190 this.key++ 190 this.key++
191 console.log(1111111);
192 }, 191 },
193 deep: true 192 deep: true
194 } 193 }
......
...@@ -82,6 +82,7 @@ export default { ...@@ -82,6 +82,7 @@ export default {
82 this.details.rowData = {} 82 this.details.rowData = {}
83 this.details.rowData = row 83 this.details.rowData = row
84 this.details.isenable = val 84 this.details.isenable = val
85 console.log(this.details.isenable);
85 getChildDictList(row.bsmDict).then(res => { 86 getChildDictList(row.bsmDict).then(res => {
86 this.isDialog = true 87 this.isDialog = true
87 let { result } = res 88 let { result } = res
......