0c30e8bc by 任超

style:申请业务规则配置

1 parent c61f94a6
......@@ -190,6 +190,7 @@ export default {
sfggcl: '1'
}
)
this.key++
},
handleSelectGgcl (item) {
if (item.sfggcl == '1') {
......
......@@ -72,12 +72,7 @@ export default {
render: (h, scope) => {
return (
<div>
<el-input placeholder="登记情形编码" v-show={scope.row.nodecodeShow} v-fo class={{ repeat: scope.row.repeat }} disabled={scope.row.sftsdjqx == '1'}
value={scope.row[scope.column.property]} onFocus={() => { this.itemShowFalse(); scope.row.nodecodeShow = true; }}
onInput={(val) => { scope.row[scope.column.property] = val }} onBlur={() => { this.nodecodeBlur(scope.$index, scope.row) }} maxlength="8">
</el-input>
<el-input placeholder="登记情形编码" v-show={!scope.row.nodecodeShow} class={{ repeat: scope.row.repeat }} disabled={scope.row.sftsdjqx == '1'}
<el-input placeholder="登记情形编码" class={{ repeat: scope.row.repeat }} disabled={scope.row.sftsdjqx == '1'}
value={scope.row[scope.column.property]} onFocus={() => { this.itemShowFalse(); scope.row.nodecodeShow = true; }}
onInput={(val) => { scope.row[scope.column.property] = val }} onBlur={() => { this.nodecodeBlur(scope.$index, scope.row) }} maxlength="8">
</el-input>
......@@ -91,10 +86,7 @@ export default {
render: (h, scope) => {
return (
<div>
<el-input placeholder="登记情形名称" v-show={scope.row.nodenameShow} v-fo disabled={scope.row.sftsdjqx == '1'} value={scope.row[scope.column.property]}
onInput={(val) => { scope.row[scope.column.property] = val }}
onFocus={() => { this.itemShowFalse(); scope.row.nodenameShow = true; }}></el-input>
<el-input placeholder="登记情形名称" v-show={!scope.row.nodenameShow} disabled={scope.row.sftsdjqx == '1'}
<el-input placeholder="登记情形名称" disabled={scope.row.sftsdjqx == '1'}
onFocus={() => { this.itemShowFalse(); scope.row.nodenameShow = true; }} value={scope.row[scope.column.property]}
onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
</div>
......@@ -119,10 +111,7 @@ export default {
render: (h, scope) => {
return (
<div>
<el-input placeholder="登记原因模板" v-show={scope.row.djyyShow} v-fo disabled={scope.row.sftsdjqx == '1'} value={scope.row[scope.column.property]}
onInput={(val) => { scope.row[scope.column.property] = val }}
onFocus={() => { this.itemShowFalse(); scope.row.djyyShow = true; }}></el-input>
<el-input placeholder="登记原因模板" v-show={!scope.row.djyyShow} v-fo disabled={scope.row.sftsdjqx == '1'} value={scope.row[scope.column.property]}
<el-input placeholder="登记原因模板" disabled={scope.row.sftsdjqx == '1'} value={scope.row[scope.column.property]}
onInput={(val) => { scope.row[scope.column.property] = val }}
onFocus={() => { this.itemShowFalse(); scope.row.djyyShow = true; }}></el-input>
</div>
......@@ -193,27 +182,11 @@ export default {
// 添加索引
addIndexes (data = this.tableData, isAdd = true) {
data.forEach((item, index) => {
if (index == 0) {
item.nodecodeShow = true
item.nodenameShow = false
item.djyyShow = false
} else {
item.nodecodeShow = false
item.nodenameShow = false
item.djyyShow = false
}
if (isAdd) {
item.index = index + 1
}
})
},
itemShowFalse () {
this.tableData.length > 0 && this.tableData.forEach((item, index) => {
item.nodecodeShow = true
item.nodenameShow = false
item.djyyShow = false
})
},
handleAdd () {
this.$nextTick(() => {
let container = this.$el.querySelector('.el-table__body-wrapper');
......