complete update dispatch feature

This commit is contained in:
idiotalex@163.com 2021-01-13 14:50:37 +08:00
parent 9bc1bffeef
commit d5dbaa32cc

View File

@ -211,6 +211,20 @@ export default {
this.loadReqId();
this.linkDispatchVisible = true;
},
handleEdit(record) {
this.temp = Object.assign({}, record)
this.temp.type = 'edit';
this.targetKeys = [];
//
record.outGivingNodeProjectList.forEach(ele => {
if (!this.temp.projectId) {
this.temp.projectId = ele.projectId;
}
this.targetKeys.push(ele.nodeId);
})
this.loadReqId();
this.linkDispatchVisible = true;
},
//
handleAdd() {
this.temp = {};
@ -218,6 +232,7 @@ export default {
},
//
selectProject(value) {
this.targetKeys = [];
this.nodeList.forEach(node => {
node.disabled = true;
})
@ -228,12 +243,6 @@ export default {
}
})
})
// this.nodeProjectMap[value]
Object.keys(this.nodeProjectMap).forEach(key => {
this.nodeProjectMap[key].forEach(project => {
console.log(project)
})
})
},
// 穿
filterOption(inputValue, option) {
@ -275,6 +284,8 @@ export default {
this.$refs['linkDispatchForm'].resetFields();
this.linkDispatchVisible = false;
this.handleFilter();
} else {
this.targetKeys = [];
}
})
})