Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m38s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m38s
This commit is contained in:
commit
cd4adcae20
5 changed files with 13 additions and 52 deletions
|
|
@ -464,9 +464,9 @@ function checkhideBtnAction(keycloakID: string) {
|
||||||
* ดึงข้อมูลรายชื่อผู้ใช้งาน
|
* ดึงข้อมูลรายชื่อผู้ใช้งาน
|
||||||
*/
|
*/
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await fetchOrganizationActive();
|
|
||||||
const token = await tokenParsed();
|
const token = await tokenParsed();
|
||||||
tokenParsedData.value = token.role || [];
|
tokenParsedData.value = token.role || [];
|
||||||
|
await fetchOrganizationActive();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -295,45 +295,6 @@ async function fetchDataTree(id: string) {
|
||||||
const isSuperAdmin = tokenParsedData.value.includes("SUPER_ADMIN");
|
const isSuperAdmin = tokenParsedData.value.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,
|
|
||||||
orgRootDnaId: "",
|
|
||||||
orgChild1DnaId: "",
|
|
||||||
orgChild2DnaId: "",
|
|
||||||
orgChild3DnaId: "",
|
|
||||||
orgChild4DnaId: "",
|
|
||||||
},
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
|
|
@ -361,7 +322,7 @@ async function fetchDataTree(id: string) {
|
||||||
async function fetchDataTable(
|
async function fetchDataTable(
|
||||||
id: string | null,
|
id: string | null,
|
||||||
revisionId: string,
|
revisionId: string,
|
||||||
level: number
|
level: number,
|
||||||
) {
|
) {
|
||||||
showLoader();
|
showLoader();
|
||||||
reqMaster.id = id === "" ? null : id;
|
reqMaster.id = id === "" ? null : id;
|
||||||
|
|
@ -437,7 +398,7 @@ function onDeleteRole(id: string) {
|
||||||
await fetchDataTable(
|
await fetchDataTable(
|
||||||
reqMaster.id,
|
reqMaster.id,
|
||||||
reqMaster.revisionId,
|
reqMaster.revisionId,
|
||||||
reqMaster.type
|
reqMaster.type,
|
||||||
);
|
);
|
||||||
success($q, "ลบข้อมูลสำเร็จ");
|
success($q, "ลบข้อมูลสำเร็จ");
|
||||||
})
|
})
|
||||||
|
|
@ -449,7 +410,7 @@ function onDeleteRole(id: string) {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
"ยืนยันการลบสิทธิ์",
|
"ยืนยันการลบสิทธิ์",
|
||||||
"ต้องการยืนยันการลบสิทธิ์นี้หรือไม่ ?"
|
"ต้องการยืนยันการลบสิทธิ์นี้หรือไม่ ?",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -482,7 +443,7 @@ watch(
|
||||||
reqMaster.revisionId = "";
|
reqMaster.revisionId = "";
|
||||||
filter.value = "";
|
filter.value = "";
|
||||||
await fetchDataTree(id);
|
await fetchDataTree(id);
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
/** callblck function ทำการ fetch ข้อมูล Table เมื่อมีการเปลี่ยนหน้า*/
|
/** callblck function ทำการ fetch ข้อมูล Table เมื่อมีการเปลี่ยนหน้า*/
|
||||||
|
|
@ -513,9 +474,9 @@ function checkhideBtnAction(current_holderId: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
fetchOrganizationActive();
|
|
||||||
const token = await tokenParsed();
|
const token = await tokenParsed();
|
||||||
tokenParsedData.value = token.role || [];
|
tokenParsedData.value = token.role || [];
|
||||||
|
await fetchOrganizationActive();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
@ -688,7 +649,7 @@ onMounted(async () => {
|
||||||
fetchDataTable(
|
fetchDataTable(
|
||||||
reqMaster.id,
|
reqMaster.id,
|
||||||
reqMaster.revisionId,
|
reqMaster.revisionId,
|
||||||
reqMaster.type
|
reqMaster.type,
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
|
|
@ -775,7 +736,7 @@ onMounted(async () => {
|
||||||
onOpenModalPersonal(
|
onOpenModalPersonal(
|
||||||
store.typeOrganizational === 'draft'
|
store.typeOrganizational === 'draft'
|
||||||
? props.row.profileIdNextHolder
|
? props.row.profileIdNextHolder
|
||||||
: props.row.profileIdCurrentHolder
|
: props.row.profileIdCurrentHolder,
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
|
|
@ -935,7 +896,7 @@ onMounted(async () => {
|
||||||
fetchDataTable(
|
fetchDataTable(
|
||||||
reqMaster.id,
|
reqMaster.id,
|
||||||
reqMaster.revisionId,
|
reqMaster.revisionId,
|
||||||
reqMaster.type
|
reqMaster.type,
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
></q-pagination>
|
></q-pagination>
|
||||||
|
|
|
||||||
|
|
@ -235,14 +235,14 @@ watch(
|
||||||
() => qureyBody.pageSize,
|
() => qureyBody.pageSize,
|
||||||
() => {
|
() => {
|
||||||
fetchListPerson(true);
|
fetchListPerson(true);
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
/** hook ทำงานเมื่อ Components ถูกเรียกใช้งาน*/
|
/** hook ทำงานเมื่อ Components ถูกเรียกใช้งาน*/
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await fetchOrg(); // ดึงข้อมูลโครงสร้าง
|
|
||||||
const token = await tokenParsed();
|
const token = await tokenParsed();
|
||||||
tokenParsedData.value = token?.role || [];
|
tokenParsedData.value = token?.role || [];
|
||||||
|
await fetchOrg(); // ดึงข้อมูลโครงสร้าง
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -437,9 +437,9 @@ watch(
|
||||||
);
|
);
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
fetchOrganizationActive();
|
|
||||||
const token = await tokenParsed();
|
const token = await tokenParsed();
|
||||||
tokenParsedData.value = token?.role || [];
|
tokenParsedData.value = token?.role || [];
|
||||||
|
await fetchOrganizationActive();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -288,9 +288,9 @@ watch(
|
||||||
|
|
||||||
/** hook ทำงานเมื่อ Components ถูกเรียกใช้งาน*/
|
/** hook ทำงานเมื่อ Components ถูกเรียกใช้งาน*/
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await fatchOrg(); // ดึงข้อมูลโครงสร้าง
|
|
||||||
const token = await tokenParsed();
|
const token = await tokenParsed();
|
||||||
tokenParsedData.value = token?.role || [];
|
tokenParsedData.value = token?.role || [];
|
||||||
|
await fatchOrg(); // ดึงข้อมูลโครงสร้าง
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue