This commit is contained in:
Warunee Tamkoo 2023-12-23 18:51:23 +07:00
parent 63a65cda86
commit 14ccbcfe62
3 changed files with 40 additions and 25 deletions

View file

@ -24,7 +24,14 @@ const numOfPages = ref<number>(0);
const page = ref<number>(1);
const $q = useQuasar();
const mixin = useCounterMixin();
const { date2Thai, showLoader, hideLoader, messageError, success } = mixin;
const {
dialogConfirm,
date2Thai,
showLoader,
hideLoader,
messageError,
success,
} = mixin;
const AnnouncementStartDate = ref<string | null>();
const AnnouncementEndDate = ref<string | null>();
const id = ref<string>(route.params.id as string);
@ -73,19 +80,21 @@ function deleteFile(name: string) {
}
function save() {
showLoader();
http
.put(config.API.evaluationNext5To6(id.value))
// .then((res) => {})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
success($q, "บันทึกแจ้งผลการประกาศคัดเลือกสำเร็จ");
store.step = 6;
store.currentStep = 6;
hideLoader();
});
dialogConfirm($q, () => {
showLoader();
http
.put(config.API.evaluationNext5To6(id.value))
// .then((res) => {})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
success($q, "บันทึกแจ้งผลการประกาศคัดเลือกสำเร็จ");
store.step = 6;
store.currentStep = 6;
hideLoader();
});
});
}
function upLoadFile() {