อัตรากำลังลูกจ้างประจำฯ => บัค pagination

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-04-19 15:31:12 +07:00
parent 55709b6439
commit bb0e6a69bf
3 changed files with 48 additions and 4 deletions

View file

@ -1,5 +1,5 @@
<script setup lang="ts">
import { ref } from "vue";
import { ref, watch } from "vue";
import { useQuasar } from "quasar";
import config from "@/app.config";
import http from "@/plugins/http";
@ -435,9 +435,19 @@ async function onClickDownloadReport(val: string, name: string) {
}
const pagination = ref({
page: 1,
rowsPerPage: 10,
page: reqMaster.value.page,
rowsPerPage: reqMaster.value.pageSize,
});
watch(
() => modalDialogMMove.value,
() => {
if (!modalDialogMMove.value) {
pagination.value.page = 1;
pagination.value.rowsPerPage = reqMaster.value.pageSize;
}
}
);
</script>
<template>