From b62578f8b43f15be89b3d14f463f11aed03e6fb9 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 09 五月 2024 18:57:25 +0800
Subject: [PATCH] 最新版本

---
 admin/src/views/business/internalMember.vue |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/admin/src/views/business/internalMember.vue b/admin/src/views/business/internalMember.vue
index e776e64..a192b7c 100644
--- a/admin/src/views/business/internalMember.vue
+++ b/admin/src/views/business/internalMember.vue
@@ -39,7 +39,7 @@
         <template v-slot:menu>
             <div style="width: 100%; height: 50px; background: rgba(242, 242, 242, 1); line-height: 50px; text-align: center; font-size: 14px;">浼佷笟缁勭粐鏋舵瀯</div>
             <div style="width: 100%; height: calc(100vh - 170px); overflow-y: scroll;">
-                <Tree :list="companyTree" :defaultProps="{name: 'name', status: 'status', children: 'childList', id: 'id',erpId:'erpId'}" @callback="callback" />
+                <Tree :list="companyTree" :defaultProps="{name: 'name', status: 'fsStatus', children: 'childList', id: 'id'}" @callback="callback" />
             </div>
         </template>
         <!-- 琛ㄦ牸鍜屽垎椤� -->
@@ -108,7 +108,7 @@
                     </template>
                 </el-table-column>
                 <el-table-column
-                    v-if="containPermissions(['business:member:update', 'business:member:delete'])"
+                    v-if="containPermissions(['business:member:update', 'business:member:delete','business:empower:create'])"
                     label="鎿嶄綔"
                     min-width="120"
                     fixed="right"
@@ -191,15 +191,17 @@
     getfindCompanyTreePage () {
       fetchList(1)
         .then(res => {
-          res[0].fsStatus = 1
-          this.companyTree = res
-          // this.searchForm.erpOrgId = res[0].erpId
-          this.search()
+          if (res && res.length > 0) {
+            res[0].fsStatus = 1
+            this.companyTree = res
+            // this.searchForm.erpOrgId = res[0].erpId
+            this.search()
+          }
         })
     },
     // 鍚屾淇℃伅
     async synchronous () {
-      this.$dialog.actionConfirm('鎿嶄綔纭鎻愰啋', '鎮ㄧ‘璁ゅ悓姝ュ叏閮ㄤ俊鎭悧锛�')
+      this.$dialog.actionConfirm('璇ユ搷浣滈檷瑙﹀彂鍏ㄥ憳淇℃伅鏇存柊鍜岄噸鏂颁笅鍙戯紒璇疯皑鎱庢搷浣�', '鎮ㄧ‘璁ゅ叏閲忓悓姝ュ唴閮ㄤ汉鍛樹俊鎭悧锛�')
         .then(() => {
           this.loading = true
           memberSync({})

--
Gitblit v1.9.3