From 153ce2c62bed20d3875bbadfc98bf0ad4aeeff46 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期三, 02 八月 2023 17:17:45 +0800
Subject: [PATCH] 主数据启动流程设置动态流程名称

---
 Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
index 61fbfc8..9f0dd8b 100644
--- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
+++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
@@ -234,11 +234,14 @@
         hasDownload: true,
         hasUpload: true,
         height: 100
-      }
+      },
+      result:''
     };
   },
   computed: {},
   created() {
+   const index = this.$route.query.id.indexOf('@');
+   this.result = this.$route.query.id.substring(0, index);
   },
   mounted() {
   },
@@ -386,7 +389,7 @@
             processTS({templateId: this.templateOid, buttonTypeKey: 'PUBLIC'}).then(res => {
               if (res.data.data.records && res.data.data.records.length!=0)  {
                 this.userName = localStorage.getItem("username");
-                this.parameter.template = this.userName + "-鍙戝竷" + "[鐗╁搧]";
+                this.parameter.template = this.userName + '-鍙戝竷['+this.result+'-' + this.selectRow[0].name + ']';
                 this.parameter.type = 'PUBLIC';
                 this.parameter.code=this.templateOid
                 this.title = '娴佺▼瀹℃壒'
@@ -439,7 +442,7 @@
             processTS({ templateId: this.templateOid, buttonTypeKey: 'PUBLIC' }).then(res => {
               if (res.data.records != [] && res.data.data.records.length!=0) {
                 this.userName = localStorage.getItem("username");
-                this.parameter.template = this.userName + "鍋滅敤" + "[鐗╁搧]";
+                this.parameter.template = this.userName + '-鍋滅敤['+this.result+'-' + this.selectRow[0].name + ']';
                 this.parameter.type = 'DISABLE';
                 this.parameter.code=this.templateOid
                 this.title = '鍋滅敤锛堝喕缁擄級缂栫爜鏁版嵁'
@@ -492,7 +495,7 @@
               if (res.data.data.records && res.data.data.records.length!=0)  {
                 this.parameter=res.data.data.records[0]
                 this.userName = localStorage.getItem("username");
-                this.parameter.template = this.userName + "鍚敤" + "[鐗╁搧]";
+                this.parameter.template = this.userName + '-鍚敤['+this.result+'-' + this.selectRow[0].name + ']';
                 this.parameter.type = 'Released';
                 this.parameter.code=this.templateOid
                 this.title = '鍚敤缂栫爜鏁版嵁'
@@ -551,7 +554,7 @@
             processTS({ templateId: this.templateOid, buttonTypeKey: 'PUBLIC' }).then(res => {
               if (res.data.records != [] && res.data.data.records.length!=0) {
                 this.userName = localStorage.getItem("username");
-                this.parameter.template = this.userName + "鍥炴敹" + "[鐗╁搧]";
+                this.parameter.template = this.userName + '-鍥炴敹['+this.result+'-' + this.selectRow[0].name + ']';
                 this.parameter.type = 'TakeBack';
                 this.parameter.code=this.templateOid
                 this.title = '鍥炴敹缂栫爜鏁版嵁'

--
Gitblit v1.9.3