Refactoring code module 10_registry

This commit is contained in:
STW_TTTY\stwtt 2024-09-10 15:10:18 +07:00
parent 59393536f7
commit 779e33d2a5
25 changed files with 605 additions and 276 deletions

View file

@ -1,22 +1,24 @@
<script setup lang="ts">
import { useCounterMixin } from "@/stores/mixin";
import { useQuasar, type QTableProps } from "quasar";
import { ref, reactive, onMounted } from "vue";
import http from "@/plugins/http";
import config from "@/app.config";
import { useCounterMixin } from "@/stores/mixin";
import { useRegistryInFormationStore } from "@/modules/10_registry/store/registry";
import type { HonorFormData } from "@/modules/10_registry/interface/index/Main";
//history dialog
import DialogHistory from "@/modules/10_registry/Dialog/DialogHistory.vue";
import http from "@/plugins/http";
import config from "@/app.config";
import { useRegistryInFormationStore } from "@/modules/10_registry/store/registry";
const idByRow = ref<string>("");
const store = useRegistryInFormationStore();
const rows = ref<any[]>([]);
const rows = ref<HonorFormData[]>([]);
const filter = ref<string>("");
const rowsHistory = ref<any[]>([]);
const rowsHistory = ref<HonorFormData[]>([]);
const $q = useQuasar();
const mode = ref<any>($q.screen.gt.xs);
const mode = ref<boolean>($q.screen.gt.xs);
const mixin = useCounterMixin();
const { showLoader, hideLoader, messageError, date2Thai } = mixin;