diff --git a/src/components/02_personnel-management/FormInformation.vue b/src/components/02_personnel-management/FormInformation.vue index a3d566d6..12b8ff88 100644 --- a/src/components/02_personnel-management/FormInformation.vue +++ b/src/components/02_personnel-management/FormInformation.vue @@ -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[]>([]); @@ -41,7 +46,7 @@ const hqFilter = selectFilterOptionRefMod( ); const brOptions = ref[]>([]); -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 = ''); + } + " >