|
@@ -59,7 +59,7 @@ import { getOpenExaminee, getPaper } from '@/api/modules/study';
|
|
|
import { useUserStore } from '@/store/userStore';
|
|
import { useUserStore } from '@/store/userStore';
|
|
|
import { useAppStore } from '@/store/appStore';
|
|
import { useAppStore } from '@/store/appStore';
|
|
|
import { EnumDictName, EnumPaperType } from '@/common/enum';
|
|
import { EnumDictName, EnumPaperType } from '@/common/enum';
|
|
|
-import { Study } from '@/types';
|
|
|
|
|
|
|
+import { Study, Transfer } from '@/types';
|
|
|
|
|
|
|
|
const { prevData, transferTo } = useTransferPage();
|
|
const { prevData, transferTo } = useTransferPage();
|
|
|
const userStore = useUserStore();
|
|
const userStore = useUserStore();
|
|
@@ -90,14 +90,16 @@ const subjectInfo = computed(() => {
|
|
|
return prevData.value.subjectInfo;
|
|
return prevData.value.subjectInfo;
|
|
|
});
|
|
});
|
|
|
const handleStartTest = () => {
|
|
const handleStartTest = () => {
|
|
|
- transferTo('/pagesStudy/pages/exam-start/exam-start', {
|
|
|
|
|
- data: {
|
|
|
|
|
- paperType: EnumPaperType.SIMULATED,
|
|
|
|
|
- name: '模拟考试-' + subjectInfo.value.subject,
|
|
|
|
|
- simulationInfo: {
|
|
|
|
|
- examineeId: examineeId.value
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ const pageOptions: Transfer.ExamAnalysisPageOptions = {
|
|
|
|
|
+ paperType: EnumPaperType.SIMULATED,
|
|
|
|
|
+ readonly: false,
|
|
|
|
|
+ simulationInfo: {
|
|
|
|
|
+ examineeId: examineeId.value,
|
|
|
|
|
+ name: subjectInfo.value.subject
|
|
|
}
|
|
}
|
|
|
|
|
+ }
|
|
|
|
|
+ transferTo('/pagesStudy/pages/exam-start/exam-start', {
|
|
|
|
|
+ data: pageOptions
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
const loadData = async () => {
|
|
const loadData = async () => {
|