[update] 修改企标制修订流程,选择标准组件的企标的标准状态
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user