Refactoring code module 05_leave

This commit is contained in:
STW_TTTY\stwtt 2024-09-03 17:36:59 +07:00
parent 763ec2fd95
commit 4253226ac3
23 changed files with 383 additions and 532 deletions

View file

@ -4,13 +4,11 @@ import { useQuasar } from "quasar";
import { useLeaveStore } from "@/modules/05_leave/store";
/** import stort*/
const $q = useQuasar();
const attrs = ref<any>(useAttrs());
const leaveStore = useLeaveStore();
const { filterOption } = leaveStore;
const attrs = ref<any>(useAttrs());
const $q = useQuasar();
/** รับ props มาจากหน้าหลัก */
const props = defineProps({
count: Number,
@ -60,16 +58,15 @@ const pagination = ref({
rowsPerPage: Number(props.pageSize),
});
/** filter */
const year = ref<number>(new Date().getFullYear());
const filter = ref<string>("");
/** updateVisible*/
function updateVisible(value: []) {
emit("update:inputvisible", value);
}
/** filter */
const year = ref<number>(new Date().getFullYear());
const filter = ref<string>("");
/** function updateFilter*/
function filterTable() {
emit(