ปรับค้นงานปีงบประมาณ ประวัติการลงเวลา

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-11-29 17:46:19 +07:00
parent a51042d48a
commit 9aef54609d
5 changed files with 134 additions and 10 deletions

View file

@ -104,9 +104,11 @@ async function fetchlistTime() {
* function updateYear
* @param y ปเดท
*/
async function updateYear(y: number) {
async function updateYear(y: number, m: number) {
year.value = y
y && functionFetch.value
month.value = m
stores.year = y
functionFetch.value
}
/** Hook*/
@ -118,6 +120,7 @@ watch(
() => tab.value,
() => {
page.value = 1
filter.value = ''
functionFetch.value
}
)
@ -146,7 +149,11 @@ watch(
<div class="col-2"></div>
</div>
<div class="col-12 q-pa-md text-grey-9">
<ToolBar :fetchData="fetchlistHistory" @update:year="updateYear" />
<ToolBar
:fetchData="fetchlistHistory"
@update:year="updateYear"
:tab="tab"
/>
<q-card bordered flat>
<q-tabs
v-model="tab"