Refactoring code module 09_scholarship

This commit is contained in:
STW_TTTY\stwtt 2024-09-10 12:01:37 +07:00
parent e9f9690c51
commit 59393536f7
4 changed files with 39 additions and 29 deletions

View file

@ -3,26 +3,27 @@ import { ref, onMounted, watch } from "vue";
import { useRouter } from "vue-router";
import { useQuasar, type QTableProps } from "quasar";
import { useCounterMixin } from "@/stores/mixin";
import type { DataOptions } from "@/modules/09_scholarship/interface/index/Main";
import http from "@/plugins/http";
import config from "@/app.config";
import { useCounterMixin } from "@/stores/mixin";
import type {
DataOptions,
Scholarship,
} from "@/modules/09_scholarship/interface/index/Main";
const mixin = useCounterMixin();
const { date2Thai, showLoader, hideLoader, messageError } = mixin;
const { showLoader, hideLoader, messageError } = mixin;
const router = useRouter();
const $q = useQuasar();
const filterKeyword = ref<string>("");
const profilId = ref<string>("");
const currentPage = ref<number>(1);
const maxPage = ref<number>(1);
const page = ref<number>(1);
const rowsPerPage = ref<number>(10);
const rows = ref<any>();
const rows = ref<Scholarship[]>([]);
const year = ref<number>(0);
const type = ref<string>("DOMESTICE");
const scholarshipTypeOp = ref<DataOptions[]>([