update dispatch page

This commit is contained in:
Eleven 2021-01-13 23:02:20 +08:00
parent 8ba0768483
commit 39211f1fd5

View File

@ -282,16 +282,22 @@ export default {
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;
//
if (this.temp.outGivingProject) {
this.loadAccesList();
this.editDispatchVisible = true;
} else {
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() {