fix -- 修复抄送人获取流程实例NPL和无法删除抄送人标签问题。

This commit is contained in:
konbai
2022-07-02 01:44:39 +08:00
parent 05cc616cfc
commit 4cea80a5aa
2 changed files with 15 additions and 15 deletions

View File

@@ -408,6 +408,13 @@ export default {
let userObj = this.userMultipleSelection.find(item => item.userId === tag.id);
this.userMultipleSelection.splice(this.userMultipleSelection.indexOf(userObj), 1);
this.userData.copyUser.splice(this.userData.copyUser.indexOf(tag), 1);
// 设置抄送人ID
if (this.userData.copyUser && this.userData.copyUser.length > 0) {
const val = this.userData.copyUser.map(item => item.id);
this.taskForm.copyUserIds = val instanceof Array ? val.join(',') : val;
} else {
this.taskForm.copyUserIds = '';
}
},
/** 流程变量赋值 */
handleCheckChange(val) {
@@ -574,13 +581,6 @@ export default {
this.$modal.msgError("请选择用户");
return false;
}
// 若有选择抄送用户获取抄送用户ID
if (this.userData.copyUser && this.userData.copyUser.length > 0) {
const val = this.userData.copyUser.map(item => item.id);
this.taskForm.copyUserIds = val instanceof Array ? val.join(',') : val;
} else {
this.taskForm.copyUserIds = '';
}
this.taskForm.userId = this.currentUserId;
if (type === 'delegate') {
delegate(this.taskForm).then(res => {