[update] 修改企标制修订流程,选择标准组件的企标的标准状态

This commit is contained in:
lideqin
2023-12-28 10:39:02 +08:00
parent 483769629b
commit b418dec7d4
9 changed files with 125 additions and 21 deletions
@@ -151,7 +151,8 @@ export default {
},
// 编辑
handleEdit (record, index) {
this.modalType = 'edit' + index
console.log(index)
this.modalType = 'edit' + '-' + index
this.$refs.addEditDrafterDrawer.edit(record)
},
// 删除
@@ -162,8 +163,9 @@ export default {
modalFormOk (value) {
if (this.modalType === 'add') {
this.dataSource.push(value)
} else if (this.modalType && this.modalType.split(',')[0] === 'edit') {
this.dataSource.splice(Number(this.modalType.split(',')[1]), 1, value)
} else if (this.modalType && this.modalType.split('-')[0] === 'edit') {
console.log(Number(this.modalType.split('-')[1]), value)
this.dataSource.splice(Number(this.modalType.split('-')[1]), 1, value)
}
}
}