From 54f35ae7866dac5c497372b68d03309c7eae9424 Mon Sep 17 00:00:00 2001
From: dangsn <dangsn@chicecm.com>
Date: 星期三, 02 八月 2023 18:15:07 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue |   29 ++++++++++++++++++-----------
 1 files changed, 18 insertions(+), 11 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
index dadf546..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 = '娴佺▼瀹℃壒'
@@ -397,12 +400,16 @@
                   cancelButtonText: '鍙栨秷',
                   type: 'warning'
                 }).then(() => {
-                  this.userName = localStorage.getItem("username");
-                  this.parameter.template = this.userName + "-鍙戝竷" + "[鐗╁搧]";
-                  this.parameter.type = 'PUBLIC'
-                  this.title = '娴佺▼瀹℃壒'
-                  this.visibleFlow = true;
-                  this.onLoad()
+                  const index = this.$route.query.id.indexOf('@');
+                  const result = this.$route.query.id.substring(0, index);
+                  console.log(this.$route.query)
+                  const oid = this.selectRow.map(obj => obj.oid).join(",");
+                  changeStatus({ oid: oid, btmname: result, lcStatus: 'Released' }).then(res => {
+                    if(res.data.code == 200 ){
+                      this.$message.success('鍙戝竷鎴愬姛')
+                      this.onLoad()
+                    }
+                  });
                 }).catch(() => {
                   this.$message({
                     type: 'info',
@@ -435,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 = '鍋滅敤锛堝喕缁擄級缂栫爜鏁版嵁'
@@ -488,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 = '鍚敤缂栫爜鏁版嵁'
@@ -547,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