From fc838b5d70c98c4c4d8cd2468502ce1f59c55bef Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期日, 25 六月 2023 16:23:26 +0800 Subject: [PATCH] 修改参照 --- 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