แก้ ทั้งหมดเป็น ALL

This commit is contained in:
setthawutttty 2025-03-06 09:58:10 +07:00
parent 9c72cd249d
commit 2f9d289c4c
3 changed files with 5 additions and 5 deletions

View file

@ -30,7 +30,7 @@ const querySting = reactive<QuerySting>({
page: 1, //*
pageSize: 10, //*
keyword: leaveStore.filter.keyword, //keyword
profileType: '', //profileType
profileType: 'ALL', //profileType
});
//** API*/

View file

@ -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() {

View file

@ -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"
/>