50 lines
1.3 KiB
Vue
50 lines
1.3 KiB
Vue
<script setup lang="ts">
|
|
import { ref, toRefs } from "vue";
|
|
|
|
import { useWorklistDataStore } from "@/modules/09_leave/stores/WorkStore";
|
|
|
|
/** import Components */
|
|
import Tab1 from "@/modules/09_leave/components/02_WorkList/Tab1.vue";
|
|
import Tab2 from "@/modules/09_leave/components/02_WorkList/Tab2.vue";
|
|
|
|
const stores = useWorklistDataStore();
|
|
|
|
const { tabs } = toRefs(stores);
|
|
</script>
|
|
|
|
<template>
|
|
<div class="row">
|
|
<span class="toptitle text-dark item-center">รายการลงเวลาปฏิบัติงาน</span>
|
|
</div>
|
|
|
|
<q-card bordered flat>
|
|
<q-tabs
|
|
v-model="tabs"
|
|
dense
|
|
align="left"
|
|
inline-label
|
|
class="rounded-borders"
|
|
indicator-color="primary"
|
|
active-bg-color="teal-1"
|
|
active-class="text-primary"
|
|
>
|
|
<q-tab name="1" label="รายการลงเวลาที่ประมวลผลแล้ว" />
|
|
<q-tab name="2" label="รายการลงเวลา" />
|
|
</q-tabs>
|
|
|
|
<q-separator />
|
|
<div class="q-pa-sm">
|
|
<q-tab-panels v-model="tabs" animated>
|
|
<q-tab-panel name="1">
|
|
<Tab1 />
|
|
</q-tab-panel>
|
|
|
|
<q-tab-panel name="2">
|
|
<Tab2 />
|
|
</q-tab-panel>
|
|
</q-tab-panels>
|
|
</div>
|
|
</q-card>
|
|
</template>
|
|
|
|
<style scoped></style>
|