mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-08 10:26:44 +08:00
Merge remote-tracking branch 'yx/250605-added-yzt' into test20250220
This commit is contained in:
@@ -244,9 +244,11 @@ export default {
|
||||
}
|
||||
|
||||
const res = await api.userGetUserOrg({});
|
||||
// const res = orgjson;
|
||||
if (res != null && res.data != null && res.data.result != null && res.data.result.orgTreeList != null) {
|
||||
orgArray = flattenOrgTree(res.data.result.orgTreeList);
|
||||
}
|
||||
|
||||
if (res) {
|
||||
if (manageFlag) {
|
||||
state.option = [{
|
||||
@@ -254,8 +256,8 @@ export default {
|
||||
organizationId: null,
|
||||
childList: res.data?.result.orgTreeList
|
||||
}];
|
||||
state.orgId = res.data?.result.treeNodeList || [];
|
||||
state.resetOrgId = res.data?.result.treeNodeList || [];
|
||||
state.orgId = [null, ...res.data?.result.treeNodeList];
|
||||
state.resetOrgId = [null, ...res.data?.result.treeNodeList];
|
||||
} else {
|
||||
if (res.data?.result.orgTreeList != null) {
|
||||
state.option = res.data?.result.orgTreeList;
|
||||
@@ -271,6 +273,10 @@ export default {
|
||||
state.resetOrgId = ["1"];
|
||||
}
|
||||
}
|
||||
state.type = res.data?.result?.userType;
|
||||
res.data?.result?.userType === 1
|
||||
? (state.allowClear = true)
|
||||
: (state.allowClear = false);
|
||||
getTableData();
|
||||
}
|
||||
};
|
||||
@@ -589,7 +595,7 @@ export default {
|
||||
size: state.pageSize,
|
||||
userNo: state.userNo,
|
||||
name: state.name,
|
||||
orgId: state.orgId,
|
||||
orgId: state.orgId ? state.orgId[state.orgId.length - 1] : null,
|
||||
bandCode: state.valueBand,
|
||||
jobName: state.studentJobName,
|
||||
tableSorts: state.tableSorts
|
||||
|
||||
Reference in New Issue
Block a user