feat(leave): add pending jobs tab to work-list page
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m53s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m53s
This commit is contained in:
parent
2355639f25
commit
6aa2709986
4 changed files with 295 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ import { useRoute } from "vue-router";
|
|||
import Tab1 from "@/modules/09_leave/components/02_WorkList/Tab1.vue";
|
||||
import Tab2 from "@/modules/09_leave/components/02_WorkList/Tab2.vue";
|
||||
import Tab3 from "@/modules/09_leave/components/02_WorkList/Tab3_Processed_Late.vue";
|
||||
import Tab4_Pending from "@/modules/09_leave/components/02_WorkList/Tab4_Pending.vue";
|
||||
|
||||
const stores = useWorklistDataStore();
|
||||
const route = useRoute();
|
||||
|
|
@ -21,6 +22,10 @@ const isPermissionTab3 = computed(() => {
|
|||
checkPermission(route)?.attrIsUpdate)
|
||||
);
|
||||
});
|
||||
|
||||
const isPermissionTab4 = computed(() => {
|
||||
return checkPermission(route)?.attrOwnership === "OWNER";
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
@ -46,6 +51,7 @@ const isPermissionTab3 = computed(() => {
|
|||
name="3"
|
||||
label="ประมวลผลการขาดราชการ/มาสาย"
|
||||
/>
|
||||
<q-tab v-if="isPermissionTab4" name="4" label="รอประมวลผล/มาสาย" />
|
||||
<!-- เพิ่มแท็บใหม่ -->
|
||||
</q-tabs>
|
||||
|
||||
|
|
@ -62,6 +68,9 @@ const isPermissionTab3 = computed(() => {
|
|||
<q-tab-panel name="3">
|
||||
<Tab3 />
|
||||
</q-tab-panel>
|
||||
<q-tab-panel name="4">
|
||||
<Tab4_Pending />
|
||||
</q-tab-panel>
|
||||
</q-tab-panels>
|
||||
</div>
|
||||
</q-card>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue