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 visibleColumns = ref<string[]>(["no", "status","createdFullName", "createdAt"]);
const visibleColumns = ref<string[]>([
"no",
"status",
"createdFullName",
"createdAt",
]);
/** หัวตารางผู้ถูกร้องเรียน */
const columns = ref<QTableProps["columns"]>([
{
@ -79,11 +84,10 @@ watch(
() => props.data,
() => {
rows.value = props.data.map((item: HistoryStatusType) => ({
createdFullName:item.createdFullName,
status: dataStore.statusTothai(item.status),
createdAt: date2Thai(item.createdAt,false,true),
}))
createdFullName: item.createdFullName,
status: dataStore.statusTothai(item.status),
createdAt: date2Thai(item.createdAt, false, true),
}));
}
);
</script>
@ -117,6 +121,7 @@ watch(
hide-bottom
class="custom-header-table"
:visible-columns="visibleColumns"
:rows-per-page-options="[100]"
>
<template v-slot:header="props">
<q-tr :props="props">