ปรับ การ Download ไฟล์ต้นฉบับ
This commit is contained in:
parent
36ea205624
commit
c118cb0e1f
6 changed files with 55 additions and 488 deletions
|
|
@ -5,12 +5,14 @@ import { useQuasar } from "quasar";
|
|||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
|
||||
/** import Type*/
|
||||
import type {
|
||||
FormSpec,
|
||||
FormCommand,
|
||||
FormCommandRef,
|
||||
} from "@/modules/06_evaluate/interface/evalute";
|
||||
|
||||
/** import Components*/
|
||||
import Stepper from "@/modules/06_evaluate/components/Stepper.vue";
|
||||
import Step1 from "@/modules/06_evaluate/components/step/step1.vue";
|
||||
import Step2 from "@/modules/06_evaluate/components/step/step2.vue";
|
||||
|
|
@ -21,7 +23,6 @@ import Step6 from "@/modules/06_evaluate/components/step/step6.vue";
|
|||
import Step7 from "@/modules/06_evaluate/components/step/step7.vue";
|
||||
import Step8 from "@/modules/06_evaluate/components/step/step8.vue";
|
||||
import Step9 from "@/modules/06_evaluate/components/step/step9.vue";
|
||||
import tab1 from "@/modules/06_evaluate/components/Tab1.vue";
|
||||
|
||||
import ViewStep1 from "@/modules/06_evaluate/components/viewstep/viewStep1.vue";
|
||||
import ViewStep3 from "@/modules/06_evaluate/components/viewstep/viewStep3.vue";
|
||||
|
|
@ -29,9 +30,11 @@ import ViewStep7 from "@/modules/06_evaluate/components/viewstep/viewStep7.vue";
|
|||
|
||||
import PopupHistory from "@/modules/06_evaluate/components/viewstep/popupHistory.vue";
|
||||
|
||||
/** import Store*/
|
||||
import { useEvaluateStore } from "@/modules/06_evaluate/store";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
||||
/** use*/
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
const store = useEvaluateStore();
|
||||
|
|
@ -43,7 +46,6 @@ const { showLoader, hideLoader, messageError, dialogConfirm } = mixin;
|
|||
const externalLink =
|
||||
"https://accreditation.ocsc.go.th/accreditation/search/curriculum";
|
||||
|
||||
// const evaluateId = ref<string>(route.params.id.toString());
|
||||
const showLoadStatus = ref<boolean>(false);
|
||||
|
||||
const modalHistory = ref<boolean>(false);
|
||||
|
|
@ -51,6 +53,7 @@ function onClickPopupHistory() {
|
|||
modalHistory.value = !modalHistory.value;
|
||||
}
|
||||
|
||||
/** function NextToStep*/
|
||||
async function onCilckNextStep() {
|
||||
const functionCreateDoc: (() => Promise<void>) | null =
|
||||
store.step === 1
|
||||
|
|
@ -91,6 +94,7 @@ async function onCilckNextStep() {
|
|||
);
|
||||
}
|
||||
|
||||
/** function validateForm Step 2,4*/
|
||||
async function validateForm() {
|
||||
store.checkFileupload = !store.checkFileupload;
|
||||
const emptyValues = downloadFileRef.value.filter((e: any) => e === "");
|
||||
|
|
@ -104,7 +108,6 @@ async function validateForm() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (hasError.every((result) => result === true)) {
|
||||
if (emptyValues.length > 0 && store.statusUpload === true) {
|
||||
console.log("There are empty values in the array.");
|
||||
|
|
@ -121,8 +124,6 @@ async function validateForm() {
|
|||
nextTostep7();
|
||||
}
|
||||
}
|
||||
|
||||
// store.step === 2 && emptyValues.length > 0 ? saveStep2() : saveStep6();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -527,6 +528,7 @@ async function nextTostep7() {
|
|||
);
|
||||
}
|
||||
|
||||
/** STEP 7*/
|
||||
async function saveStep7() {
|
||||
showLoader();
|
||||
await http
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue