From 2b20f8284d8c59549ebcb9dabca36b5bd5b35702 Mon Sep 17 00:00:00 2001 From: cy <1664593601@qq.com> Date: 星期三, 29 十一月 2023 13:17:14 +0800 Subject: [PATCH] feat: 首页统计预警条数;部门台账物品查询导出 --- admin-web/src/views/systemManger/server/user/editRole.vue | 24 +++++++++++++++--------- 1 files changed, 15 insertions(+), 9 deletions(-) diff --git a/admin-web/src/views/systemManger/server/user/editRole.vue b/admin-web/src/views/systemManger/server/user/editRole.vue index a487e8b..8f98e4f 100644 --- a/admin-web/src/views/systemManger/server/user/editRole.vue +++ b/admin-web/src/views/systemManger/server/user/editRole.vue @@ -76,15 +76,21 @@ // 鑾峰彇鎵�鏈夎鑹� getAllRole() { const user = this.$store.getters.userInfo - if (user.lv == 1) { - this.data_scope = 1 - } - if (user.lv == 2) { - this.data_scope = 2 - } - if (user.lv == 3) { - this.data_scope = 3 - } + // debugger + // if (user == undefined){ + // this.data_scope = 1 + // } else { + // if (user.lv==null|| user.lv== 1) { + // this.data_scope = 1 + // } + // if (user.lv && user.lv== 2) { + // this.data_scope = 2 + // } + // if (user.lv && user.lv== 3) { + // this.data_scope = 3 + // } + // } + this.data_scope = 1 role.listRoleByDataScope({dataScope: this.data_scope}).then(response => { if (response) { this.roleOptions = response; -- Gitblit v1.9.1