From ac83abeeafb189a84e9f3ea52b57acee979a353c Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期一, 18 九月 2023 13:31:32 +0800
Subject: [PATCH] 1.往来单位导入测试中

---
 src/views/basicSettings/contactUnitList.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/views/basicSettings/contactUnitList.vue b/src/views/basicSettings/contactUnitList.vue
index 448a898..3c63a7e 100644
--- a/src/views/basicSettings/contactUnitList.vue
+++ b/src/views/basicSettings/contactUnitList.vue
@@ -61,8 +61,9 @@
         <div
           style=" width:calc(100% - 300px);"
         >
-          <div class="bodyTopButtonGroup">
+          <div class="bodyTopButtonGroup" style="justify-content: space-between">
             <el-button v-waves type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">鏂板</el-button>
+            <el-button v-waves type="success" icon="el-icon-download" @click="$router.push('./../systemSetting/dataImport?fileCode=5')">瀵煎叆</el-button>
           </div>
 
           <div class="bodyTopFormGroup">
@@ -519,12 +520,15 @@
         i.idparent = i.idparent ? i.idparent : '-1'
       })
       this.treeLeftArr = res.data
+      this.treeLeftArr.forEach(e => {
+        e.name = e.code + ' ' + e.name
+      })
       this.treeLeft = arrayToTree(this.treeLeft.concat(res.data), {
         parentProperty: 'idparent',
         customID: 'code',
         childrenProperty: 'children'
       })
-
+      console.log(JSON.stringify(this.treeLeft), 1)
       this.$nextTick(() => {
         this.$refs.treeLeftRef.setCurrentKey('-1')
         this.getTCunstomerData(this.$refs.treeLeftRef.getCurrentNode())

--
Gitblit v1.9.3