fix:sortBy ,descending
- ทำ sortBy เฉพาะ API ที่มีการทำ paging
This commit is contained in:
parent
4308f8887f
commit
1f18b56fbf
13 changed files with 98 additions and 67 deletions
|
|
@ -200,7 +200,7 @@ export const useLeaveStore = defineStore("Leave", () => {
|
|||
"leaveTypeName",
|
||||
"dateSendLeave",
|
||||
"status",
|
||||
"dateLeave",
|
||||
"leaveStartDate",
|
||||
]);
|
||||
|
||||
const columns = ref<QTableProps["columns"]>([
|
||||
|
|
@ -208,7 +208,7 @@ export const useLeaveStore = defineStore("Leave", () => {
|
|||
name: "no",
|
||||
align: "left",
|
||||
label: "ลำดับ",
|
||||
sortable: true,
|
||||
sortable: false,
|
||||
field: "no",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px; width:5%;",
|
||||
|
|
@ -223,7 +223,7 @@ export const useLeaveStore = defineStore("Leave", () => {
|
|||
style: "font-size: 14px; width:15%;",
|
||||
},
|
||||
{
|
||||
name: "dateLeave",
|
||||
name: "leaveStartDate",
|
||||
align: "left",
|
||||
label: "วันที่ลา",
|
||||
sortable: true,
|
||||
|
|
@ -259,7 +259,6 @@ export const useLeaveStore = defineStore("Leave", () => {
|
|||
*/
|
||||
function typeConvert(item: string, subitem: any) {
|
||||
typeLeave.value = convertSubtitle(item);
|
||||
// }
|
||||
typeId.value = convertId(item);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue