From a2109930695034bc9fe3e2d38f97649b0d2d2a12 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期一, 31 七月 2023 20:46:04 +0800
Subject: [PATCH] Merge branch 'master' of http://dev.vci-tech.com:1065/r/ubcs

---
 Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue |   89 +++++++++++++++++++-------------------------
 1 files changed, 39 insertions(+), 50 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue
index 750dcbf..8b4cadb 100644
--- a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue
+++ b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue
@@ -58,7 +58,7 @@
         </el-dialog>
         <!--        淇敼瀵硅瘽妗�-->
         <el-dialog :visible.sync="TreeEditFormVisible" append-to-body title="淇敼鍒嗙被">
-          <classifyTreeform ref="childForm" :loneTreeNewForm="TreeList" :nodeList="nodeList" :flag="'edit'" @MasterHandler="MasterHandler" :Editclose=" ()=>{TreeEditFormVisible=false}" :TreeFlag="TreeFlagCode" ::nodeClickList="nodeClickList" @referTreeForm="referTreeForm" @flushed="flushed"></classifyTreeform>
+          <classifyTreeform ref="childForm" :loneTreeNewForm="TreeList" :nodeList="nodeList" :flag="'edit'" @MasterHandler="MasterHandler" :Editclose=" ()=>{TreeEditFormVisible=false}" :TreeFlag="TreeFlagCode" :nodeClickList="nodeClickList" @referTreeForm="referTreeForm" @flushed="flushed"></classifyTreeform>
         </el-dialog>
         <avue-tree ref="tree" v-model="CloneTreeAvueform" v-loading="loading" :data="CloneTreedata" :defaultExpandAll="false"
                    :option="Treeoption"
@@ -730,6 +730,13 @@
   created() {
 
   },
+  watch:{
+    FormList:{
+      handler(newval,oldval){
+        console.log('FormList',newval)
+      }
+    }
+  },
   methods: {
     /** 瀵煎叆 */
     ImportExcel(){
@@ -967,29 +974,7 @@
       this.crudOid=row.oid;
       this.crudLCStatus=row.lcStatus;
       this.crudArray.push(row);
-      gridCodeClassifyTemplateAttr({'conditionMap[classifyTemplateOid]': this.Formlist[this.selectRow].oid,limit:-1}).then(res => {
-        this.ProData = res.data.data;
-        //鍒嗙被娉ㄥ叆鏁版嵁鏍煎紡
-        this.ProData =  res.data.data.map((item) => {
-          //濡傛灉鍒嗙被娉ㄥ叆classifyInvokeAttr涓虹┖璇存槑鏄垵濮嬬姸鎬�
-          if(item.classifyInvokeAttr !== ''){
-            if (!item.hasOwnProperty('classifyInvokeText')) { // 妫�鏌lassifyInvokeText灞炴�ф槸鍚﹀瓨鍦�
-              item = {
-                ...item,
-                classifyInvokeText: {
-                  "娉ㄥ叆绫诲瀷": item.classifyInvokeAttr,
-                  "娉ㄥ叆绫诲瀷鍚嶇О": item.classifyInvokeAttrName,
-                  "灞傜骇璁剧疆": item.classifyInvokeLevel,
-                  "鏄惁鍙慨鏀�": item.classifyInvokeEditFlag
-                }
-              };
-            }
-          }
-          return item;
-        });
-      }).catch(res => {
-        this.$message.error(res)
-      })
+      this.gridCode()
     },
     //鍒嗙被鏍戞暟鎹鐞�
     getAttr() {
@@ -1222,31 +1207,8 @@
           if(this.Formlist.length >= 1){
             this.crudLCStatus=this.Formlist[this.selectRow].lcStatus;
             this.crudArray.push(this.Formlist[this.selectRow]);
-            this.crudOid=this.Formlist[this.selectRow].oid
-            gridCodeClassifyTemplateAttr({'conditionMap[classifyTemplateOid]': this.Formlist[this.selectRow].oid,limit:-1}).then(res => {
-              this.ProData = res.data.data;
-              console.log(this.ProData)
-              //鍒嗙被娉ㄥ叆鏁版嵁鏍煎紡
-              this.ProData =  res.data.data.map((item) => {
-                //濡傛灉鍒嗙被娉ㄥ叆classifyInvokeAttr涓虹┖璇存槑鏄垵濮嬬姸鎬�
-                if(item.classifyInvokeAttr !== ''){
-                  if (!item.hasOwnProperty('classifyInvokeText')) { // 妫�鏌lassifyInvokeText灞炴�ф槸鍚﹀瓨鍦�
-                    item = {
-                      ...item,
-                      classifyInvokeText: {
-                        "娉ㄥ叆绫诲瀷": item.classifyInvokeAttr,
-                        "娉ㄥ叆绫诲瀷鍚嶇О": item.classifyInvokeAttrName,
-                        "灞傜骇璁剧疆": item.classifyInvokeLevel,
-                        "鏄惁鍙慨鏀�": item.classifyInvokeEditFlag
-                      }
-                    };
-                  }
-                }
-                return item;
-              });
-            }).catch(res => {
-              this.$message.error(res)
-            })
+            this.crudOid=this.Formlist[this.selectRow].oid;
+            this.gridCode()
           }else {
               this.ProData = [];
           }
@@ -1262,6 +1224,31 @@
       } catch (error) {
         this.$message.error(error)
       }
+    },
+    gridCode(){
+      gridCodeClassifyTemplateAttr({'conditionMap[classifyTemplateOid]': this.Formlist[this.selectRow].oid,limit:-1}).then(res => {
+        this.ProData = res.data.data;
+        //鍒嗙被娉ㄥ叆鏁版嵁鏍煎紡
+        this.ProData =  res.data.data.map((item) => {
+          //濡傛灉鍒嗙被娉ㄥ叆classifyInvokeAttr涓虹┖璇存槑鏄垵濮嬬姸鎬�
+          if(item.classifyInvokeAttr !== ''){
+            if (!item.hasOwnProperty('classifyInvokeText')) { // 妫�鏌lassifyInvokeText灞炴�ф槸鍚﹀瓨鍦�
+              item = {
+                ...item,
+                classifyInvokeText: {
+                  "娉ㄥ叆绫诲瀷": item.classifyInvokeAttr,
+                  "娉ㄥ叆绫诲瀷鍚嶇О": item.classifyInvokeAttrName,
+                  "灞傜骇璁剧疆": item.classifyInvokeLevel,
+                  "鏄惁鍙慨鏀�": item.classifyInvokeEditFlag
+                }
+              };
+            }
+          }
+          return item;
+        });
+      }).catch(res => {
+        this.$message.error(res)
+      })
     },
     treeClick(e) {
       console.log(e);
@@ -1455,12 +1442,14 @@
     },
     //鍒锋柊
     TemRefresh() {
-      this.FormLoing = true
+      this.FormLoing = true;
       if (this.nodeClickList.oid != "") {
         gridCodeClassifyTemplate({'conditionMap[codeclassifyoid]': this.nodeClickList.oid}).then(res => {
           this.Formlist = res.data.data.filter(item => {
             return item.codeclassifyoid == this.nodeClickList.oid
           })
+          this.crudLCStatus=this.Formlist[this.selectRow].lcStatus;
+          this.crudArray.push(this.Formlist[this.selectRow]);
         })
       } else {
         this.FormLoing = true

--
Gitblit v1.9.3