From 6ec1bed7f6a55530abd8801556ef506e6ab1d1a4 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Tue, 21 Jan 2025 10:12:16 +0700 Subject: [PATCH] refactor: 07 => remove nameEN rule --- .../07_agencies-management/FormBasicInfoAgencies.vue | 5 ----- src/pages/07_agencies-management/MainPage.vue | 2 -- 2 files changed, 7 deletions(-) diff --git a/src/components/07_agencies-management/FormBasicInfoAgencies.vue b/src/components/07_agencies-management/FormBasicInfoAgencies.vue index 9f568873..5a71b7db 100644 --- a/src/components/07_agencies-management/FormBasicInfoAgencies.vue +++ b/src/components/07_agencies-management/FormBasicInfoAgencies.vue @@ -74,11 +74,6 @@ type Options = { label: string; value: string }; class="col" :label="'Agencies Name'" v-model="nameEn" - :rules="[ - (val: string) => !!val || $t('form.error.required'), - (val: string) => - /^[A-Za-z0-9.,' -]+$/.test(val) || $t('form.error.letterOnly'), - ]" /> diff --git a/src/pages/07_agencies-management/MainPage.vue b/src/pages/07_agencies-management/MainPage.vue index ef742cf8..081abd66 100644 --- a/src/pages/07_agencies-management/MainPage.vue +++ b/src/pages/07_agencies-management/MainPage.vue @@ -19,7 +19,6 @@ import FloatingActionButton from 'src/components/FloatingActionButton.vue'; import CreateButton from 'src/components/AddButton.vue'; import NoData from 'src/components/NoData.vue'; import AgenciesDialog from './AgenciesDialog.vue'; -import { computed } from 'vue'; import { watch } from 'vue'; const { t } = useI18n(); @@ -28,7 +27,6 @@ const institutionStore = useInstitution(); const { data, page, pageMax, pageSize } = storeToRefs(institutionStore); -const statusFilter = ref<'all' | 'statusACTIVE' | 'statusINACTIVE'>('all'); const fieldSelected = ref<('orderNumber' | 'name' | 'address')[]>([ 'orderNumber', 'name',