From 095c79efb36c7fae5672fa0b2481c6b688cba7eb Mon Sep 17 00:00:00 2001 From: ludc Date: 星期五, 21 七月 2023 17:32:02 +0800 Subject: [PATCH] 提交代码 --- Source/UBCS-WEB/src/components/template/SetPersonnel.vue | 19 ++++++++++++++----- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Source/UBCS-WEB/src/components/template/SetPersonnel.vue b/Source/UBCS-WEB/src/components/template/SetPersonnel.vue index a0e23bf..82011b5 100644 --- a/Source/UBCS-WEB/src/components/template/SetPersonnel.vue +++ b/Source/UBCS-WEB/src/components/template/SetPersonnel.vue @@ -90,7 +90,14 @@ }, deep:true, immediate:true - } + }, + parameter:{ + handler(newval,oldval){ + console.log('瀛�',newval) + this.saveParam=newval + },deep:true, + immediate:true + } }, data() { return { @@ -100,7 +107,7 @@ tags: [], typeName: [], collectParam: {}, - saveParam: this.setSaveParam(), + saveParam: {}, users: [], rules: { processName: [ @@ -112,8 +119,6 @@ }, mounted() { - // this.apiInit() - // this.apiDict() console.log('---',this.parameter) }, created() { @@ -132,7 +137,7 @@ return this.initFrom.findIndex(i => i.taskId === arr1) }, async apiInit() { - const response = await personnelInit({ type: this.parameter[this.parameterKeys.type], templateId: this.parameter[this.parameterKeys.code] }) + const response = await personnelInit({ type: this.parameter[this.parameterKeys.type], templateId: this.parameter[this.parameterKeys.code]}) if (response.status === 200) { console.log(response) this.initFrom = response.data.data.user @@ -142,7 +147,9 @@ this.collectParam = { modelKey, templateId, flowTaskUsers: flowTaskUsers } this.users = response.data.data.user console.log(this.collectParam) + console.log('this.saveParam.before',this.saveParam) this.saveParam = { ...this.saveParam, modelKey, templateId, modelName } + console.log('this.saveParam',this.saveParam) if (this.tags.length !== 0) this.handleClickTag(this.tags[0]) } }, @@ -198,6 +205,7 @@ console.log(this.collectParam.flowTaskUsers) console.log(len == 0) console.log(len != this.initFrom.length) + console.log('saveParam',this.saveParam) if (len == 0 && len != this.initFrom.length) { this.$message({ type: "error", @@ -206,6 +214,7 @@ } else { const {modelKey,modelName,processDesc,processName,templateId,topName,vars,ids} = this.saveParam const vals= {modelKey,modelName,processDesc,processName,templateId,topName,ids,...vars} + console.log('vals',vals); const response = await personnelSave({ variables:vals, flowTaskUsers: this.collectParam.flowTaskUsers, }) if (response.status === 200) { console.log(response) -- Gitblit v1.9.3