Refactoring code module 09_scholarship
This commit is contained in:
parent
e9f9690c51
commit
59393536f7
4 changed files with 39 additions and 29 deletions
|
|
@ -1,16 +1,17 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, watch } from "vue";
|
||||
import DialogHeader from "@/components/DialogHeader.vue";
|
||||
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useQuasar } from "quasar";
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
import { useRoute } from "vue-router";
|
||||
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useQuasar } from "quasar";
|
||||
|
||||
import DialogHeader from "@/components/DialogHeader.vue";
|
||||
|
||||
const $q = useQuasar();
|
||||
const route = useRoute();
|
||||
const id = ref<string>(route.params.id.toLocaleString());
|
||||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin();
|
||||
const {
|
||||
date2Thai,
|
||||
|
|
@ -23,14 +24,14 @@ const {
|
|||
} = mixin;
|
||||
const modal = defineModel<boolean>("modal", { required: true });
|
||||
|
||||
const governmentDate = ref<any>(null);
|
||||
const graduatedDate = ref<any>(null);
|
||||
const isGraduated = ref<any>(null);
|
||||
const governmentDate = ref<Date | null>(null);
|
||||
const graduatedDate = ref<Date | null>(null);
|
||||
const isGraduated = ref<string | null>(null);
|
||||
const graduatedReason = ref<string>("");
|
||||
|
||||
const bookNumber = ref<string>("");
|
||||
const bookDate = ref<any>(null);
|
||||
const governmentEndDate = ref<any>(null);
|
||||
const bookDate = ref<Date | null>(null);
|
||||
const governmentEndDate = ref<Date | null>(null);
|
||||
|
||||
function close() {
|
||||
modal.value = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue