fix(disciplinary):sort
This commit is contained in:
parent
b1532ada56
commit
49dcf013ae
3 changed files with 207 additions and 291 deletions
|
|
@ -4,7 +4,7 @@ import type { QTableProps } from "quasar";
|
|||
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
||||
import type { Persons } from "@/modules/11_discipline/interface/request/Disciplinary";
|
||||
import type { Persons } from "@/modules/11_discipline/interface/request/disciplinary";
|
||||
import type {
|
||||
investigateDisDataRowType,
|
||||
DataOption,
|
||||
|
|
@ -81,7 +81,7 @@ export const useInvestigateDisStore = defineStore(
|
|||
"offenseDetails",
|
||||
"disciplinaryFaultLevel",
|
||||
"disciplinaryCaseFault",
|
||||
"disciplinaryDate",
|
||||
"disciplinaryDateStart",
|
||||
"dateReceived",
|
||||
"status",
|
||||
]);
|
||||
|
|
@ -113,8 +113,6 @@ export const useInvestigateDisStore = defineStore(
|
|||
field: "respondentType",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
sort: (a: string, b: string) =>
|
||||
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
|
||||
},
|
||||
{
|
||||
name: "offenseDetails",
|
||||
|
|
@ -124,8 +122,6 @@ export const useInvestigateDisStore = defineStore(
|
|||
field: "offenseDetails",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
sort: (a: string, b: string) =>
|
||||
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
|
||||
},
|
||||
{
|
||||
name: "disciplinaryFaultLevel",
|
||||
|
|
@ -135,8 +131,6 @@ export const useInvestigateDisStore = defineStore(
|
|||
field: "disciplinaryFaultLevel",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
sort: (a: string, b: string) =>
|
||||
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
|
||||
},
|
||||
{
|
||||
name: "disciplinaryCaseFault",
|
||||
|
|
@ -146,11 +140,9 @@ export const useInvestigateDisStore = defineStore(
|
|||
field: "disciplinaryCaseFault",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
sort: (a: string, b: string) =>
|
||||
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
|
||||
},
|
||||
{
|
||||
name: "disciplinaryDate",
|
||||
name: "disciplinaryDateStart",
|
||||
align: "left",
|
||||
label: "วันที่สอบสวน",
|
||||
sortable: true,
|
||||
|
|
@ -171,7 +163,7 @@ export const useInvestigateDisStore = defineStore(
|
|||
name: "status",
|
||||
align: "left",
|
||||
label: "สถานะ",
|
||||
sortable: true,
|
||||
sortable: false,
|
||||
field: "status",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue