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-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
|
||||||
|
|
|
||||||
|
|
@ -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) "
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue