sort
This commit is contained in:
parent
9349bd216e
commit
df93a526fa
18 changed files with 87 additions and 63 deletions
|
|
@ -25,9 +25,7 @@ const {
|
|||
dialogRemove,
|
||||
} = useCounterMixin();
|
||||
|
||||
/**
|
||||
* Table
|
||||
*/
|
||||
/** Table*/
|
||||
const columns = [
|
||||
{
|
||||
name: "name",
|
||||
|
|
@ -80,6 +78,9 @@ const visibleColumns = ref<string[]>([
|
|||
"lastUpdatedAt",
|
||||
"lastUpdateFullName",
|
||||
]);
|
||||
const pagination = ref({
|
||||
sortBy: "name",
|
||||
});
|
||||
|
||||
const id = ref<string>(route.params.id as string); // id จังหวัด
|
||||
const filterKeyword = ref<string>(""); //คำค้นหา
|
||||
|
|
@ -288,10 +289,10 @@ onMounted(async () => {
|
|||
row-key="name"
|
||||
flat
|
||||
bordered
|
||||
:paging="true"
|
||||
dense
|
||||
class="custom-header-table"
|
||||
:visible-columns="visibleColumns"
|
||||
v-model:pagination="pagination"
|
||||
>
|
||||
<template v-slot:header="props">
|
||||
<q-tr :props="props">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue