From c39723338a3b58cc4d1ca45cd12310c34f8bc1e5 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 17 May 2024 16:35:22 +0700 Subject: [PATCH] fix bug --- .../04_registryNew/components/TableView.vue | 72 +++++++++---------- 1 file changed, 35 insertions(+), 37 deletions(-) diff --git a/src/modules/04_registryNew/components/TableView.vue b/src/modules/04_registryNew/components/TableView.vue index bcdbb6924..4d29ff608 100644 --- a/src/modules/04_registryNew/components/TableView.vue +++ b/src/modules/04_registryNew/components/TableView.vue @@ -93,45 +93,45 @@ const columns = ref([ style: "font-size: 14px", format(val, row) { return row.posTypeShortName - ? row.posTypeShortName +" "+ row.posLevel + ? row.posTypeShortName + " " + row.posLevel : row.posLevel; }, sort: (a: string, b: string) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { - name: "posOc", + name: "org", align: "left", label: "สังกัด", sortable: true, - field: "posOc", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), - }, - { - name: "year", - align: "left", - label: "ปีงบประมาณ", - sortable: true, - field: "year", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), - }, - { - name: "salary", - align: "left", - label: "ค่าจ้าง", - sortable: true, - field: "salary", + field: "org", headerStyle: "font-size: 14px", style: "font-size: 14px", sort: (a: string, b: string) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, + // { + // name: "year", + // align: "left", + // label: "ปีงบประมาณ", + // sortable: true, + // field: "year", + // headerStyle: "font-size: 14px", + // style: "font-size: 14px", + // sort: (a: string, b: string) => + // a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + // }, + // { + // name: "salary", + // align: "left", + // label: "ค่าจ้าง", + // sortable: true, + // field: "salary", + // headerStyle: "font-size: 14px", + // style: "font-size: 14px", + // sort: (a: string, b: string) => + // a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + // }, ]); const visibleColumns = ref([ @@ -142,9 +142,9 @@ const visibleColumns = ref([ "posPath", "posType", "posLevel", - "posOc", - "year", - "salary", + "org", + // "year", + // "salary", ]); function updatePagePagination() { @@ -292,11 +292,9 @@ watch( {{ empType === "officer" ? col.label : "ระดับชั้นงาน" }} - {{ empType === "officer" ? col.label : "กลุ่มงาน" }} + {{ + empType === "officer" ? col.label : "กลุ่มงาน" + }} {{ col.label }} @@ -310,7 +308,7 @@ watch( (formFilter.page - 1) * formFilter.pageSize + props.rowIndex + 1 }} - - +