แก้ sort
This commit is contained in:
parent
136754e910
commit
bd715e5f6b
3 changed files with 14 additions and 6 deletions
|
|
@ -160,6 +160,7 @@ async function getData() {
|
|||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
rows.value = data;
|
||||
console.log("🚀 ~ .then ~ data:", data)
|
||||
rowsData.value = data;
|
||||
filters.value = data;
|
||||
onSearch();
|
||||
|
|
@ -269,6 +270,7 @@ onMounted(async () => {
|
|||
|
||||
<q-space />
|
||||
<div class="row q-col-gutter-sm">
|
||||
{{ filterKeyword }}
|
||||
<q-input
|
||||
standout
|
||||
dense
|
||||
|
|
|
|||
|
|
@ -73,7 +73,8 @@ function resetFilter() {
|
|||
*pagination ของตาราง
|
||||
*/
|
||||
const pagination = ref({
|
||||
descending: false,
|
||||
descending: true,
|
||||
sortBy:'date',
|
||||
page: 1,
|
||||
rowsPerPage: 10,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -50,6 +50,13 @@ export const useEvaluateMeetingDataStore = defineStore(
|
|||
field: "date",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format(val, row) {
|
||||
return `${date2Thai(
|
||||
row.dateStart as Date,
|
||||
false,
|
||||
true
|
||||
)} - ${date2Thai(row.dateEnd as Date, false, true)}`;
|
||||
},
|
||||
},
|
||||
]);
|
||||
|
||||
|
|
@ -67,11 +74,9 @@ export const useEvaluateMeetingDataStore = defineStore(
|
|||
lastUpdateFullName: item.lastUpdateFullName,
|
||||
title: item.title,
|
||||
round: item.round,
|
||||
date: `${date2Thai(item.dateStart as Date, false, true)} - ${date2Thai(
|
||||
item.dateEnd as Date,
|
||||
false,
|
||||
true
|
||||
)}`,
|
||||
dateStart: item.dateStart,
|
||||
date: item.dateStart,
|
||||
dateEnd: item.dateEnd,
|
||||
result: item.result,
|
||||
duration: item.duration,
|
||||
}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue