Refactoring code 09_leave

This commit is contained in:
STW_TTTY\stwtt 2024-09-18 17:26:53 +07:00
parent d20fdb0190
commit 94eb31fc26
27 changed files with 289 additions and 577 deletions

View file

@ -1,21 +1,15 @@
<script setup lang="ts">
import { ref, onMounted, watch } from "vue";
import { ref, watch } from "vue";
import { useQuasar } from "quasar";
import http from "@/plugins/http";
import config from "@/app.config";
import type { DateFilter } from "@/modules/09_leave/interface/request/leave";
import type { DataOption } from "@/modules/09_leave/interface/index/Main";
/** importStores*/
import { useLeavelistDataStore } from "@/modules/09_leave/stores/LeaveStore";
import { useCounterMixin } from "@/stores/mixin";
const leaveStore = useLeavelistDataStore();
const mixin = useCounterMixin();
const $q = useQuasar();
const { messageError } = mixin;
const leaveStore = useLeavelistDataStore();
const props = defineProps({
rowsPerPage: {
@ -27,14 +21,6 @@ const props = defineProps({
const emit = defineEmits(["update:querySting"]);
/** formFilter*/
// const filter = reactive<DateFilter>({
// year: new Date().getFullYear(), //*( .)
// type: "00000000-0000-0000-0000-000000000000", //*Id
// status: "ALL", //*
// keyword: "", //keyword
// });
/**
* function update อมลการคนหา (QuerySting)
* @param newPage หน