From fb5017b0e21dedc624b4acf5f81fe6e0d091ddd0 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 14 Feb 2024 13:27:15 +0700 Subject: [PATCH 1/2] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A?= =?UTF-8?q?=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=B4=20=3D>=20=E0=B8=95=E0=B8=B3?= =?UTF-8?q?=E0=B9=81=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=87/=E0=B9=80?= =?UTF-8?q?=E0=B8=87=E0=B8=B4=E0=B8=99=E0=B9=80=E0=B8=94=E0=B8=B7=E0=B8=AD?= =?UTF-8?q?=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/04_registry/components/Salary.vue | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/modules/04_registry/components/Salary.vue b/src/modules/04_registry/components/Salary.vue index c64e1d23a..20d6bc9c0 100644 --- a/src/modules/04_registry/components/Salary.vue +++ b/src/modules/04_registry/components/Salary.vue @@ -82,7 +82,7 @@ -
- {{ col.value }} + {{ col.value ? col.value : "-" }}
@@ -829,8 +829,8 @@ profileData.salary.columns.length == 0 "posNo", "positionLine", "positionPathSide", - "positionType", - "positionLevel", + "postionTypeName", + "positionLevelName", "positionExecutive", // "positionExecutiveSide", // "salaryClass", @@ -939,22 +939,22 @@ const columns = ref([ // a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), // }, { - name: "positionType", + name: "postionTypeName", align: "left", label: "ตำแหน่งประเภท", sortable: true, - field: "positionType", + field: "postionTypeName", headerStyle: "font-size: 14px", style: "font-size: 14px", sort: (a: string, b: string) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { - name: "positionLevel", + name: "positionLevelName", align: "left", label: "ระดับ", sortable: true, - field: "positionLevel", + field: "positionLevelName", headerStyle: "font-size: 14px", style: "font-size: 14px", sort: (a: string, b: string) => @@ -1404,6 +1404,8 @@ const fetchData = async () => { .get(config.API.profileSalaryId(profileId.value)) .then((res) => { let data = res.data.result; + console.log(data); + rows.value = []; data.map((e: any) => { rows.value.push({ @@ -1706,7 +1708,7 @@ const selectData = async (props: DataProps) => { rawItem.value = props.row; rowIndex.value = props.rowIndex; id.value = props.row.id; - inputDate.value = formDataSalary.date; + inputDate.value = formDataSalary.date.toString(); // console.log(props.row); // date.value = props.row.date; From 0a6feb0c9c504da8852c82eb4d364a8a0b6e6148 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 14 Feb 2024 14:07:55 +0700 Subject: [PATCH 2/2] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A?= =?UTF-8?q?=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=B4=20=E0=B8=9B=E0=B8=A3=E0=B8=B1?= =?UTF-8?q?=E0=B8=9A=20table?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../04_registry/components/Assessment.vue | 4 +- src/modules/04_registry/components/Coin.vue | 41 +++++++++-------- .../04_registry/components/Discipline.vue | 37 ++++++++------- .../04_registry/components/Education.vue | 33 ++++++++------ .../04_registry/components/Insignia.vue | 45 +++++++++---------- src/modules/04_registry/components/Leave.vue | 18 ++++---- src/modules/04_registry/components/Other.vue | 8 ++-- src/modules/04_registry/components/Record.vue | 23 +++++----- src/modules/04_registry/components/Talent.vue | 6 +-- src/modules/04_registry/components/Train.vue | 12 ++--- src/modules/04_registry/components/Work.vue | 26 ++++++----- .../04_registry/interface/request/Coin.ts | 5 ++- .../04_registry/interface/response/Coin.ts | 1 + 13 files changed, 143 insertions(+), 116 deletions(-) diff --git a/src/modules/04_registry/components/Assessment.vue b/src/modules/04_registry/components/Assessment.vue index 01b003642..bc3413908 100644 --- a/src/modules/04_registry/components/Assessment.vue +++ b/src/modules/04_registry/components/Assessment.vue @@ -24,14 +24,14 @@ class="cursor-pointer" >
- {{ date2Thai(col.value) }} + {{ col.value ? date2Thai(col.value) : "-" }}
{{ textPoint(props.row.pointSum) }} {{ textRangePoint(props.row.pointSum) }}
- {{ col.value }} + {{ col.value ? col.value : "-" }}
diff --git a/src/modules/04_registry/components/Coin.vue b/src/modules/04_registry/components/Coin.vue index 68ecc631d..5d1ebdb1e 100644 --- a/src/modules/04_registry/components/Coin.vue +++ b/src/modules/04_registry/components/Coin.vue @@ -1,3 +1,4 @@ +a