From c7db0943b9aede0d0b877d742f25145aea8390bf Mon Sep 17 00:00:00 2001 From: "STW_TTTY\\stwtt" Date: Tue, 2 Jul 2024 10:01:35 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=9B=E0=B8=B5?= =?UTF-8?q?=20=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B8=96=E0=B8=B9=E0=B8=81?= =?UTF-8?q?=E0=B9=80=E0=B8=81=E0=B9=87=E0=B8=9A=E0=B8=A1=E0=B8=B2=E0=B9=83?= =?UTF-8?q?=E0=B8=8A=E0=B9=89=E0=B8=87=E0=B8=B2=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/detail/PersonalInformation/05_Education.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue index 4f1ed41d5..9ce44132b 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue @@ -567,8 +567,8 @@ function editForm(row: any) { educationData.durationYear = row.durationYear; educationData.note = row.note; educationData.startYear = - row.isDate == "true" ? row.startDate.slice(0, 4) : ""; - educationData.endYear = row.isDate == "true" ? row.endDate.slice(0, 4) : ""; + row.isDate == "true" ? row.startDate.slice(0, 4) : new Date(row.startDate).getFullYear(); + educationData.endYear = row.isDate == "true" ? row.endDate.slice(0, 4) : new Date(row.endDate).getFullYear();; dialog.value = true; }