ปรับ interfeac

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-10-19 15:39:18 +07:00
parent 09b1b9f492
commit cfc073e30c
16 changed files with 462 additions and 277 deletions

View file

@ -6,7 +6,7 @@ import { useLeavelistDataStore } from "../stores/LeaveStore";
import TableList from "../components/2_Leave/TableList.vue";
const leaveStore = useLeavelistDataStore();
const { fecthList, clearFilter } = leaveStore;
const { fetchList, clearFilter } = leaveStore;
onMounted(() => {
fecthLeaveList();
@ -39,7 +39,7 @@ function fecthLeaveList() {
status: "2",
},
];
fecthList(data); // stores
fetchList(data); // stores
}
// Tab
function changTab() {
@ -51,7 +51,7 @@ function changTab() {
<div class="toptitle text-dark col-12 row items-center">รายการลา</div>
<div>
<!-- <q-card flat bordered class="col-12 q-mt-sm"> -->
<q-card bordered flat >
<q-card bordered flat>
<q-tabs
v-model="leaveStore.tab"
dense
@ -66,7 +66,6 @@ function changTab() {
@click="changTab"
name="1"
label="รายการลาที่อยู่ระหว่างดำเนิดการ"
>
<q-badge
color="grey-4"
@ -79,12 +78,7 @@ function changTab() {
rounded
/>
</q-tab>
<q-tab
@click="changTab"
name="2"
label="รายการลาทั้งหมด"
>
<q-tab @click="changTab" name="2" label="รายการลาทั้งหมด">
<q-badge
color="grey-4"
:class="
@ -110,7 +104,7 @@ function changTab() {
<TableList />
</q-tab-panel>
</q-tab-panels>
<!-- </q-card> -->
<!-- </q-card> -->
</q-card>
</div>
</template>

View file

@ -9,7 +9,7 @@ import TableList from "../components/1_Work/TableList.vue";
const mixin = useCounterMixin();
const workStore = useWorklistDataStore();
const { date2Thai } = mixin;
const { fecthList } = workStore;
const { fetchList } = workStore;
onMounted(() => {
fecthWorkList();
@ -66,7 +66,7 @@ function fecthWorkList() {
status: "1",
},
];
fecthList(listData); // stores
fetchList(listData); // stores
}
</script>
<template>