fix bug
This commit is contained in:
parent
bde168c336
commit
0d870a5ae4
1 changed files with 35 additions and 0 deletions
|
|
@ -291,6 +291,40 @@ async function fetchDataTree(id: string) {
|
||||||
const isSuperAdmin = tokenParsedData.role.includes("SUPER_ADMIN");
|
const isSuperAdmin = tokenParsedData.role.includes("SUPER_ADMIN");
|
||||||
if (!isSuperAdmin) {
|
if (!isSuperAdmin) {
|
||||||
nodes.value = [];
|
nodes.value = [];
|
||||||
|
} else {
|
||||||
|
nodes.value = [
|
||||||
|
{
|
||||||
|
labelName: "หน่วยงานทั้งหมด",
|
||||||
|
orgCode: "",
|
||||||
|
orgLevel: 0,
|
||||||
|
orgName: "",
|
||||||
|
orgRevisionId: "",
|
||||||
|
orgRootName: "",
|
||||||
|
orgTreeCode: "",
|
||||||
|
orgTreeFax: "",
|
||||||
|
orgTreeId: "",
|
||||||
|
orgTreeName: "หน่วยงานทั้งหมด",
|
||||||
|
orgTreeOrder: 0,
|
||||||
|
orgTreePhoneEx: "",
|
||||||
|
orgTreePhoneIn: "",
|
||||||
|
orgTreeRank: "",
|
||||||
|
orgTreeRankSub: "",
|
||||||
|
orgTreeShortName: "",
|
||||||
|
responsibility: "",
|
||||||
|
totalPosition: 0,
|
||||||
|
totalPositionCurrentUse: 0,
|
||||||
|
totalPositionCurrentVacant: 0,
|
||||||
|
totalPositionNextUse: 0,
|
||||||
|
totalPositionNextVacant: 0,
|
||||||
|
totalRootPosition: 0,
|
||||||
|
totalRootPositionCurrentUse: 0,
|
||||||
|
totalRootPositionCurrentVacant: 0,
|
||||||
|
totalRootPositionNextUse: 0,
|
||||||
|
totalRootPositionNextVacant: 0,
|
||||||
|
children: [] as NodeTree[],
|
||||||
|
isOfficer: false,
|
||||||
|
},
|
||||||
|
];
|
||||||
}
|
}
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
|
|
@ -436,6 +470,7 @@ watch(
|
||||||
reqMaster.pageSize = 10;
|
reqMaster.pageSize = 10;
|
||||||
reqMaster.keyword = "";
|
reqMaster.keyword = "";
|
||||||
reqMaster.revisionId = "";
|
reqMaster.revisionId = "";
|
||||||
|
filter.value = "";
|
||||||
await fetchDataTree(id);
|
await fetchDataTree(id);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue