แก้โหลด

This commit is contained in:
setthawutttty 2024-11-05 15:36:53 +07:00
parent 3fec8ef37c
commit dd8eb0d999
2 changed files with 8 additions and 2 deletions

View file

@ -55,6 +55,7 @@ async function getSurveyData() {
})
.catch((e) => {
messageError($q, e);
hideLoader();
});
}

View file

@ -4,14 +4,16 @@ import { useCounterMixin } from "@/stores/mixin";
import { useRoute, useRouter } from "vue-router";
import http from "@/plugins/http";
import config from "@/app.config";
import { useQuasar } from "quasar";
const mixin = useCounterMixin();
const { date2Thai, showLoader, hideLoader } = mixin;
const { date2Thai, showLoader, hideLoader, messageError } = mixin;
const route = useRoute();
const assignId = ref<string>("baa3d9f6-9d21-4c58-85f2-114abf8de25c");
const status = ref<boolean>(false);
const $q = useQuasar();
const develop_orientation_score = ref<number>();
const develop_self_learning_score = ref<number>();
const develop_training_seminar_score = ref<number>();
@ -85,6 +87,9 @@ async function getReportScore() {
pass_result.value = data.pass_result;
evaluate_date.value = data.evaluate_date;
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
hideLoader();
});
@ -472,4 +477,4 @@ onMounted(() => {
.q-card {
box-shadow: 0px 0px 0px 0px !important;
}
</style>
</style>