sort สรรหา
This commit is contained in:
parent
383176f5be
commit
136754e910
10 changed files with 35 additions and 9 deletions
|
|
@ -325,6 +325,7 @@ import { useCounterMixin } from "@/stores/mixin";
|
|||
import { useQuasar } from "quasar";
|
||||
|
||||
const filter = defineModel<string>("filter", { required: true });
|
||||
const sortBy = defineModel<string>("sortBy");
|
||||
|
||||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin(); //เรียกฟังก์ชันกลาง
|
||||
|
|
@ -337,7 +338,7 @@ const modalPublish = ref<boolean>(false);
|
|||
const modalDelete = ref<boolean>(false);
|
||||
|
||||
const pagination = ref({
|
||||
sortBy: "desc",
|
||||
sortBy: sortBy.value ? sortBy.value : "desc",
|
||||
descending: false,
|
||||
page: 1,
|
||||
rowsPerPage: 10,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue