c61f94a6 by 任超

style:登记情形

1 parent 2890d0db
......@@ -219,35 +219,15 @@ export default {
let container = this.$el.querySelector('.el-table__body-wrapper');
container.scrollTop = container.scrollHeight;
})
if (this.djqx.length > 0) {
let code = this.tableData.slice(-1)[0].nodecode
let codeQ = code.slice(0, 6)
let len = ''
if (this.tableData.length + 1 < 9) {
len = 0 + String(this.tableData.length + 1)
} else {
len = this.tableData.length + 1
this.tableData.push(
{
nodecode: '',
nodename: '',
enabled: '1',
djyy: '',
sfqydjyymb: '0'
}
this.tableData.push(
{
nodecode: codeQ + len,
nodename: '',
enabled: '1',
djyy: '',
sfqydjyymb: '0'
}
)
} else {
this.tableData.push(
{
nodecode: '',
nodename: '',
enabled: '1',
djyy: '',
sfqydjyymb: '0'
}
)
}
)
this.addIndexes()
this.key++
},
......
......@@ -240,13 +240,13 @@ export default {
this.getSqdjywDetail(obj.bsmSqyw)
},
getDjqxValue (val) {
if (_.isEqual(val.djqx, this.subData.djqx)) {
if (!_.isEqual(val.djqx, this.subData.djqx)) {
this.subData.djqx = val.djqx
this.btnDisabled = val.btnDisabled
}
},
getClgzValue (val) {
if (_.isEqual(val, this.subData.clxx)) {
if (!_.isEqual(val, this.subData.clxx)) {
this.subData.clxx = val
}
},
......