From 25953b1539d0e5e691cac4124abcc3e1a52f6811 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 12 Feb 2024 09:31:02 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1?= =?UTF-8?q?=E0=B8=95=E0=B8=B4=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A8=E0=B8=B6?= =?UTF-8?q?=E0=B8=81=E0=B8=A9=E0=B8=B2=20=3D>=20=E0=B8=A7=E0=B8=B1?= =?UTF-8?q?=E0=B8=99=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B8=AA=E0=B8=B3=E0=B9=80?= =?UTF-8?q?=E0=B8=A3=E0=B9=87=E0=B8=88=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A8?= =?UTF-8?q?=E0=B8=B6=E0=B8=81=E0=B8=A9=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/04_registry/components/Education.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/04_registry/components/Education.vue b/src/modules/04_registry/components/Education.vue index 8c58ef6fd..fef013fe2 100644 --- a/src/modules/04_registry/components/Education.vue +++ b/src/modules/04_registry/components/Education.vue @@ -38,7 +38,7 @@ }}
- {{ date2Thai(col.value) }} + {{ col.value ? date2Thai(col.value) : "-" }}
{{ col.value ? "ใช่" : "ไม่ใช่" }} @@ -1138,7 +1138,7 @@ const fetchData = async () => { other: e.other ? e.other : "-", fundName: e.fundName, isDate: e.isDate == null ? null : e.isDate.toString(), - finishDate: e.finishDate ? new Date(e.finishDate) : "-", + finishDate: e.finishDate ? new Date(e.finishDate) : null, startDate: new Date(e.startDate).getFullYear(), endDate: new Date(e.endDate).getFullYear(), startDate2: new Date(e.startDate), @@ -1194,7 +1194,7 @@ const getData = () => { durationYear.value = row.durationYear; other.value = row.other; fundName.value = row.fundName; - finishDate.value = row.finishDate; + finishDate.value = row.finishDate ? row.finishDate : null; isDate.value = row.isDate; startDate.value = row.startDate; endDate.value = row.endDate; @@ -1425,7 +1425,7 @@ const selectData = async (_props: DataProps) => { durationYear.value = _props.row.durationYear; other.value = _props.row.other; fundName.value = _props.row.fundName; - finishDate.value = _props.row.finishDate; + finishDate.value = _props.row.finishDate ? _props.row.finishDate : null; isDate.value = _props.row.isDate; startDate.value = _props.row.startDate; endDate.value = _props.row.endDate;