ปรับค้นงานปีงบประมาณ ประวัติการลงเวลา
This commit is contained in:
parent
a51042d48a
commit
9aef54609d
5 changed files with 134 additions and 10 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue