อัตรากำลังลูกจ้างประจำฯ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-03-15 10:45:55 +07:00
parent 5a58938dda
commit 20e43bc32e
7 changed files with 26 additions and 539 deletions

View file

@ -16,13 +16,6 @@ const $q = useQuasar();
const { showLoader, hideLoader, messageError } = useCounterMixin();
const store = usePositionEmp();
/** สถานะ*/
const isStatusData = ref<boolean>(false); //
/** ประวัติโครงสร้าง*/
const historyId = ref<string>(""); // ID
const count = ref<number>(0);
/** function เรียกข้อมูลโครงสร้าง แบบปัจุบันและ แบบร่าง*/
async function fetchOrganizationActive() {
showLoader();
@ -32,20 +25,6 @@ async function fetchOrganizationActive() {
const data = res.data.result;
if (data) {
store.fetchDataActive(data);
if (data.activeName === null && data.draftName === null) {
isStatusData.value = false;
} else {
isStatusData.value = true;
if (isStatusData.value) {
if (data.activeName === null) {
// ishasActive.value = true;
store.typeOrganizational = "draft";
} else if (data.draftName === null) {
// ishasDraft.value = true;
store.typeOrganizational = "current";
}
}
}
}
})
.catch((err) => {
@ -58,7 +37,6 @@ async function fetchOrganizationActive() {
/** lifecycleHook */
onMounted(async () => {
store.typeOrganizational = "current";
await fetchOrganizationActive();
});
</script>
@ -73,7 +51,7 @@ onMounted(async () => {
<q-card flat bordered>
<q-card class="my-card">
<q-card-section style="padding: 0px">
<TreeView v-model:historyId="historyId" v-model:count="count" />
<TreeView />
</q-card-section>
</q-card>
</q-card>