API รายการลา
This commit is contained in:
parent
6d12f50399
commit
035696b5b0
18 changed files with 273 additions and 196 deletions
|
|
@ -47,7 +47,7 @@ function updateQuerySting(
|
|||
|
||||
/** function ค้นหาข้อมูลใน Table*/
|
||||
async function filterListLeave() {
|
||||
updateQuerySting(1, 0, filter);
|
||||
updateQuerySting(1, 0, leaveStore.filter);
|
||||
}
|
||||
|
||||
/** Option*/
|
||||
|
|
@ -150,7 +150,7 @@ onMounted(async () => {
|
|||
<div class="col-xs-12 col-sm-3 col-md-2">
|
||||
<datepicker
|
||||
menu-class-name="modalfix"
|
||||
v-model="filter.year"
|
||||
v-model="leaveStore.filter.year"
|
||||
class="col-2"
|
||||
:locale="'th'"
|
||||
autoApply
|
||||
|
|
@ -167,7 +167,7 @@ onMounted(async () => {
|
|||
dense
|
||||
lazy-rules
|
||||
outlined
|
||||
:model-value="Number(filter.year) + 543"
|
||||
:model-value="Number(leaveStore.filter.year) + 543"
|
||||
:label="`${'ปีงบประมาณ'}`"
|
||||
>
|
||||
<template v-slot:prepend>
|
||||
|
|
@ -189,7 +189,7 @@ onMounted(async () => {
|
|||
map-options
|
||||
outlined
|
||||
dense
|
||||
v-model="filter.type"
|
||||
v-model="leaveStore.filter.type"
|
||||
:options="optionType"
|
||||
option-value="id"
|
||||
option-label="name"
|
||||
|
|
@ -215,7 +215,7 @@ onMounted(async () => {
|
|||
map-options
|
||||
outlined
|
||||
dense
|
||||
v-model="filter.status"
|
||||
v-model="leaveStore.filter.status"
|
||||
:options="optionStatus"
|
||||
option-value="id"
|
||||
option-label="name"
|
||||
|
|
@ -240,7 +240,7 @@ onMounted(async () => {
|
|||
for="filterTable"
|
||||
dense
|
||||
outlined
|
||||
v-model="filter.keyword"
|
||||
v-model="leaveStore.filter.keyword"
|
||||
label="ค้นหา"
|
||||
@keydown.enter.prevent="filterListLeave"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue