ปรับ วินัย
This commit is contained in:
parent
89bedf5251
commit
2adbbc9b24
22 changed files with 416 additions and 411 deletions
|
|
@ -9,7 +9,7 @@ import type {
|
|||
DataList,
|
||||
DataListRow,
|
||||
ocListType,
|
||||
} from "@/modules/11_discipline/interface/response/Complaint";
|
||||
} from "@/modules/11_discipline/interface/response/complaint";
|
||||
|
||||
import type { QTableProps } from "quasar";
|
||||
|
||||
|
|
@ -25,7 +25,7 @@ export const useComplainstDataStore = defineStore(
|
|||
const visibleColumns = ref<string[]>([]);
|
||||
const columns = ref<QTableProps["columns"]>([]);
|
||||
|
||||
function fetchComplainst(data: DataList[]) {
|
||||
async function fetchComplainst(data: DataList[]) {
|
||||
let dataList: DataListRow[] = data.map((e: DataList) => ({
|
||||
id: e.id,
|
||||
personId: e.personId,
|
||||
|
|
|
|||
|
|
@ -97,6 +97,9 @@ export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
|
|||
field: "salary",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format(val, row) {
|
||||
return val.toLocaleString();
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "organization",
|
||||
|
|
@ -185,6 +188,13 @@ export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
|
|||
field: "positionLevel",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format(val, row) {
|
||||
return row.positionLevel
|
||||
? row.positionLevel
|
||||
: row.posLevelName
|
||||
? row.posLevelName
|
||||
: "-";
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "salary",
|
||||
|
|
@ -192,6 +202,9 @@ export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
|
|||
label: "เงินเดือน",
|
||||
sortable: true,
|
||||
field: "salary",
|
||||
format(val, row) {
|
||||
return val.toLocaleString();
|
||||
},
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue