fix search ==> ประวัติถือครองตำแหน่ง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-07-21 11:56:48 +07:00
parent e82bc57406
commit f15883195c

View file

@ -199,6 +199,7 @@ function closeDialog() {
@update:model-value="(Keyword = ''), (positionKeyword = '')" @update:model-value="(Keyword = ''), (positionKeyword = '')"
/> />
</div> </div>
<div class="col-3" v-if="typeKeyword === 'no'"> <div class="col-3" v-if="typeKeyword === 'no'">
<q-input <q-input
outlined outlined
@ -210,10 +211,10 @@ function closeDialog() {
? 'เลขที่ตำแหน่ง' ? 'เลขที่ตำแหน่ง'
: 'ตำแหน่งเลขที่' : 'ตำแหน่งเลขที่'
" "
:rules="[(val:string) => !!val || employeeClass === 'officer' :rules="[(val:string) => !!val || `${employeeClass === 'officer' ? 'กรุณากรอก เลขที่ตำแหน่ง' :
? 'กรุณากรอก เลขที่ตำแหน่ง' 'กรุณากรอก ตำแหน่งเลขที่'}`]"
: 'กรุณากรอก ตำแหน่งเลขที่']"
hide-bottom-space hide-bottom-space
@keyup.enter="clickSearch(employeeClass)"
/> />
</div> </div>
@ -226,6 +227,7 @@ function closeDialog() {
placeholder="ตำแหน่ง" placeholder="ตำแหน่ง"
:rules="[(val:string) => !!val || `${'กรุณากรอก ตำแหน่ง'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก ตำแหน่ง'}`]"
hide-bottom-space hide-bottom-space
@keyup.enter="clickSearch(employeeClass)"
/> />
</div> </div>
<div :class="typeKeyword ? 'offset-3 col-3' : 'col-3 offset-6'"> <div :class="typeKeyword ? 'offset-3 col-3' : 'col-3 offset-6'">