From dbe1b807e2a0e4aaa37277b69c50dd69dc42dda2 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期日, 25 六月 2023 10:34:36 +0800 Subject: [PATCH] Merge branch 'master' of http://dev.vci-tech.com:1065/r/ubcs --- Source/UBCS-WEB/src/components/template/SetPersonnel.vue | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/Source/UBCS-WEB/src/components/template/SetPersonnel.vue b/Source/UBCS-WEB/src/components/template/SetPersonnel.vue index cb7a2e9..a8ee38e 100644 --- a/Source/UBCS-WEB/src/components/template/SetPersonnel.vue +++ b/Source/UBCS-WEB/src/components/template/SetPersonnel.vue @@ -133,6 +133,7 @@ const { modelKey, templateId, modelName } = response.data.data.flow let flowTaskUsers = response.data.data.user this.collectParam = { modelKey, templateId, flowTaskUsers: flowTaskUsers } + this.users = response.data.data.user console.log(this.collectParam) this.saveParam = { ...this.saveParam, modelKey, templateId, modelName } if (this.tags.length !== 0) this.handleClickTag(this.tags[0]) @@ -197,15 +198,15 @@ }); } else { console.log('baoc') - // const response = await personnelSave({ ...this.saveParam, flowTaskUsers: this.collectParam.flowTaskUsers }) - // if (response.status === 200) { - // console.log(response) - // this.$message({ - // type: 'success', - // message: response.data.msg - // }); - // this.done() - // } + const response = await personnelSave({ ...this.saveParam, flowTaskUsers: this.collectParam.flowTaskUsers }) + if (response.status === 200) { + console.log(response) + this.$message({ + type: 'success', + message: response.data.msg + }); + this.done() + } } } catch { @@ -248,6 +249,7 @@ handleSelect(event, index) { const res = this.typeName.find(item => item.userId === event) const { userName } = res + console.log(this.users) this.$set(this.users, index, { ... this.collectParam.flowTaskUsers[index], userName }) // this.users[index] = { ... this.collectParam.flowTaskUsers[index], userName } console.log(this.users) -- Gitblit v1.9.3