Refactor Code ระบบลา
This commit is contained in:
parent
75dfc3b004
commit
9498748c94
16 changed files with 202 additions and 349 deletions
|
|
@ -4,6 +4,7 @@ import http from "@/plugins/http";
|
|||
import config from "@/app.config";
|
||||
import { useQuasar } from "quasar";
|
||||
|
||||
/** import Type*/
|
||||
import type { FormDetail } from "@/modules/09_leave/interface/response/work";
|
||||
|
||||
/** importStores */
|
||||
|
|
|
|||
|
|
@ -85,6 +85,10 @@ watch([() => currentPage.value, () => pagination.value.rowsPerPage], () => {
|
|||
updateProp(pagination.value, currentPage.value);
|
||||
});
|
||||
|
||||
/**
|
||||
* function updatePageSize
|
||||
* @param newPagination PageSize
|
||||
*/
|
||||
function updateRowsPerPagen(newPagination: any) {
|
||||
pagination.value.rowsPerPage = newPagination.rowsPerPage;
|
||||
currentPage.value = 1;
|
||||
|
|
@ -122,8 +126,6 @@ function updateRowsPerPagen(newPagination: any) {
|
|||
@click.prevent="clickDetail(props.row)"
|
||||
>
|
||||
<div v-if="col.name == 'no'">
|
||||
<!-- {{ props.rowIndex + 1 }} -->
|
||||
|
||||
{{
|
||||
(currentPage - 1) * Number(pagination.rowsPerPage) +
|
||||
props.rowIndex +
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import type { DataOption } from "@/modules/09_leave/interface/index/Main";
|
|||
/** importStores */
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useWorklistDataStore } from "@/modules/09_leave/stores/WorkStore";
|
||||
|
||||
/** useStore */
|
||||
const workStore = useWorklistDataStore();
|
||||
const mixin = useCounterMixin();
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import { ref } from "vue";
|
|||
/** importStores */
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useWorklistDataStore } from "@/modules/09_leave/stores/WorkStore";
|
||||
|
||||
/** useStore */
|
||||
const workStore = useWorklistDataStore();
|
||||
const mixin = useCounterMixin();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue