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 761a2305c..c3a48511d 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue @@ -1,19 +1,23 @@ - + diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/02_NameChangeHistory.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/02_NameChangeHistory.vue index 624cd5b60..760c2c835 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/02_NameChangeHistory.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/02_NameChangeHistory.vue @@ -210,11 +210,11 @@ const paginationLabel = (start: string, end: string, total: string) => { return start + "-" + end + " ใน " + total; }; -const openFile = async (val: string | null) => { +async function openFile(val: string | null) { if (val != null) window.open(val); -}; +} -const clickHistory = async (row: RequestItemsObject) => { +async function clickHistory(row: RequestItemsObject) { modalHistory.value = true; // showLoader(); // await http @@ -242,9 +242,9 @@ const clickHistory = async (row: RequestItemsObject) => { // .finally(() => { // hideLoader(); // }); -}; +} -const fetchData = async () => { +async function fetchData() { showLoader(); await http .get(config.API.profileChangeNameId(profileId.value)) @@ -271,7 +271,7 @@ const fetchData = async () => { .finally(() => { hideLoader(); }); -}; +} onMounted(async () => { // await fetchData(); @@ -279,11 +279,9 @@ onMounted(async () => { diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue index 1c6623747..de10f5f84 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue @@ -6,7 +6,7 @@ import { QForm, useQuasar } from "quasar"; const mixin = useCounterMixin(); const $q = useQuasar(); -const { dialogConfirm, success, messageError, showLoader, hideLoader } = mixin; +const { dialogConfirm } = mixin; const formRef = ref(null); @@ -16,7 +16,7 @@ const fatherPrefixRef = ref(null); const fatherFirstNameRef = ref(null); const fatherLastNameRef = ref(null); const fatherData = reactive({ - isHaveInfo: "0", + isHaveInfo: 0, isDead: false, citizenId: null, prefix: null, @@ -26,7 +26,7 @@ const fatherData = reactive({ job: null, }); const motherData = reactive({ - isHaveInfo: "0", + isHaveInfo: 0, isDead: false, citizenId: null, prefix: null, @@ -36,7 +36,7 @@ const motherData = reactive({ job: null, }); const spouseData = reactive({ - isHave: "0", + isHave: 0, isDead: false, citizenId: null, prefix: null, @@ -69,7 +69,6 @@ function closeHistoryDialog() { } function validateForm() { - console.log("test"); onSubmit(); } @@ -105,8 +104,8 @@ function deleteChildren(items: any) {