UI Salary

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-02-16 11:12:16 +07:00
parent d1eab09ee4
commit 18ad7b102e
5 changed files with 612 additions and 8 deletions

View file

@ -1,5 +1,5 @@
<script setup lang="ts">
import { ref, onMounted, reactive } from "vue";
import { ref, onMounted, reactive, watch } from "vue";
import { useQuasar } from "quasar";
import { useRouter } from "vue-router";
@ -122,8 +122,8 @@ const totalRow = ref<number>(1);
* @param newPagination อม Pagination ใหม
*/
function updatePagination(newPagination: NewPagination) {
// reqMaster.value.pageSize = newPagination.rowsPerPage;
// reqMaster.value.page = 1;
formQuery.page = 1;
formQuery.pageSize = newPagination.rowsPerPage;
}
async function fetchListSalaly() {
@ -178,6 +178,10 @@ async function onClickDelete() {
onMounted(async () => {
await fetchListSalaly();
});
watch([() => formQuery.page, () => formQuery.pageSize], () => {
console.log(formQuery.page, formQuery.pageSize);
});
</script>
<template>