refactor: use select office
This commit is contained in:
parent
fda0d581ae
commit
e4418a45df
1 changed files with 6 additions and 22 deletions
|
|
@ -9,6 +9,8 @@ import { Icon } from '@iconify/vue';
|
||||||
import { QSelect } from 'quasar';
|
import { QSelect } from 'quasar';
|
||||||
import DatePicker from '../shared/DatePicker.vue';
|
import DatePicker from '../shared/DatePicker.vue';
|
||||||
|
|
||||||
|
import SelectOffice from 'components/shared/select-muliple/SelectOffice.vue';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
const optionStore = useOptionStore();
|
const optionStore = useOptionStore();
|
||||||
|
|
@ -18,7 +20,7 @@ const userType = defineModel<string>('userType');
|
||||||
const registrationNo = defineModel<string | null>('registrationNo');
|
const registrationNo = defineModel<string | null>('registrationNo');
|
||||||
const startDate = defineModel<Date | null | string>('startDate');
|
const startDate = defineModel<Date | null | string>('startDate');
|
||||||
const retireDate = defineModel<Date | null | string>('retireDate');
|
const retireDate = defineModel<Date | null | string>('retireDate');
|
||||||
const responsibleArea = defineModel<string | null | undefined>(
|
const responsibleArea = defineModel<string[] | null | undefined>(
|
||||||
'responsibleArea',
|
'responsibleArea',
|
||||||
);
|
);
|
||||||
const discountCondition = defineModel<string | null | undefined>(
|
const discountCondition = defineModel<string | null | undefined>(
|
||||||
|
|
@ -178,30 +180,12 @@ watch(
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<q-select
|
<SelectOffice
|
||||||
|
v-model:value="responsibleArea"
|
||||||
v-if="userType === 'MESSENGER'"
|
v-if="userType === 'MESSENGER'"
|
||||||
outlined
|
|
||||||
clearable
|
|
||||||
fill-input
|
|
||||||
emit-value
|
|
||||||
map-options
|
|
||||||
hide-bottom-space
|
|
||||||
class="col-12"
|
|
||||||
input-debounce="0"
|
|
||||||
multiple
|
|
||||||
use-chips
|
|
||||||
stack-label
|
|
||||||
option-label="label"
|
|
||||||
option-value="value"
|
|
||||||
id="input-responsible-area"
|
|
||||||
:dense="dense"
|
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:hide-dropdown-icon="readonly"
|
|
||||||
:label="$t('personnel.form.responsibleArea')"
|
:label="$t('personnel.form.responsibleArea')"
|
||||||
:options="responsibleAreaOptions"
|
/>
|
||||||
@filter="responsibleAreaFilter"
|
|
||||||
v-model="responsibleArea"
|
|
||||||
></q-select>
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="userType === 'DELEGATE'"
|
v-if="userType === 'DELEGATE'"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue