Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m53s

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-06-16 16:07:44 +07:00
commit efaaa85fcf

View file

@ -35,6 +35,7 @@ const props = defineProps({
const pageId = ref<string>(route.params.id as string); const pageId = ref<string>(route.params.id as string);
const keyword = ref<string>(""); const keyword = ref<string>("");
const isAct = ref<boolean>(false); const isAct = ref<boolean>(false);
const isAllDirector = ref<boolean>(false);
const total = ref<number>(0); const total = ref<number>(0);
const totalList = ref<number>(1); const totalList = ref<number>(1);
@ -105,6 +106,7 @@ async function getData() {
page: pagination.value.page, page: pagination.value.page,
keyword: keyword.value, keyword: keyword.value,
isAct: isAct.value, isAct: isAct.value,
isAllDirector: isAllDirector.value,
keycloakId: props.keycloakUserId, keycloakId: props.keycloakUserId,
type: type:
props.profileType?.toLocaleLowerCase() === "officer" props.profileType?.toLocaleLowerCase() === "officer"
@ -196,6 +198,7 @@ function closeDialog() {
modal.value = false; modal.value = false;
rows.value = []; rows.value = [];
selected.value = []; selected.value = [];
isAllDirector.value = false;
} }
watch( watch(
@ -231,19 +234,45 @@ watch(
<q-card-section> <q-card-section>
<div class="row q-col-gutter-sm"> <div class="row q-col-gutter-sm">
<div class="col-12"> <div class="col-12">
<div class="row q-gutter-x-xs"> <div class="row items-center q-mb-sm">
<q-input <q-input
dense dense
outlined outlined
label="ค้นหา" label="ค้นหา"
v-model="keyword" v-model="keyword"
style="width: 300px" class="col-grow"
style="max-width: 400px"
@keydown.enter.prevent="onSearchData()" @keydown.enter.prevent="onSearchData()"
> >
<template v-slot:append> <template v-slot:append>
<q-icon name="search"></q-icon> <q-icon name="search"></q-icon>
</template> </template>
</q-input> </q-input>
<q-space />
<q-btn
color="primary"
icon="search"
label="ค้นหา"
class="q-px-md"
@click.prevent="onSearchData"
style="width: 150px"
/>
</div>
<div
class="row items-center q-gutter-x-md text-subtitle2 text-grey-8"
>
<q-checkbox
keep-color
v-model="isAllDirector"
label="หัวหน้าทั้งหน่วยงาน"
color="primary"
@update:model-value="onSearchData"
>
<q-tooltip>วหนาทงหนวยงาน</q-tooltip>
</q-checkbox>
<q-checkbox <q-checkbox
keep-color keep-color
v-model="isAct" v-model="isAct"
@ -251,20 +280,11 @@ watch(
color="primary" color="primary"
@update:model-value="onSearchData" @update:model-value="onSearchData"
> >
<q-tooltip>แสดงเฉพาะรกษาการแทน </q-tooltip> <q-tooltip>แสดงเฉพาะรกษาการแทน</q-tooltip>
</q-checkbox> </q-checkbox>
<q-space />
<q-btn
color="primary"
icon="search"
label="ค้นหา"
class="q-pa-sm"
@click.prevent="onSearchData"
style="width: 200px"
>
</q-btn>
</div> </div>
</div> </div>
<div class="col-12 text-red"> <div class="col-12 text-red">
{{ {{
props.type == "APPROVER" props.type == "APPROVER"