From d30089f9dd63f5f844433c5414b471f2676eec3a Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期三, 02 八月 2023 16:05:56 +0800
Subject: [PATCH] Merge branch 'master' of http://dev.vci-tech.com:1065/r/ubcs

---
 Source/UBCS-WEB/src/components/Master/MasterTransfer.vue    |   43 +++++++++++++++++++++++--------------------
 Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue |   16 ++++++++++------
 2 files changed, 33 insertions(+), 26 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/Master/MasterTransfer.vue b/Source/UBCS-WEB/src/components/Master/MasterTransfer.vue
index cdb319c..b876bab 100644
--- a/Source/UBCS-WEB/src/components/Master/MasterTransfer.vue
+++ b/Source/UBCS-WEB/src/components/Master/MasterTransfer.vue
@@ -66,28 +66,31 @@
       this.dialogPush = this.visible;
     },
     //琛ㄥご鏁版嵁 鐢ㄦ潵娓叉煋绌挎妗�
-    tableHeadData:{
-      handler(newval,oldval){
+    tableHeadData: {
+      handler(newval, oldval) {
         console.log(newval)
-       if(newval){
-         //excel琛ㄥご鏁版嵁杞崲
-         this.tableHeadFindData=newval.map(obj => obj.label);
-         this.tableHeadFindData.forEach((city, index) => {
-           this.data.push({
-             label: city,
-             key: index,
-           });
-         });
-         //excel琛ㄦ牸鏁版嵁杞崲
-         this.option.column[0].children=newval.map(obj => {
-           return {
-             label: obj.label,
-             prop: obj.prop
-           }
-         })
-       }
+        if (newval) {
+          // 娓呯┖data鏁扮粍
+          this.data = [];
+          // excel琛ㄥご鏁版嵁杞崲
+          this.tableHeadFindData = newval.map(obj => obj.label);
+          this.tableHeadFindData.forEach((city, index) => {
+            this.data.push({
+              label: city,
+              key: index,
+            });
+          });
+          console.log(this.data)
+          // excel琛ㄦ牸鏁版嵁杞崲
+          this.option.column[0].children = newval.map(obj => {
+            return {
+              label: obj.label,
+              prop: obj.prop
+            }
+          })
+        }
       }
-},
+    },
     tableData(){
       // 灏嗗�奸噷闈㈢殑true鎴杅alse鏀瑰彉涓烘槸鎴栧惁
       this.option.data = this.tableData.map(obj => {
diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
index dadf546..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',

--
Gitblit v1.9.3