From 2f60d1392ec51143cb958d57d4401de87f28b3b2 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Thu, 25 Apr 2024 10:05:38 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B9=81=E0=B8=81=E0=B9=89=20i18n=20=20?= =?UTF-8?q?DrawerInfo=20=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B8=A1=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/02_personnel-management/InfoForm.vue | 2 ++ src/pages/01_branch-management/MainPage.vue | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/src/components/02_personnel-management/InfoForm.vue b/src/components/02_personnel-management/InfoForm.vue index 29a4fd19..6df3a036 100644 --- a/src/components/02_personnel-management/InfoForm.vue +++ b/src/components/02_personnel-management/InfoForm.vue @@ -4,6 +4,7 @@ import FormAddress from './FormAddress.vue'; defineProps<{ readonly?: boolean; + titleFormAddress?: string; addressTitle?: string; addressTitleEN?: string; noAddress?: boolean; @@ -51,6 +52,7 @@ const zipCode = defineModel('zipCode', { default: '' }); v-model:districtId="districtId" v-model:subDistrictId="subDistrictId" v-model:zipCode="zipCode" + :title="titleFormAddress" :addressTitle="addressTitle || ''" :addressTitleEN="addressTitleEN || ''" v-if="!$slots.address" diff --git a/src/pages/01_branch-management/MainPage.vue b/src/pages/01_branch-management/MainPage.vue index dd7ac111..0a89c0a6 100644 --- a/src/pages/01_branch-management/MainPage.vue +++ b/src/pages/01_branch-management/MainPage.vue @@ -825,6 +825,8 @@ watch(locale, () => { v-model:sub-district-id="formData.subDistrictId" :title="changeTitle(formType, formTypeBranch) + ' ' + currentEdit.code" :titleFormAddress="$t('formDialogTitleAddress')" + :address-title="$t('formDialogAddress')" + :address-title-EN="$t('formDialogAddressEN')" :addressSeparator="true" :submit=" () => { @@ -922,6 +924,9 @@ watch(locale, () => { v-model:province-id="formData.provinceId" v-model:district-id="formData.districtId" v-model:sub-district-id="formData.subDistrictId" + :title-form-address="$t('formDialogTitleAddress')" + :address-title="$t('formDialogAddress')" + :address-title-e-n="$t('formDialogAddressEN')" :readonly="formType === 'view'" >