From f07f3acd5122a14cfd2398154eac20b499cf8c73 Mon Sep 17 00:00:00 2001 From: oat_dev Date: Fri, 29 Mar 2024 17:08:52 +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:=20clearable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/Achievement/01_ProfessionalLicense.vue | 8 ++++++-- .../components/detail/Achievement/02_Train.vue | 10 ++++++---- .../detail/PersonalInformation/04_Family.vue | 4 ---- .../detail/PersonalInformation/05_Education.vue | 2 -- .../04_registryNew/interface/request/ProfesLicense.ts | 2 +- .../04_registryNew/interface/request/Training.ts | 4 ++-- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue b/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue index 2195d1b9d..c7d10d1c8 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue @@ -9,6 +9,7 @@ import type { RequestItemsObject } from "@/modules/04_registryNew/interface/requ import type { ResponseObject } from "@/modules/04_registryNew/interface/response/ProfesLicense"; import http from "@/plugins/http"; import config from "@/app.config"; +import { log } from "console"; const mixin = useCounterMixin(); const $q = useQuasar(); const { @@ -179,7 +180,7 @@ const profesLicenseData = reactive({ issuer: "", certificateNo: "", issueDate: new Date(), - expireDate: new Date(), + expireDate: null, profileId: id.value, }); @@ -244,7 +245,7 @@ async function fetchData(id: string) { } function clearForm() { - profesLicenseData.expireDate = new Date(); + profesLicenseData.expireDate = null; profesLicenseData.issueDate = new Date(); profesLicenseData.certificateNo = ""; profesLicenseData.certificateType = ""; @@ -642,6 +643,8 @@ onMounted(async () => { dense outlined bg-color="white" + clearable + @clear="() => (profesLicenseData.expireDate = null)" hide-bottom-space :model-value=" profesLicenseData.expireDate @@ -649,6 +652,7 @@ onMounted(async () => { : '' " :label="`${'วันที่หมดอายุ'}`" + @update:modelValue="profesLicenseData.expireDate" >