Refactoring code module 12_evaluatePersonal

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-09-20 13:13:43 +07:00
parent 381ec04492
commit 490f02309e
33 changed files with 598 additions and 1036 deletions

View file

@ -9,23 +9,25 @@ import type { FormCommand } from "@/modules/12_evaluatePersonal/interface/index/
import { useCounterMixin } from "@/stores/mixin";
const route = useRoute();
const id = ref<string>(route.params.id as string);
const $q = useQuasar();
const mixin = useCounterMixin();
const { showLoader, hideLoader, messageError } = mixin;
const id = ref<string>(route.params.id as string); //id
/** ฟรอมจัดเตรียมเอกสารเล่ม 1*/
const author = ref<string>("");
const subject = ref<string>("");
const subject = ref<string>(""); //
const author = ref<string>(""); //
const formCommand = reactive<FormCommand>({
elementaryFullName: "",
elementaryPosition: "",
abovelevelFullname: "",
abovelevelPosition: "",
elementaryFullName: "", //-
elementaryPosition: "", //
abovelevelFullname: "", //- 1
abovelevelPosition: "", // 1
});
/** function เรียกข้อมลผลงาน*/
/**
* function เรยกขอมลผลงาน
*/
async function fetchSigner() {
showLoader();
await http
@ -54,6 +56,10 @@ async function fetchSigner() {
}, 1000);
});
}
/**
* ทำงานเม Components กเรยกใชงาน
*/
onMounted(async () => {
await fetchSigner();
});