From 9675f1491ef23c4c6f69cb83cbf6de3fd6dac61b Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期三, 26 七月 2023 17:40:58 +0800
Subject: [PATCH] 主数据导出

---
 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