style:登记情形
Showing
2 changed files
with
10 additions
and
30 deletions
| ... | @@ -219,35 +219,15 @@ export default { | ... | @@ -219,35 +219,15 @@ export default { |
| 219 | let container = this.$el.querySelector('.el-table__body-wrapper'); | 219 | let container = this.$el.querySelector('.el-table__body-wrapper'); |
| 220 | container.scrollTop = container.scrollHeight; | 220 | container.scrollTop = container.scrollHeight; |
| 221 | }) | 221 | }) |
| 222 | if (this.djqx.length > 0) { | 222 | this.tableData.push( |
| 223 | let code = this.tableData.slice(-1)[0].nodecode | 223 | { |
| 224 | let codeQ = code.slice(0, 6) | 224 | nodecode: '', |
| 225 | let len = '' | 225 | nodename: '', |
| 226 | if (this.tableData.length + 1 < 9) { | 226 | enabled: '1', |
| 227 | len = 0 + String(this.tableData.length + 1) | 227 | djyy: '', |
| 228 | } else { | 228 | sfqydjyymb: '0' |
| 229 | len = this.tableData.length + 1 | ||
| 230 | } | 229 | } |
| 231 | this.tableData.push( | 230 | ) |
| 232 | { | ||
| 233 | nodecode: codeQ + len, | ||
| 234 | nodename: '', | ||
| 235 | enabled: '1', | ||
| 236 | djyy: '', | ||
| 237 | sfqydjyymb: '0' | ||
| 238 | } | ||
| 239 | ) | ||
| 240 | } else { | ||
| 241 | this.tableData.push( | ||
| 242 | { | ||
| 243 | nodecode: '', | ||
| 244 | nodename: '', | ||
| 245 | enabled: '1', | ||
| 246 | djyy: '', | ||
| 247 | sfqydjyymb: '0' | ||
| 248 | } | ||
| 249 | ) | ||
| 250 | } | ||
| 251 | this.addIndexes() | 231 | this.addIndexes() |
| 252 | this.key++ | 232 | this.key++ |
| 253 | }, | 233 | }, | ... | ... |
| ... | @@ -240,13 +240,13 @@ export default { | ... | @@ -240,13 +240,13 @@ export default { |
| 240 | this.getSqdjywDetail(obj.bsmSqyw) | 240 | this.getSqdjywDetail(obj.bsmSqyw) |
| 241 | }, | 241 | }, |
| 242 | getDjqxValue (val) { | 242 | getDjqxValue (val) { |
| 243 | if (_.isEqual(val.djqx, this.subData.djqx)) { | 243 | if (!_.isEqual(val.djqx, this.subData.djqx)) { |
| 244 | this.subData.djqx = val.djqx | 244 | this.subData.djqx = val.djqx |
| 245 | this.btnDisabled = val.btnDisabled | 245 | this.btnDisabled = val.btnDisabled |
| 246 | } | 246 | } |
| 247 | }, | 247 | }, |
| 248 | getClgzValue (val) { | 248 | getClgzValue (val) { |
| 249 | if (_.isEqual(val, this.subData.clxx)) { | 249 | if (!_.isEqual(val, this.subData.clxx)) { |
| 250 | this.subData.clxx = val | 250 | this.subData.clxx = val |
| 251 | } | 251 | } |
| 252 | }, | 252 | }, | ... | ... |
-
Please register or sign in to post a comment