fix รักษาการในตำแหน่ง
This commit is contained in:
parent
f43df4b3fd
commit
1d9faaf572
2 changed files with 4 additions and 3 deletions
|
|
@ -317,7 +317,7 @@ onMounted(() => {
|
|||
<q-space />
|
||||
<q-btn
|
||||
class="q-px-sm"
|
||||
v-if="storeActing.isOfficer === true"
|
||||
v-if="storeActing.isOfficer || storeActing.isStaff"
|
||||
dense
|
||||
flat
|
||||
round
|
||||
|
|
|
|||
|
|
@ -206,7 +206,6 @@ async function fetchCommandType() {
|
|||
*/
|
||||
function filterOption(val: string, update: Function) {
|
||||
update(() => {
|
||||
group.value = val ? "" : group.value;
|
||||
groupOp.value = groupDataOp.value.filter(
|
||||
(v: DataOption) => v.name.indexOf(val) > -1
|
||||
);
|
||||
|
|
@ -487,12 +486,14 @@ watch(modal, async () => {
|
|||
option-label="name"
|
||||
:options="groupOp"
|
||||
option-value="id"
|
||||
class="inputgreen"
|
||||
:class="isStaff ? '' : 'inputgreen'"
|
||||
dense
|
||||
:readonly="isStaff"
|
||||
emit-value
|
||||
map-options
|
||||
use-input
|
||||
hide-selected
|
||||
fill-input
|
||||
outlined
|
||||
@update:model-value="updateValue"
|
||||
@filter="(inputValue:any,doneFn:Function) => filterOption(inputValue, doneFn) "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue