From a8f851a0aa33083dc36625f6140b698b5e359ed6 Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期三, 02 八月 2023 18:23:39 +0800
Subject: [PATCH] 修改流程tab展示

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

diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
index df7ad49..61fbfc8 100644
--- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
+++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
@@ -397,12 +397,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',
@@ -578,9 +582,11 @@
                 }
               }
             });
-          } else if (this.selectRow.length >=1 && !(disabledCount === this.selectRow.length || releasedCount === this.selectRow.length) || (disabledCount > 0 && releasedCount > 0)  && showMessage) {
+          } else if (showMessage && this.selectRow.length >1 && !(disabledCount === this.selectRow.length || releasedCount === this.selectRow.length) || (disabledCount > 0 && releasedCount > 0)) {
             this.$message.warning('鎮ㄩ�夋嫨鐨勬暟鎹叏閮ㄤ负銆愬仠鐢ㄧ姸鎬佹垨鍙戝竷鐘舵�併�戞墠鍙互鍙戣捣娴佺▼');
             showMessage = false;
+          }else if(showMessage){
+            this.$message.warning('鎮ㄩ�夋嫨鐨勬暟鎹负銆愬仠鐢ㄧ姸鎬佹垨鍙戝竷鐘舵�併�戞墠鍙互鍙戣捣娴佺▼')
           }
         });
       }

--
Gitblit v1.9.3