fix limit ประวัติแก้ไขสถานะ อุทธรณ์/ร้องทุกข์
This commit is contained in:
parent
53d592f103
commit
2475f86608
1 changed files with 11 additions and 6 deletions
|
|
@ -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"]>([
|
||||||
{
|
{
|
||||||
|
|
@ -79,11 +84,10 @@ watch(
|
||||||
() => props.data,
|
() => props.data,
|
||||||
() => {
|
() => {
|
||||||
rows.value = props.data.map((item: HistoryStatusType) => ({
|
rows.value = props.data.map((item: HistoryStatusType) => ({
|
||||||
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">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue