From 66afa3c24982b479a7c13bd8a0fb335435e8ecff Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 27 七月 2023 10:25:37 +0800
Subject: [PATCH] Merge branch 'master' of http://dev.vci-tech.com:1065/r/ubcs

---
 Source/UBCS-WEB/src/components/Master/MasterTree.vue |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/Master/MasterTree.vue b/Source/UBCS-WEB/src/components/Master/MasterTree.vue
index 12158d7..0aae92f 100644
--- a/Source/UBCS-WEB/src/components/Master/MasterTree.vue
+++ b/Source/UBCS-WEB/src/components/Master/MasterTree.vue
@@ -83,10 +83,12 @@
       // console.log(this.$route)
       console.log(this.idData)
       getTreeList({'conditionMap[id]':this.idData }).then(res=>{
+        console.log(res)
         this.Treedata=res.data
+        const [firstProperty] = res.data;
         this.ModifyProperties(this.Treedata, 'text', 'label');
-        this.codeClassifyOid=res.data[0].oid;
-        this.coderuleoid=res.data[0].attributes.coderuleoid;
+        this.codeClassifyOid=firstProperty.oid;
+        this.coderuleoid=firstProperty.attributes.coderuleoid;
         this.$emit("coderuleoid", this.coderuleoid )
       }).catch(res=>{
         console.log(res)
@@ -137,7 +139,7 @@
           }
           this.tableHeadDataFateher = res.data;
           this.templateOids = res.data.tableDefineVO.oid;
-          let List = res.data.tableDefineVO.cols[0];
+          const [List] = res.data.tableDefineVO.cols;
           List.forEach(item => {
             let columnItem = {
               label: item.title,

--
Gitblit v1.9.3