From c4305730b01a921af0b0d4a4c9b3c37202db7e7b Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Mon, 4 Nov 2024 15:37:23 +0700 Subject: [PATCH] refactor: add i18n --- .../02_personnel-management/FormByType.vue | 21 +++++-------------- src/i18n/eng.ts | 1 + src/i18n/tha.ts | 1 + 3 files changed, 7 insertions(+), 16 deletions(-) diff --git a/src/components/02_personnel-management/FormByType.vue b/src/components/02_personnel-management/FormByType.vue index 0f0c3fd6..f3be10bc 100644 --- a/src/components/02_personnel-management/FormByType.vue +++ b/src/components/02_personnel-management/FormByType.vue @@ -182,14 +182,15 @@ watch( v-if="userType === 'MESSENGER'" outlined clearable - use-input fill-input emit-value map-options - hide-selected hide-bottom-space class="col-12" input-debounce="0" + multiple + use-chips + stack-label option-label="label" option-value="value" id="input-responsible-area" @@ -199,20 +200,8 @@ watch( :label="$t('personnel.form.responsibleArea')" :options="responsibleAreaOptions" @filter="responsibleAreaFilter" - :model-value="readonly ? responsibleArea || '-' : responsibleArea" - @update:model-value=" - (v) => (typeof v === 'string' ? (responsibleArea = v) : '') - " - @clear="responsibleArea = ''" - > - - + v-model="responsibleArea" + >