From f9b4416e12f18f1fbeaa98d3981ec3558a580ac4 Mon Sep 17 00:00:00 2001 From: lipeng Date: Wed, 12 Jul 2023 11:25:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A7=92=E8=89=B2=E5=88=86?= =?UTF-8?q?=E9=85=8D=E7=AD=9B=E9=80=89=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/main/authority/role/index.vue | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/src/page/main/authority/role/index.vue b/src/page/main/authority/role/index.vue index 4f1b9ab..b69ed8c 100644 --- a/src/page/main/authority/role/index.vue +++ b/src/page/main/authority/role/index.vue @@ -107,7 +107,7 @@
{ + let temp = []; + switch (state.actionRow.role_type) { + case 0: + temp = userState.orgList; + break; + case 1: + temp = userState.orgList.slice(1, userState.orgList.length); + break; + case 2: + temp = userState.orgList.slice(0, 1); + break; + default: + break; + } + return temp; +}); // 获取角色列表 const getRoleRows = () => { let params = { ...state.filter }; @@ -351,7 +368,6 @@ const getUserList = () => { }; axios.get(`/v1/api/role/allotment/list`, { params }).then((res) => { if (res.data.code == 200) { - console.log(res.data.data); userState.userRows = res.data.data || []; userState.total = res.data.total; nextTick(() => { -- 2.26.0