diff --git a/src/modules/11_discipline/components/3_InvestigateDisciplinary/MainPage.vue b/src/modules/11_discipline/components/3_InvestigateDisciplinary/MainPage.vue
index fa002e924..fe7c5077c 100644
--- a/src/modules/11_discipline/components/3_InvestigateDisciplinary/MainPage.vue
+++ b/src/modules/11_discipline/components/3_InvestigateDisciplinary/MainPage.vue
@@ -1,12 +1,9 @@
@@ -209,11 +78,11 @@ const deleteData = async (id: string) => {
{
>
-
- {{ props.rowIndex + 1 }}
-
-
- {{ props.row.subject }}
-
-
- {{ props.row.interrogated }}
-
-
- {{ props.row.fault }}
-
-
- {{ props.row.penaltyLevel }}
-
-
- {{ props.row.caseFault }}
-
-
- {{ props.row.dateInvestigate }}
-
-
- {{ props.row.status }}
+
+
+ {{ props.rowIndex + 1 }}
+
+
+ {{ col.value }}
+
([
+ "no",
+ "subject",
+ "interrogated",
+ "fault",
+ "penaltyLevel",
+ "caseFault",
+ "dateInvestigate",
+ "status",
+ ]);
+
+ const columns = ref([
+ {
+ name: "no",
+ align: "center",
+ label: "ลำดับ",
+ sortable: false,
+ field: "no",
+ headerStyle: "font-size: 14px",
+ style: "font-size: 14px",
+ },
+ {
+ name: "subject",
+ align: "left",
+ label: "เรื่อง",
+ sortable: true,
+ field: "subject",
+ headerStyle: "font-size: 14px",
+ style: "font-size: 14px",
+ },
+ {
+ name: "interrogated",
+ align: "left",
+ label: "ผู้ถูกสืบสวน",
+ sortable: true,
+ field: "interrogated",
+ headerStyle: "font-size: 14px",
+ style: "font-size: 14px",
+ sort: (a: string, b: string) =>
+ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ },
+ {
+ name: "fault",
+ align: "left",
+ label: "ลักษณะความผิด",
+ sortable: true,
+ field: "fault",
+ headerStyle: "font-size: 14px",
+ style: "font-size: 14px",
+ sort: (a: string, b: string) =>
+ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ },
+ {
+ name: "penaltyLevel",
+ align: "left",
+ label: "ระดับโทษความผิด",
+ sortable: true,
+ field: "penaltyLevel",
+ headerStyle: "font-size: 14px",
+ style: "font-size: 14px",
+ sort: (a: string, b: string) =>
+ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ },
+ {
+ name: "caseFault",
+ align: "left",
+ label: "กรณีความผิด",
+ sortable: true,
+ field: "caseFault",
+ headerStyle: "font-size: 14px",
+ style: "font-size: 14px",
+ sort: (a: string, b: string) =>
+ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ },
+ {
+ name: "dateInvestigate",
+ align: "left",
+ label: "วันที่สอบสวน",
+ sortable: true,
+ field: "dateInvestigate",
+ headerStyle: "font-size: 14px",
+ style: "font-size: 14px",
+ },
+ {
+ name: "status",
+ align: "left",
+ label: "สถานะ",
+ sortable: true,
+ field: "status",
+ headerStyle: "font-size: 14px",
+ style: "font-size: 14px",
+ },
+ ]);
return {
fecthList,
rows,
@@ -104,6 +199,8 @@ export const useInvestigateDisStore = defineStore(
optionsTypefault,
optionsfaultLevel,
fecthDirector,
+ visibleColumns,
+ columns,
};
}
);