From 9630f5f0c834496da20fca1e391dcdfef1021de1 Mon Sep 17 00:00:00 2001
From: fujunling <2984387807@qq.com>
Date: 星期三, 26 七月 2023 17:38:01 +0800
Subject: [PATCH] 关闭弹窗
---
Source/UBCS-WEB/src/components/template/SetPersonnel.vue | 24 +++++++++++++++---------
1 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/template/SetPersonnel.vue b/Source/UBCS-WEB/src/components/template/SetPersonnel.vue
index 17edef3..cf03538 100644
--- a/Source/UBCS-WEB/src/components/template/SetPersonnel.vue
+++ b/Source/UBCS-WEB/src/components/template/SetPersonnel.vue
@@ -76,6 +76,7 @@
visible(n) {
this.dialogVisible = n;
if (n) {
+ this.saveParam=this.setSaveParam();
this.apiInit()
this.apiDict()
}
@@ -90,7 +91,12 @@
},
deep:true,
immediate:true
- }
+ },
+ parameter:{
+ handler(newval,oldval){
+ console.log('瀛�',newval)
+ }
+ }
},
data() {
return {
@@ -100,7 +106,7 @@
tags: [],
typeName: [],
collectParam: {},
- saveParam: this.saveParam(),
+ saveParam: this.setSaveParam(),
users: [],
rules: {
processName: [
@@ -112,11 +118,11 @@
},
mounted() {
- // this.apiInit()
- // this.apiDict()
},
- methods: {
- saveParam() {
+ created() {
+ },
+ methods: {
+ setSaveParam() {
return {
processName: this.parameter[this.parameterKeys.flowTemplate],
topName: this.title,
@@ -128,7 +134,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
@@ -200,8 +206,8 @@
message: "璇烽�夋嫨鑺傜偣锛�"
});
} else {
- const {modelKey,modelName,processDesc,processName,templateId,topName,vars} = this.saveParam
- const vals= {modelKey,modelName,processDesc,processName,templateId,topName,...vars}
+ const {modelKey,modelName,processDesc,processName,templateId,topName,vars,ids} = this.saveParam
+ const vals= {modelKey,modelName,processDesc,processName,templateId,topName,ids,...vars}
const response = await personnelSave({ variables:vals, flowTaskUsers: this.collectParam.flowTaskUsers, })
if (response.status === 200) {
console.log(response)
--
Gitblit v1.9.3