【修改】修改bug
This commit is contained in:
@@ -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')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user