From b79a39d92db3baae7c3c8587e2858561bec0d6ca Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 17 四月 2024 14:37:34 +0800
Subject: [PATCH] mrshi
---
company/src/components/system/role/MenuConfigWindow.vue | 38 +++++++++++++++++++-------------------
1 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/company/src/components/system/role/MenuConfigWindow.vue b/company/src/components/system/role/MenuConfigWindow.vue
index 536f92e..3a2637a 100644
--- a/company/src/components/system/role/MenuConfigWindow.vue
+++ b/company/src/components/system/role/MenuConfigWindow.vue
@@ -50,8 +50,7 @@
* @role 瑙掕壊瀵硅薄
*/
open (role) {
- if (this.userInfo.type === 1) {
- fetchTree1({})
+ fetchTree1(0)
.then(records => {
this.role = role
this.menus = records
@@ -66,23 +65,24 @@
.catch(e => {
this.$tip.apiFailed(e)
})
- } else {
- fetchMenuList({})
- .then(records => {
- this.role = role
- this.menus = records
- // 濡傛灉涓哄浐瀹氳鑹诧紝鍒欏浐瀹氳彍鍗曚笉鍙洿鏀�
- this.__resetDisabled(this.menus, this.role)
- // 鎵惧嚭鍙惰妭鐐�
- role.menus = role.menus.filter(menu => role.menus.findIndex(m => m.parentId === menu.id) === -1)
- // 鍒濆鍖栭�変腑
- this.selectedIds = role.menus.map(r => r.id)
- this.visible = true
- })
- .catch(e => {
- this.$tip.apiFailed(e)
- })
- }
+ // }
+ // else {
+ // fetchMenuList()
+ // .then(records => {
+ // this.role = role
+ // this.menus = records
+ // // 濡傛灉涓哄浐瀹氳鑹诧紝鍒欏浐瀹氳彍鍗曚笉鍙洿鏀�
+ // this.__resetDisabled(this.menus, this.role)
+ // // 鎵惧嚭鍙惰妭鐐�
+ // role.menus = role.menus.filter(menu => role.menus.findIndex(m => m.parentId === menu.id) === -1)
+ // // 鍒濆鍖栭�変腑
+ // this.selectedIds = role.menus.map(r => r.id)
+ // this.visible = true
+ // })
+ // .catch(e => {
+ // this.$tip.apiFailed(e)
+ // })
+ // }
},
// 纭閫夋嫨鑿滃崟
--
Gitblit v1.9.3