|
@@ -9,7 +9,7 @@
|
|
|
选择路径
|
|
|
|
|
|
<div class="flex-path-list">
|
|
|
- <div v-if="transferStatus" @click="clickTransfer(1)">转派</div>
|
|
|
+ <div v-if="transferStatus" :class="active" @click="clickTransfer(1)">转派</div>
|
|
|
<div v-if="copyStatus" @click="clickTransfer(2)">抄送</div>
|
|
|
<div
|
|
|
v-for="(item, index) in node.nextShapes"
|
|
@@ -136,6 +136,7 @@ export default {
|
|
|
name: "workflow",
|
|
|
data() {
|
|
|
return {
|
|
|
+ active:'',
|
|
|
transferStatus: false, //转派按钮控制
|
|
|
manyPeopleStatus: false, //多人处理下发任务
|
|
|
TransferStatus: false, //是否点击转派状态
|
|
@@ -211,6 +212,7 @@ export default {
|
|
|
};
|
|
|
await this.common.httpPost(obj, success);
|
|
|
function success(data) {
|
|
|
+ console.log(data);
|
|
|
let updateList = {
|
|
|
taskId: data.taskid,
|
|
|
id: _this.list.id,
|
|
@@ -241,12 +243,12 @@ export default {
|
|
|
};
|
|
|
if (this.manyPeopleStatus == true) {
|
|
|
list.procinstid = this.list.processId;
|
|
|
- if (this.backThree.length <= 1) {
|
|
|
- this.$message.error("请选择多人");
|
|
|
- return;
|
|
|
- } else {
|
|
|
+ // if (this.backThree.length <= 1) {
|
|
|
+ // this.$message.error("请选择多人");
|
|
|
+ // return;
|
|
|
+ // } else {
|
|
|
list.lastmanList = this.nextDealManList;
|
|
|
- }
|
|
|
+ // }
|
|
|
if (this.nodes.currentShape) {
|
|
|
newlist.resolution = this.nodes.currentShape[0].condition.resolution;
|
|
|
newlist.approve = this.nodes.currentShape[0].condition.approve;
|
|
@@ -460,28 +462,35 @@ export default {
|
|
|
}
|
|
|
|
|
|
this.$http({
|
|
|
- url: "/market/api/user/info/queryNodePers?params=" + id,
|
|
|
+ url: "/market/api/user/info/queryNodePers?params=" + id,
|
|
|
method: "post",
|
|
|
headers: {
|
|
|
"Content-Type": "application/json",
|
|
|
},
|
|
|
data: "",
|
|
|
}).then((res) => {
|
|
|
+ console.log(res);
|
|
|
if (status === 2) {
|
|
|
this.treeCopyList = res.data; //抄送
|
|
|
// this.$refs.defTrees.treeList = res.data;
|
|
|
} else {
|
|
|
- this.treeList = res.data; //抄送
|
|
|
+ // let list = []
|
|
|
+ // list.push(res.data)
|
|
|
+ // this.treeList = list; //抄送
|
|
|
+ this.treeList = res.data
|
|
|
// this.$refs.defTree.treeList = res.data;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
+
|
|
|
//转派按钮方法
|
|
|
clickTransfer(e) {
|
|
|
this.$refs.defTree.userList = [];
|
|
|
this.backThree = [];
|
|
|
this.treeList = [];
|
|
|
if (e == 1) {
|
|
|
+ this.active = this.active!=""?'':'active'
|
|
|
this.manyPeopleStatus = false;
|
|
|
this.TransferStatus = true;
|
|
|
} else if (e == 2) {
|
|
@@ -491,6 +500,7 @@ export default {
|
|
|
},
|
|
|
//点击节点获取下一步的处理人字段
|
|
|
clickGetTree(e, index) {
|
|
|
+ this.active = ''
|
|
|
this.$refs.defTree.userList = [];
|
|
|
this.backThree = [];
|
|
|
// this.CopyStatus = false;
|