【修改】修改bug

This commit is contained in:
zhoulingpo
2023-04-28 11:41:17 +08:00
parent 6499712caf
commit 83acaf9dc9
8 changed files with 64 additions and 21 deletions
@@ -72,7 +72,7 @@
</vxe-column>
</vxe-table>
</div>
<monitorModal ref="monitorModal" :prcId="prcId"></monitorModal>
<monitorModal ref="monitorModal" :prcId="prcId" @uploadTable="processTable"></monitorModal>
</div>
</template>
@@ -236,7 +236,7 @@ export default {
if(check.length > 0){
this.$message.warning("请选择状态为未完成并且任务步骤不为重新发起的数据")
}else{
this.$refs.monitorModal.open(this.checkList[0].id,this.prcId,this.checkList[0].assigneeId)
this.$refs.monitorModal.open(this.checkList[0].id,this.prcId,this.checkList[0].assigneeId,this.checkList[0].taskDefinitionKey,this.checkList[0].prcType)
}
}
},
@@ -59,7 +59,9 @@ export default {
]
},
taskId: '',
pId: ''
pId: '' ,
aid: '',
prcType: ''
};
},
@@ -93,13 +95,15 @@ export default {
this.userList = data.records;
})
},
open(taskId, pId,assigneeId) {
open(taskId, pId,assigneeId,aid,prcType) {
this.taskId = taskId
this.pId = pId
this.prcType = prcType
this.form.name = {
assignee: ''
}
this.assigneeId=assigneeId
this.assigneeId = assigneeId
this.aid = aid
this.dialogVisible = true
},
submit() {
@@ -110,18 +114,26 @@ export default {
if (userId == assignee) {
this.$message.warning("当前任务受理人就是您选择的人员")
} else {
this.$api.process.changeAssignee({
let params={
taskId: this.taskId,
assignee: assignee,
userId: userId,
assignee: userId ,
userId: assignee ,
pId: this.pId
})
}
if(this.prcType == '1'){
if(this.aid=='aid2'){
params.replaceMap="oneApprove:"+ this.form.assignee+','+"oneApproveName:"+ this.form.assigneeName
}else{
params.replaceMap="twoApprove:"+ this.form.assignee+','+"twoApproveName:"+ this.form.assigneeName
}
}
this.$api.process.changeAssignee(params)
.then(res => {
//转办完应该跳到哪个页面?
//转办完这个人还能看到这个监控流程吗
this.dialogVisible = false
this.$message.success(res.data.message)
this.sysUserList()
this.$emit('uploadTable')
})
}
}