fix(leave):dislplay_columns_leaveTotal
This commit is contained in:
parent
894462e2b7
commit
bd80a0fb4f
3 changed files with 20 additions and 8 deletions
|
|
@ -42,14 +42,14 @@ const columnsLeave = ref<QTableProps["columns"]>([
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
style: "font-size: 14px",
|
style: "font-size: 14px",
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
name: "citizenId",
|
// name: "citizenId",
|
||||||
align: "left",
|
// align: "left",
|
||||||
label: "เลขประจำตัวประชาชน",
|
// label: "เลขประจำตัวประชาชน",
|
||||||
field: "citizenId",
|
// field: "citizenId",
|
||||||
headerStyle: "font-size: 14px",
|
// headerStyle: "font-size: 14px",
|
||||||
style: "font-size: 14px",
|
// style: "font-size: 14px",
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
name: "fullName",
|
name: "fullName",
|
||||||
align: "left",
|
align: "left",
|
||||||
|
|
@ -113,6 +113,15 @@ const columnsLeave = ref<QTableProps["columns"]>([
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
style: "font-size: 14px",
|
style: "font-size: 14px",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "leaveTotal",
|
||||||
|
align: "left",
|
||||||
|
label: "จำนวนวันที่ลา",
|
||||||
|
sortable: true,
|
||||||
|
field: "leaveTotal",
|
||||||
|
headerStyle: "font-size: 14px",
|
||||||
|
style: "font-size: 14px",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "status",
|
name: "status",
|
||||||
align: "left",
|
align: "left",
|
||||||
|
|
@ -134,6 +143,7 @@ const visibleColumnsLeave = ref<string[]>([
|
||||||
"org",
|
"org",
|
||||||
"position",
|
"position",
|
||||||
"level",
|
"level",
|
||||||
|
"leaveTotal",
|
||||||
"status",
|
"status",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ interface ListLeave {
|
||||||
position?: string;
|
position?: string;
|
||||||
level?: string;
|
level?: string;
|
||||||
hajjDayStatus?: boolean;
|
hajjDayStatus?: boolean;
|
||||||
|
leaveTotal: number; //จำนวนวันที่ลา
|
||||||
}
|
}
|
||||||
interface FormData {
|
interface FormData {
|
||||||
id: string;
|
id: string;
|
||||||
|
|
|
||||||
|
|
@ -88,6 +88,7 @@ export const useLeavelistDataStore = defineStore("leave", () => {
|
||||||
: "-",
|
: "-",
|
||||||
status: e.status && convertSatatus(e.status),
|
status: e.status && convertSatatus(e.status),
|
||||||
statusText: e.status,
|
statusText: e.status,
|
||||||
|
leaveTotal: e.leaveTotal,
|
||||||
}));
|
}));
|
||||||
mainData.value = datalist;
|
mainData.value = datalist;
|
||||||
rows.value = mainData.value;
|
rows.value = mainData.value;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue