From ce09f05787d274a506326c7e164a645d3bb1f377 Mon Sep 17 00:00:00 2001
From: zhangxp <zhangxp@chicecm.com>
Date: 星期日, 25 六月 2023 18:02:38 +0800
Subject: [PATCH] 流程调试

---
 Source/UBCS-WEB/src/components/template/SetPersonnel.vue |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/template/SetPersonnel.vue b/Source/UBCS-WEB/src/components/template/SetPersonnel.vue
index a8ee38e..17edef3 100644
--- a/Source/UBCS-WEB/src/components/template/SetPersonnel.vue
+++ b/Source/UBCS-WEB/src/components/template/SetPersonnel.vue
@@ -52,7 +52,9 @@
             typeof: String,
             default: '娴佺▼瀹℃壒'
         },
-        // 鍙傛暟锛氶�夋嫨鐨刬d锛屽涓互鏁扮粍鏂瑰紡浼犻�掞細['id','id']锛屾ā鏉縤d锛屾ā鏉跨敤閫旓紝娴佺▼鍚嶅瓧锛屾祦绋嬫ā鏉�
+        // 鍙傛暟锛氶�夋嫨鐨刬d锛屽涓互鏁扮粍鏂瑰紡浼犻�掞細['id','id']锛屾ā鏉縤d锛屾ā鏉跨敤閫旓紝娴佺▼鍚嶅瓧锛屾祦绋嬫ā鏉�,
+        // flowTemplate锛�
+        // vars锛歰bject鏍煎紡锛屽悕瀛椾负vars锛岄噷闈ey閿�硷紝鑷繁闅忔剰
         parameter: {
             typeof: Object,
             default: () => { }
@@ -119,6 +121,7 @@
                 processName: this.parameter[this.parameterKeys.flowTemplate],
                 topName: this.title,
                 ids: this.parameter[this.parameterKeys.ids],
+                vars:this.parameter['vars']
             }
         },
         userIndex(arr1) {
@@ -197,8 +200,9 @@
                         message: "璇烽�夋嫨鑺傜偣锛�"
                     });
                 } else {
-                    console.log('baoc')
-                    const response = await personnelSave({ ...this.saveParam, flowTaskUsers: this.collectParam.flowTaskUsers })
+                    const {modelKey,modelName,processDesc,processName,templateId,topName,vars} = this.saveParam
+                    const vals= {modelKey,modelName,processDesc,processName,templateId,topName,...vars}
+                    const response = await personnelSave({ variables:vals, flowTaskUsers: this.collectParam.flowTaskUsers, })
                     if (response.status === 200) {
                         console.log(response)
                         this.$message({

--
Gitblit v1.9.3