refactor(02): br id
This commit is contained in:
parent
7c1e77a428
commit
a9535de0b8
1 changed files with 11 additions and 1 deletions
|
|
@ -31,6 +31,11 @@ async function selectHq(id: string) {
|
|||
if (userStore.userOption.brOpts.length === 1) {
|
||||
brId.value = userStore.userOption.brOpts[0].value;
|
||||
}
|
||||
brFilter = selectFilterOptionRefMod(
|
||||
ref(userStore.userOption.brOpts),
|
||||
brOptions,
|
||||
'label',
|
||||
);
|
||||
}
|
||||
|
||||
const hqOptions = ref<Record<string, unknown>[]>([]);
|
||||
|
|
@ -41,7 +46,7 @@ const hqFilter = selectFilterOptionRefMod(
|
|||
);
|
||||
|
||||
const brOptions = ref<Record<string, unknown>[]>([]);
|
||||
const brFilter = selectFilterOptionRefMod(
|
||||
let brFilter = selectFilterOptionRefMod(
|
||||
ref(userStore.userOption.brOpts),
|
||||
brOptions,
|
||||
'label',
|
||||
|
|
@ -114,6 +119,11 @@ onMounted(async () => {
|
|||
]"
|
||||
@update:model-value="(val: string) => selectHq(val)"
|
||||
@filter="hqFilter"
|
||||
@clear="
|
||||
() => {
|
||||
(hqId = ''), (brId = '');
|
||||
}
|
||||
"
|
||||
>
|
||||
<template v-slot:no-option>
|
||||
<q-item>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue