API evaluation
This commit is contained in:
parent
fc7b933cc6
commit
be33ef9186
7 changed files with 99 additions and 10 deletions
|
|
@ -1,6 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, reactive, onMounted } from "vue";
|
||||
import { useQuasar } from "quasar";
|
||||
import evaluationFunctions from "@/modules/06_evaluate/stores/evaluationFunction";
|
||||
|
||||
import type {
|
||||
FormCommand,
|
||||
|
|
@ -29,10 +30,11 @@ import { useCounterMixin } from "@/stores/mixin";
|
|||
|
||||
const store = useEvaluateStore();
|
||||
const mixin = useCounterMixin();
|
||||
const { dialogConfirm } = mixin;
|
||||
|
||||
const $q = useQuasar();
|
||||
|
||||
const { dialogConfirm, showLoader, hideLoader, messageError } = mixin;
|
||||
const { fetchCheckStatus, saveEvaluation } = evaluationFunctions;
|
||||
|
||||
const externalLink =
|
||||
"https://accreditation.ocsc.go.th/accreditation/search/curriculum";
|
||||
|
||||
|
|
@ -136,7 +138,7 @@ async function validateStep2() {
|
|||
}
|
||||
|
||||
async function saveStep1() {
|
||||
console.log("Save 1");
|
||||
saveEvaluation("test");
|
||||
}
|
||||
async function saveStep2() {
|
||||
dialogConfirm(
|
||||
|
|
@ -187,8 +189,9 @@ function fetchMeeting() {
|
|||
console.log("ประเมินชำนาญการ:meeting");
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
onMounted(async () => {
|
||||
store.step = 1;
|
||||
await fetchCheckStatus();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue