|
|
@@ -336,30 +336,30 @@ const loadExamData = async () => {
|
|
|
}
|
|
|
}
|
|
|
// 3、加载对口升学试卷数据
|
|
|
-const loadVHSPaperData = async () => {
|
|
|
- const { paperType, readonly, simulationInfo } = prevData.value;
|
|
|
- let data: Study.Examinee;
|
|
|
- if (simulationInfo?.examineeId) {
|
|
|
- if (readonly) {
|
|
|
- const res = await getExamineeResult(simulationInfo.examineeId);
|
|
|
- data = res.data;
|
|
|
- } else {
|
|
|
- const params = {
|
|
|
- paperType: paperType,
|
|
|
- relateId: simulationInfo?.examineeId,
|
|
|
- } as Study.OpenExamineeRequestDTO;
|
|
|
- const res = await getOpenExaminee(params);
|
|
|
- data = res.data || {};
|
|
|
- }
|
|
|
- if (!data) {
|
|
|
- uni.$ie.hideLoading();
|
|
|
- transferBack();
|
|
|
- return;
|
|
|
- }
|
|
|
- totalExamTime.value = data.paperInfo?.time || Number.MAX_SAFE_INTEGER;
|
|
|
- combinePaperData(data, paperType);
|
|
|
- }
|
|
|
-}
|
|
|
+// const loadVHSPaperData = async () => {
|
|
|
+// const { paperType, readonly, simulationInfo } = prevData.value;
|
|
|
+// let data: Study.Examinee;
|
|
|
+// if (simulationInfo?.examineeId) {
|
|
|
+// if (readonly) {
|
|
|
+// const res = await getExamineeResult(simulationInfo.examineeId);
|
|
|
+// data = res.data;
|
|
|
+// } else {
|
|
|
+// const params = {
|
|
|
+// paperType: paperType,
|
|
|
+// relateId: simulationInfo?.examineeId,
|
|
|
+// } as Study.OpenExamineeRequestDTO;
|
|
|
+// const res = await getOpenExaminee(params);
|
|
|
+// data = res.data || {};
|
|
|
+// }
|
|
|
+// if (!data) {
|
|
|
+// uni.$ie.hideLoading();
|
|
|
+// transferBack();
|
|
|
+// return;
|
|
|
+// }
|
|
|
+// totalExamTime.value = data.paperInfo?.time || Number.MAX_SAFE_INTEGER;
|
|
|
+// combinePaperData(data, paperType);
|
|
|
+// }
|
|
|
+// }
|
|
|
const combinePaperData = async (examinee: Study.Examinee, paperType: EnumPaperType) => {
|
|
|
examineeId.value = examinee.examineeId;
|
|
|
if (examinee.paperId) {
|
|
|
@@ -419,11 +419,12 @@ const loadData = async () => {
|
|
|
if (paperType === EnumPaperType.PRACTICE || paperType === EnumPaperType.COURSE) {
|
|
|
loadPracticeData();
|
|
|
} else if (paperType === EnumPaperType.SIMULATED || paperType === EnumPaperType.TEST) {
|
|
|
- if (paperType === EnumPaperType.SIMULATED && userStore.isVHS) {
|
|
|
- loadVHSPaperData();
|
|
|
- } else {
|
|
|
- loadExamData();
|
|
|
- }
|
|
|
+ // if (paperType === EnumPaperType.SIMULATED && userStore.isVHS) {
|
|
|
+ // loadVHSPaperData();
|
|
|
+ // } else {
|
|
|
+ // loadExamData();
|
|
|
+ // }
|
|
|
+ loadExamData();
|
|
|
}
|
|
|
};
|
|
|
onLoad(() => {
|