fix limit ประวัติแก้ไขสถานะ อุทธรณ์/ร้องทุกข์

This commit is contained in:
Warunee Tamkoo 2024-06-29 22:02:31 +07:00
parent 53d592f103
commit 2475f86608

View file

@ -16,7 +16,12 @@ const dataStore = useAppealComplainStore();
const rows = ref<HistoryStatusType[]>([]); const rows = ref<HistoryStatusType[]>([]);
/** หัวข้อที่เเสดงในตารางผู้ถูกร้องเรียน */ /** หัวข้อที่เเสดงในตารางผู้ถูกร้องเรียน */
const visibleColumns = ref<string[]>(["no", "status","createdFullName", "createdAt"]); const visibleColumns = ref<string[]>([
"no",
"status",
"createdFullName",
"createdAt",
]);
/** หัวตารางผู้ถูกร้องเรียน */ /** หัวตารางผู้ถูกร้องเรียน */
const columns = ref<QTableProps["columns"]>([ const columns = ref<QTableProps["columns"]>([
{ {
@ -82,8 +87,7 @@ watch(
createdFullName: item.createdFullName, createdFullName: item.createdFullName,
status: dataStore.statusTothai(item.status), status: dataStore.statusTothai(item.status),
createdAt: date2Thai(item.createdAt, false, true), createdAt: date2Thai(item.createdAt, false, true),
}));
}))
} }
); );
</script> </script>
@ -117,6 +121,7 @@ watch(
hide-bottom hide-bottom
class="custom-header-table" class="custom-header-table"
:visible-columns="visibleColumns" :visible-columns="visibleColumns"
:rows-per-page-options="[100]"
> >
<template v-slot:header="props"> <template v-slot:header="props">
<q-tr :props="props"> <q-tr :props="props">