From 2503a9992cbfa37a7b1e70ceb4be546735bb2c6e Mon Sep 17 00:00:00 2001 From: puriphatt Date: Tue, 12 Mar 2024 18:14:35 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A=E0=B8=B5?= =?UTF-8?q?=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1?= =?UTF-8?q?=E0=B8=95=E0=B8=B4:=20=E0=B9=81=E0=B8=81=E0=B9=89=20path=20impo?= =?UTF-8?q?rt=20(+interface)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/PersonalInformation/01_Profile.vue | 43 ++++++------- .../02_NameChangeHistory.vue | 13 ++-- .../detail/PersonalInformation/03_Address.vue | 4 +- .../04_registryNew/interface/index/Main.ts | 63 ++++++++++++++++++- .../interface/request/Address.ts | 55 ++++++++++++++++ .../interface/request/Information.ts | 59 +++++++++++++++++ .../interface/response/Address.ts | 34 ++++++++++ 7 files changed, 234 insertions(+), 37 deletions(-) create mode 100644 src/modules/04_registryNew/interface/request/Address.ts create mode 100644 src/modules/04_registryNew/interface/request/Information.ts create mode 100644 src/modules/04_registryNew/interface/response/Address.ts diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue index c3a48511d..377681861 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue @@ -6,22 +6,16 @@ import http from "@/plugins/http"; import config from "@/app.config"; import { useCounterMixin } from "@/stores/mixin"; -import { useProfileDataStore } from "@/modules/04_registry/store"; -import type { InformationOps } from "@/modules/04_registry/interface/index/Main"; -import DialogHeader from "@/modules/04_registry/components/DialogHeader.vue"; -import type { - RequestItemsHistoryObject, - Columns, -} from "@/modules/04_registry/interface/request/Information"; -import type { - Information, - DataOption, -} from "@/modules/04_registry/components/profileType"; import HistoryTable from "@/components/TableHistory.vue"; +import DialogHeader from "@/components/DialogHeader.vue"; +import type { + InformationOps, + DataOption, +} from "@/modules/04_registryNew/interface/index/Main"; +import type { RequestItemsHistoryObject } from "@/modules/04_registryNew/interface/request/Information"; const $q = useQuasar(); const mixin = useCounterMixin(); -const profileStore = useProfileDataStore(); const { showLoader, hideLoader, date2Thai, messageError } = mixin; const modal = ref(false); @@ -366,7 +360,6 @@ async function fetchPerson() { .catch((e: any) => {}) .finally(() => { // hideLoader(); - profileStore.isLoad++; }); } @@ -478,7 +471,6 @@ function onSubmit() { myForm.value.validate().then(async (result: boolean) => { if (result) { // await saveData(); - console.log("Hello"); modal.value = false; } }); @@ -490,8 +482,6 @@ onMounted(async () => {