From 8199d1738e8b75ccad7f3465dfd88aac2bb1a160 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期五, 04 八月 2023 14:56:11 +0800
Subject: [PATCH] 主题库切换树模板流程和阶段显示bug

---
 Source/UBCS-WEB/src/components/template/FlowPath.vue        |    6 ++++++
 Source/UBCS-WEB/src/components/template/Stage.vue           |    2 ++
 Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue      |    1 -
 Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue |   40 +++++++++++++++++++---------------------
 Source/UBCS-WEB/src/components/Theme/ThemeTemplatePro.vue   |    4 ++--
 5 files changed, 29 insertions(+), 24 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue b/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
index b2f8267..39bad89 100644
--- a/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
+++ b/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
@@ -395,7 +395,6 @@
     },
     crudArray:{
       handler(newval,oldval){
-        console.log('crudArray',newval)
         if(newval != undefined){
           if(newval.length>=1){
             this.crudArrayFlag=true
diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue
index 13f9b79..3e6f995 100644
--- a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue
+++ b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue
@@ -1409,29 +1409,27 @@
       }
     },
     //鍏嬮殕妯℃澘鍗曢�夋鏀瑰彉
-    selectionChange(row){
-      this.CloneSelect=row;
-      //鍙屽悜缁戝畾锛屾彁浜よ〃鍗曡緭鍏ユ鍥炲~涓婂綋鍓嶉�夋嫨鐨勬暟鎹�
-      this.CloneModel.id=row[0].id;
-      this.CloneModel.name=row[0].name;
-      //杩欓噷鏈夌偣缁曪紝CloneSelect鏄垜閫夋嫨妗嗛�夋嫨鐨勬暟鎹�傜瓑浜巘his.nodeClickList.oid鏄洜涓猴紝鍏嬮殕妯℃澘浼犻�掓暟鎹鎶婂綋鍓嶉�夋嫨鏍戠殑oid浼犻�掔粰鍚庣銆傝�屼笉鏄綋鍓嶈鍏嬮殕妯℃澘鐨刼id
-      this.CloneSelect[0].codeclassifyoid=this.nodeClickList.oid
+    selectionChange(row) {
+      Object.assign(this.CloneModel, row[0]);
+      this.CloneSelect = [row[0]];
+      this.CloneSelect[0].codeclassifyoid = this.nodeClickList.oid;
     },
     //鍏嬮殕琛ㄥ崟鎻愪氦
-    Clonesubmit(row,done){
-      //閲嶆柊璧嬪�糃loneSelect浼犻�掔殑鏁版嵁涓鸿緭鍏ユ鍙互淇敼鐨勬暟鎹紝CloneModel鎻愪氦琛ㄥ崟杈撳叆妗嗗弻鍚戠粦瀹氭暟鎹�
-      this.CloneSelect[0].id=this.CloneModel.id;
-      this.CloneSelect[0].name=this.CloneModel.name;
-      copy(this.CloneSelect[0]).then(()=>{
-        //鍥犱负鏄祵濂楀脊绐楁墍浠ユ墜鍔ㄥ叧闂瑿loneinnerVisible锛孋loneVisible涓や釜寮圭獥銆�
-        this.CloneinnerVisible=false
-        this.CloneVisible=false
-        this.$message.success("澶嶅埗鎴愬姛")
-        this.TemRefresh();
-        done(row)
-      }).catch(res=>{
-        done(res)
-      })
+    Clonesubmit(row, done) {
+      // 閲嶆柊璧嬪�糃loneSelect浼犻�掔殑鏁版嵁涓鸿緭鍏ユ鍙互淇敼鐨勬暟鎹紝CloneModel鎻愪氦琛ㄥ崟杈撳叆妗嗗弻鍚戠粦瀹氭暟鎹�
+      Object.assign(this.CloneSelect[0], this.CloneModel);
+      copy(this.CloneSelect[0])
+        .then(() => {
+          // 鍥犱负鏄祵濂楀脊绐楁墍浠ユ墜鍔ㄥ叧闂瑿loneinnerVisible锛孋loneVisible涓や釜寮圭獥銆�
+          this.CloneinnerVisible = false;
+          this.CloneVisible = false;
+          this.$message.success("澶嶅埗鎴愬姛");
+          this.TemRefresh();
+          done(row);
+        })
+        .catch((error) => {
+          done(error);
+        });
     },
     //鍒锋柊
     TemRefresh() {
diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeTemplatePro.vue b/Source/UBCS-WEB/src/components/Theme/ThemeTemplatePro.vue
index 88da25c..160c034 100644
--- a/Source/UBCS-WEB/src/components/Theme/ThemeTemplatePro.vue
+++ b/Source/UBCS-WEB/src/components/Theme/ThemeTemplatePro.vue
@@ -5,10 +5,10 @@
       <attrCrud :ProData="ProData"  :crudOid="crudOid" :checkStatus="checkStatus"  :crudLCStatus="crudLCStatus" :crudArray="crudArray" :Formlist="Formlist" :codeClassifyOid="codeClassifyOid"></attrCrud>
     </span>
     <span v-else-if="type.prop==='tab2'">
-       <FlowPath :code="this.crudOid" :checkStatus="checkStatus" :crudLCStatus="crudLCStatus"></FlowPath>
+       <FlowPath ref="FlowPath" :code="this.crudOid" :checkStatus="checkStatus" :crudLCStatus="crudLCStatus" :Formlist="Formlist"></FlowPath>
     </span>
     <span v-else-if="type.prop==='tab3'">
-          <stage  :code="this.crudOid"></stage>
+          <stage ref="stage"  :code="this.crudOid" :Formlist="Formlist"></stage>
     </span>
   </basic-container>
 
diff --git a/Source/UBCS-WEB/src/components/template/FlowPath.vue b/Source/UBCS-WEB/src/components/template/FlowPath.vue
index 83f36ba..b1e37dd 100644
--- a/Source/UBCS-WEB/src/components/template/FlowPath.vue
+++ b/Source/UBCS-WEB/src/components/template/FlowPath.vue
@@ -23,6 +23,10 @@
         typeof: String,
         required: true,
         default: ""
+      },
+      Formlist:{
+        type:Array,
+        default:[]
       }
     },
     data() {
@@ -159,6 +163,8 @@
               this.data = data.records
               this.page.total = data.total
             } else this.loading = false
+          }else {
+            this.data=[]
           }
 
         },
diff --git a/Source/UBCS-WEB/src/components/template/Stage.vue b/Source/UBCS-WEB/src/components/template/Stage.vue
index cce53f2..e440f54 100644
--- a/Source/UBCS-WEB/src/components/template/Stage.vue
+++ b/Source/UBCS-WEB/src/components/template/Stage.vue
@@ -144,6 +144,8 @@
               this.data = data.records
               this.page.total = data.total
             } else this.loading = false
+          }else {
+            this.data=[]
           }
         },
         // 鑾峰彇闃舵鍒楄〃

--
Gitblit v1.9.3