ปรับการแสดงผลเงินเดือน

This commit is contained in:
Warunee Tamkoo 2024-03-05 10:48:13 +07:00
parent b331a79277
commit 0fe5719755
2 changed files with 16 additions and 9 deletions

View file

@ -38,7 +38,7 @@ const columns = ref<QTableProps["columns"]>([
name: "no",
align: "left",
label: "ลำดับ",
sortable: true,
sortable: false,
field: "no",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
@ -74,7 +74,7 @@ const columns = ref<QTableProps["columns"]>([
name: "posType",
align: "left",
label: "ประเภทตำเเหน่ง",
sortable: false,
sortable: true,
field: "posType",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
@ -83,7 +83,7 @@ const columns = ref<QTableProps["columns"]>([
name: "posLevel",
align: "left",
label: "ระดับตำเเหน่ง",
sortable: false,
sortable: true,
field: "posLevel",
headerStyle: "font-size: 14px",
style: "font-size: 14px",

View file

@ -54,7 +54,7 @@ const columns = ref<QTableProps["columns"]>([
name: "salary",
align: "left",
label: "เงินเดือนฐาน",
sortable: true,
sortable: false,
field: "salary",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
@ -63,6 +63,7 @@ const columns = ref<QTableProps["columns"]>([
name: "salaryHalf",
align: "left",
label: "เลื่อน 0.5 ขั้น/(พิเศษ)",
sortable: false,
field: "salaryHalf",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
@ -71,7 +72,7 @@ const columns = ref<QTableProps["columns"]>([
name: "salaryFull",
align: "left",
label: "เลื่อน 1 ขั้น/(พิเศษ)",
sortable: true,
sortable: false,
field: "salaryFull",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
@ -80,7 +81,7 @@ const columns = ref<QTableProps["columns"]>([
name: "salaryFullHalf",
align: "left",
label: "เลื่อน 1.5 ขั้น/(พิเศษ)",
sortable: true,
sortable: false,
field: "salaryFullHalf",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
@ -89,7 +90,7 @@ const columns = ref<QTableProps["columns"]>([
name: "isNext",
align: "left",
label: "ทะลุขั้น",
sortable: true,
sortable: false,
field: "isNext",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
@ -116,7 +117,7 @@ const itemMenu = ref<ItemsMenu[]>([
/** queryString*/
const formQuery = reactive<FormQuerySalary>({
page: 1, //*
pageSize: 10, //*
pageSize: 100, //*
keyword: "", //keyword
});
const totalRow = ref<number>(1);
@ -144,6 +145,11 @@ async function fetchListSalalyRate() {
});
}
/** ตั้งค่าเริ่มต้น paging */
const pagination = ref({
page: 1,
rowsPerPage: 100,
});
/**
* function updatePagination
* @param newPagination อม Pagination ใหม
@ -253,8 +259,9 @@ watch([() => formQuery.page, () => formQuery.pageSize], async () => {
bordered
:paging="true"
dense
:rows-per-page-options="[10, 25, 50, 100]"
:rows-per-page-options="[10, 25, 50, 100, 500]"
@update:pagination="updatePagination"
v-model:pagination="pagination"
>
<template v-slot:header="props">
<q-tr :props="props">