|
@@ -70,7 +70,9 @@
|
|
|
</div>
|
|
|
<div class="flex-header-text-tree">
|
|
|
已选人员
|
|
|
- <div class="">{{ selectUser }}</div>
|
|
|
+ <div class="" v-for="(item, index) in backThree" :key="index">
|
|
|
+ {{ item.loginNameStr }}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -169,7 +171,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
created() {
|
|
|
- console.log(this.list);
|
|
|
+
|
|
|
this.getNextPath(this.list.resourceId, 1);
|
|
|
this.getMetirialType();
|
|
|
},
|
|
@@ -184,7 +186,7 @@ export default {
|
|
|
},
|
|
|
data: {},
|
|
|
}).then((res) => {
|
|
|
- console.log(res);
|
|
|
+
|
|
|
this.demand = res.data;
|
|
|
});
|
|
|
},
|
|
@@ -201,7 +203,7 @@ export default {
|
|
|
|
|
|
let res = await this.common.httpPost(obj, success);
|
|
|
function success(data) {
|
|
|
- console.log(data);
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
async nextWorks(lists, list) {
|
|
@@ -213,7 +215,7 @@ export default {
|
|
|
};
|
|
|
await this.common.httpPost(obj, success);
|
|
|
function success(data) {
|
|
|
- console.log(_this.nodes);
|
|
|
+
|
|
|
let updateList = {
|
|
|
taskId: data.taskid,
|
|
|
id: _this.list.id,
|
|
@@ -483,14 +485,17 @@ export default {
|
|
|
if (status === 3) {
|
|
|
this.nodes = res.data.body;
|
|
|
this.getTreeLists(res.data.body, 1);
|
|
|
+
|
|
|
if (res.data.body.nextShapes[0].multi !== null) {
|
|
|
if (res.data.body.nextShapes[0].multi.multi === "true") {
|
|
|
this.manyPeopleStatus = true; //转派按钮生效
|
|
|
} else {
|
|
|
this.manyPeopleStatus = false;
|
|
|
}
|
|
|
+ }else{
|
|
|
+ this.manyPeopleStatus = false;
|
|
|
}
|
|
|
- console.log(res.data.body);
|
|
|
+
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -515,21 +520,23 @@ export default {
|
|
|
},
|
|
|
data: "",
|
|
|
}).then((res) => {
|
|
|
- console.log(status);
|
|
|
if (status === 2) {
|
|
|
this.treeCopyList = res.data; //抄送
|
|
|
- console.log(this.treeCopyList);
|
|
|
// this.$refs.defTrees.treeList = res.data;
|
|
|
} else {
|
|
|
this.treeList = res.data; //抄送
|
|
|
// this.$refs.defTree.treeList = res.data;
|
|
|
- console.log(this.treeList);
|
|
|
+
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
//转派按钮方法
|
|
|
clickTransfer(e) {
|
|
|
+ this.$refs.defTree.userList = [];
|
|
|
+ this.backThree = []
|
|
|
+ this.treeList = []
|
|
|
if (e == 1) {
|
|
|
+ this.manyPeopleStatus = false;
|
|
|
this.TransferStatus = true;
|
|
|
} else if (e == 2) {
|
|
|
this.CopyStatus = true;
|
|
@@ -538,6 +545,8 @@ export default {
|
|
|
},
|
|
|
//点击节点获取下一步的处理人字段
|
|
|
clickGetTree(e, index) {
|
|
|
+ this.$refs.defTree.userList = [];
|
|
|
+ this.backThree = []
|
|
|
// this.CopyStatus = false;
|
|
|
this.TransferStatus = false;
|
|
|
// this.clickTaskName = e.properties.name;
|
|
@@ -551,25 +560,26 @@ export default {
|
|
|
},
|
|
|
//点击修改
|
|
|
clickEdit() {
|
|
|
- console.log(123);
|
|
|
this.editStatus = true;
|
|
|
},
|
|
|
//选择树的回调
|
|
|
changeTree(e) {
|
|
|
if (this.manyPeopleStatus == true) {
|
|
|
+
|
|
|
this.backThree = e;
|
|
|
+
|
|
|
let arr = [];
|
|
|
this.backThree.map((item) => {
|
|
|
arr.push(item.loginNoStr);
|
|
|
});
|
|
|
this.nextDealManList = arr.toString();
|
|
|
- console.log(arr.toString());
|
|
|
+
|
|
|
} else {
|
|
|
+
|
|
|
if (e.length > 1) {
|
|
|
this.$message.error("只能选择一个人");
|
|
|
return;
|
|
|
} else {
|
|
|
- console.log(e);
|
|
|
this.backThree = e;
|
|
|
if (this.CopyStatus === true) {
|
|
|
this.getTreeLists(e[0].loginNoStr, 2);
|
|
@@ -595,7 +605,7 @@ export default {
|
|
|
dictCodePks: "approval",
|
|
|
},
|
|
|
}).then((res) => {
|
|
|
- console.log(res);
|
|
|
+
|
|
|
this.commonlyList = res.data;
|
|
|
});
|
|
|
},
|
|
@@ -682,6 +692,19 @@ export default {
|
|
|
this.editStatus = false;
|
|
|
},
|
|
|
},
|
|
|
+ // watch: {
|
|
|
+ // "backThree": {
|
|
|
+ // handler(newVal) {
|
|
|
+ // if (newVal) {
|
|
|
+ // console.log('[ newVal ] >', newVal)
|
|
|
+ // // console.log(newVal);
|
|
|
+ // if(newVal.length === 0){
|
|
|
+ // this.backThree.push({loginNameStr:'暂无选择'})
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // }
|
|
|
};
|
|
|
</script>
|
|
|
|