แก้ ทั้งหมดเป็น ALL
This commit is contained in:
parent
9c72cd249d
commit
2f9d289c4c
3 changed files with 5 additions and 5 deletions
|
|
@ -30,7 +30,7 @@ const querySting = reactive<QuerySting>({
|
|||
page: 1, //*สถานะการของลา
|
||||
pageSize: 10, //*สถานะการของลา
|
||||
keyword: leaveStore.filter.keyword, //keyword ค้นหา
|
||||
profileType: '', //profileType
|
||||
profileType: 'ALL', //profileType
|
||||
});
|
||||
|
||||
//** เรียกข้อมูลจาก API*/
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ const querySting = reactive<QuerySting>({
|
|||
page: 1, //*สถานะการของลา
|
||||
pageSize: 10, //*สถานะการของลา
|
||||
keyword: leaveStore.filter.keyword, //keyword ค้นหา
|
||||
profileType: '', //profileType
|
||||
profileType: 'ALL', //profileType
|
||||
});
|
||||
//** เรียกข้อมูลจาก API*/
|
||||
async function fecthLeaveList() {
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ watch(
|
|||
label="สถานภาพ"
|
||||
use-input
|
||||
:model-value="
|
||||
querySting.profileType == '' ? 'ทั้งหมด' : querySting.profileType
|
||||
querySting.profileType == 'ALL' ? 'ทั้งหมด' : querySting.profileType
|
||||
"
|
||||
hide-selected
|
||||
fill-input
|
||||
|
|
@ -158,11 +158,11 @@ watch(
|
|||
<q-item-section class="text-grey"> ไม่มีข้อมูล </q-item-section>
|
||||
</q-item>
|
||||
</template>
|
||||
<template v-if="querySting.profileType !== ''" v-slot:append>
|
||||
<template v-if="querySting.profileType !== 'ALL'" v-slot:append>
|
||||
<q-icon
|
||||
name="cancel"
|
||||
@click.stop.prevent="
|
||||
(querySting.profileType = ''), props.getSearch?.()
|
||||
(querySting.profileType = 'ALL'), props.getSearch?.()
|
||||
"
|
||||
class="cursor-pointer"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue