From c4596b89980c16e487f159d3bd27722ba9badda2 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 15 Jan 2025 16:20:26 +0700 Subject: [PATCH] =?UTF-8?q?fix=20columns=20=E0=B8=88=E0=B8=B1=E0=B8=94?= =?UTF-8?q?=E0=B8=A5=E0=B8=B3=E0=B8=94=E0=B8=B1=E0=B8=9A=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B9=81=E0=B8=AA=E0=B8=94=E0=B8=87=E0=B8=9C=E0=B8=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DialogSortEducation.vue | 163 +++++++++--------- 1 file changed, 82 insertions(+), 81 deletions(-) diff --git a/src/modules/04_registryPerson/components/detail/PersonalInformation/DialogSortEducation.vue b/src/modules/04_registryPerson/components/detail/PersonalInformation/DialogSortEducation.vue index 0b9f5578a..c1960f4c4 100644 --- a/src/modules/04_registryPerson/components/detail/PersonalInformation/DialogSortEducation.vue +++ b/src/modules/04_registryPerson/components/detail/PersonalInformation/DialogSortEducation.vue @@ -108,18 +108,7 @@ const columns = ref([ sort: (a: string, b: string) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, - { - name: "isEducation", - align: "left", - label: "เป็นวุฒิการศึกษาในตำแหน่ง", - sortable: true, - field: "isEducation", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - format: (v) => (v === true ? "ใช่" : "ไม่ใช่"), - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), - }, + { name: "degree", align: "left", @@ -143,82 +132,94 @@ const columns = ref([ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { - name: "fundName", + name: "isEducation", align: "left", - label: "ทุน", + label: "เป็นวุฒิการศึกษาในตำแหน่ง", sortable: true, - field: "fundName", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), - }, - { - name: "gpa", - align: "left", - label: "เกรดเฉลี่ย", - sortable: true, - field: "gpa", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), - }, - { - name: "country", - align: "left", - label: "ประเทศ", - sortable: true, - field: "country", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), - }, - { - name: "other", - align: "left", - label: "ข้อมูลการติดต่อ", - sortable: true, - field: "other", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), - }, - { - name: "duration", - align: "left", - label: "ระยะเวลา", - sortable: true, - field: "duration", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), - }, - { - name: "durationYear", - align: "left", - label: "ระยะเวลาหลักสูตร (ปี)", - sortable: true, - field: "durationYear", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), - }, - { - name: "note", - align: "left", - label: "หมายเหตุ", - sortable: true, - field: "note", + field: "isEducation", headerStyle: "font-size: 14px", style: "font-size: 14px", + format: (v) => (v === true ? "ใช่" : "ไม่ใช่"), sort: (a: string, b: string) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, + // { + // name: "fundName", + // align: "left", + // label: "ทุน", + // sortable: true, + // field: "fundName", + // headerStyle: "font-size: 14px", + // style: "font-size: 14px", + // sort: (a: string, b: string) => + // a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + // }, + // { + // name: "gpa", + // align: "left", + // label: "เกรดเฉลี่ย", + // sortable: true, + // field: "gpa", + // headerStyle: "font-size: 14px", + // style: "font-size: 14px", + // sort: (a: string, b: string) => + // a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + // }, + // { + // name: "country", + // align: "left", + // label: "ประเทศ", + // sortable: true, + // field: "country", + // headerStyle: "font-size: 14px", + // style: "font-size: 14px", + // sort: (a: string, b: string) => + // a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + // }, + // { + // name: "other", + // align: "left", + // label: "ข้อมูลการติดต่อ", + // sortable: true, + // field: "other", + // headerStyle: "font-size: 14px", + // style: "font-size: 14px", + // sort: (a: string, b: string) => + // a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + // }, + // { + // name: "duration", + // align: "left", + // label: "ระยะเวลา", + // sortable: true, + // field: "duration", + // headerStyle: "font-size: 14px", + // style: "font-size: 14px", + // sort: (a: string, b: string) => + // a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + // }, + // { + // name: "durationYear", + // align: "left", + // label: "ระยะเวลาหลักสูตร (ปี)", + // sortable: true, + // field: "durationYear", + // headerStyle: "font-size: 14px", + // style: "font-size: 14px", + // sort: (a: string, b: string) => + // a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + // }, + // { + // name: "note", + // align: "left", + // label: "หมายเหตุ", + // sortable: true, + // field: "note", + // headerStyle: "font-size: 14px", + // style: "font-size: 14px", + // sort: (a: string, b: string) => + // a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + // }, ]); /** * fiunction จัดลำดับ