diff --git a/src/page/main/authority/role/index.vue b/src/page/main/authority/role/index.vue index 4f1b9abbadd1e8e95e7bd6d01f0eacc6f34fdd8b..b69ed8c36ac6a7cb20b0d14f32e4a6aada960836 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(() => {