mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-23 09:46:45 +08:00
更新
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
<div class="filter">
|
||||
<div class="select">
|
||||
<a-cascader
|
||||
change-on-select
|
||||
:options="option"
|
||||
v-model:value="orgId"
|
||||
style="width: 100%"
|
||||
@@ -173,16 +174,14 @@ export default {
|
||||
}
|
||||
//请求组织接口
|
||||
const getOrgList = async () => {
|
||||
let params = {
|
||||
roleList: store.state.userInfo.roleList,
|
||||
userId: store.state.userInfo.userId
|
||||
}
|
||||
const res = await api.userGetUserOrg(params);
|
||||
//todo 获取用户角色列表,判断里面是否有system-admin
|
||||
// let roleList = store.state.userInfo.roleList;
|
||||
const res = await api.userGetUserOrg();
|
||||
if (res) {
|
||||
state.option = res.data?.result;
|
||||
state.orgId = state.option[0]?.organizationId;
|
||||
state.resetOrgId = state.option[0]?.organizationId;
|
||||
state.allowClear = false
|
||||
state.orgId = [state.option[0]?.organizationId];
|
||||
state.resetOrgId = [state.option[0]?.organizationId];
|
||||
state.allowClear = true;
|
||||
getTableData();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user