fix รักษาการในตำแหน่ง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-12-12 11:21:45 +07:00
parent f43df4b3fd
commit 1d9faaf572
2 changed files with 4 additions and 3 deletions

View file

@ -317,7 +317,7 @@ onMounted(() => {
<q-space /> <q-space />
<q-btn <q-btn
class="q-px-sm" class="q-px-sm"
v-if="storeActing.isOfficer === true" v-if="storeActing.isOfficer || storeActing.isStaff"
dense dense
flat flat
round round

View file

@ -206,7 +206,6 @@ async function fetchCommandType() {
*/ */
function filterOption(val: string, update: Function) { function filterOption(val: string, update: Function) {
update(() => { update(() => {
group.value = val ? "" : group.value;
groupOp.value = groupDataOp.value.filter( groupOp.value = groupDataOp.value.filter(
(v: DataOption) => v.name.indexOf(val) > -1 (v: DataOption) => v.name.indexOf(val) > -1
); );
@ -487,12 +486,14 @@ watch(modal, async () => {
option-label="name" option-label="name"
:options="groupOp" :options="groupOp"
option-value="id" option-value="id"
class="inputgreen" :class="isStaff ? '' : 'inputgreen'"
dense dense
:readonly="isStaff" :readonly="isStaff"
emit-value emit-value
map-options map-options
use-input use-input
hide-selected
fill-input
outlined outlined
@update:model-value="updateValue" @update:model-value="updateValue"
@filter="(inputValue:any,doneFn:Function) => filterOption(inputValue, doneFn) " @filter="(inputValue:any,doneFn:Function) => filterOption(inputValue, doneFn) "