mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-23 17:55:39 +08:00
组织选择修改
This commit is contained in:
@@ -159,9 +159,9 @@ export default {
|
||||
// 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.option = res.data?.result.orgTreeList;
|
||||
state.orgId = res.data?.result.treeNodeList;
|
||||
state.resetOrgId = res.data?.result.treeNodeList;
|
||||
state.allowClear = true;
|
||||
getTableData();
|
||||
}
|
||||
|
||||
@@ -187,9 +187,9 @@ export default {
|
||||
}
|
||||
const res = await api.userGetUserOrg(params);
|
||||
if (res) {
|
||||
state.option = res.data?.result;
|
||||
state.orgId = [state.option[0]?.organizationId];
|
||||
state.resetOrgId = [state.option[0]?.organizationId];
|
||||
state.option = res.data?.result.orgTreeList;
|
||||
state.orgId = res.data?.result.treeNodeList;
|
||||
state.resetOrgId = res.data?.result.treeNodeList;
|
||||
state.allowClear = true
|
||||
getTableData();
|
||||
}
|
||||
|
||||
@@ -218,9 +218,9 @@ export default {
|
||||
const getOrgList = async () => {
|
||||
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.option = res.data?.result.orgTreeList;
|
||||
state.orgId = res.data?.result.treeNodeList;
|
||||
state.resetOrgId = res.data?.result.treeNodeList;
|
||||
res.data?.result?.userType === 1
|
||||
? (state.allowClear = true)
|
||||
: (state.allowClear = false);
|
||||
|
||||
@@ -188,9 +188,12 @@ export default {
|
||||
// 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.option = res.data?.result;
|
||||
// state.orgId = [state.option[0]?.organizationId];
|
||||
// state.resetOrgId = [state.option[0]?.organizationId];
|
||||
state.option = res.data?.result.orgTreeList;
|
||||
state.orgId = res.data?.result.treeNodeList;
|
||||
state.resetOrgId = res.data?.result.treeNodeList;
|
||||
state.allowClear = true;
|
||||
getTableData();
|
||||
}
|
||||
|
||||
@@ -184,9 +184,9 @@ export default {
|
||||
const getOrgList = async () => {
|
||||
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.option = res.data?.result.orgTreeList;
|
||||
state.orgId = res.data?.result.treeNodeList;
|
||||
state.resetOrgId = res.data?.result.treeNodeList;
|
||||
res.data?.result?.userType === 1
|
||||
? (state.allowClear = true)
|
||||
: (state.allowClear = false);
|
||||
|
||||
@@ -315,9 +315,9 @@ export default {
|
||||
}
|
||||
const res = await api.userGetUserOrg(params);
|
||||
if (res) {
|
||||
state.option = res.data?.result;
|
||||
state.orgId = [state.option[0]?.organizationId];
|
||||
state.resetOrgId = [state.option[0]?.organizationId];
|
||||
state.option = res.data?.result.orgTreeList;
|
||||
state.orgId = res.data?.result.treeNodeList;
|
||||
state.resetOrgId = res.data?.result.treeNodeList;
|
||||
state.allowClear = true
|
||||
getTableData();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user