|
|
@@ -10,16 +10,18 @@
|
|
|
<rate-chart :value="rightRate" />
|
|
|
<view class="h-1 bg-[#E6E6E6] my-20"></view>
|
|
|
<view>
|
|
|
- <view class="my-20 flex items-center justify-between text-24">
|
|
|
- <ie-image src="/pagesStudy/static/image/icon-house.png" custom-class="w-24 h-24" mode="aspectFill" />
|
|
|
- <text class="ml-10 text-fore-light flex-1">考试院校</text>
|
|
|
- <text class="text-fore-title">{{ examineeData.collegeName }}-{{ examineeData.majorName }}</text>
|
|
|
- </view>
|
|
|
- <view class="my-20 flex items-center justify-between text-24">
|
|
|
- <ie-image src="/pagesStudy/static/image/icon-group.png" custom-class="w-24 h-24" mode="aspectFill" />
|
|
|
- <text class="ml-10 text-fore-light flex-1">考试科目</text>
|
|
|
- <text class="text-fore-title">{{ examineeData.subjectName }}</text>
|
|
|
- </view>
|
|
|
+ <template v-if="!userStore.isVHS">
|
|
|
+ <view class="my-20 flex items-center justify-between text-24">
|
|
|
+ <ie-image src="/pagesStudy/static/image/icon-house.png" custom-class="w-24 h-24" mode="aspectFill" />
|
|
|
+ <text class="ml-10 text-fore-light flex-1">考试院校</text>
|
|
|
+ <text class="text-fore-title">{{ examineeData.collegeName }}-{{ examineeData.majorName }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="my-20 flex items-center justify-between text-24">
|
|
|
+ <ie-image src="/pagesStudy/static/image/icon-group.png" custom-class="w-24 h-24" mode="aspectFill" />
|
|
|
+ <text class="ml-10 text-fore-light flex-1">考试科目</text>
|
|
|
+ <text class="text-fore-title">{{ examineeData.subjectName }}</text>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
<view class="my-20 flex items-center justify-between text-24">
|
|
|
<ie-image src="/pagesStudy/static/image/icon-clock.png" custom-class="w-24 h-24" mode="aspectFill" />
|
|
|
<text class="ml-10 text-fore-light flex-1">考试时长</text>
|
|
|
@@ -40,11 +42,14 @@ import ExamStat from './components/exam-stat.vue';
|
|
|
import ScoreStat from './components/score-stat.vue';
|
|
|
import { getExamineeResult } from '@/api/modules/study';
|
|
|
import { useTransferPage } from '@/hooks/useTransferPage';
|
|
|
+import { useUserStore } from '@/store/userStore';
|
|
|
import { Study, Transfer } from '@/types';
|
|
|
import { EnumPaperType, EnumQuestionType } from '@/common/enum';
|
|
|
+
|
|
|
const { prevData, transferTo } = useTransferPage<Transfer.SimulationAnalysisPageOptions, Transfer.ExamAnalysisPageOptions>();
|
|
|
const examineeData = ref<Study.Examinee>();
|
|
|
- const titleMap = {
|
|
|
+const userStore = useUserStore();
|
|
|
+const titleMap = {
|
|
|
[EnumPaperType.PRACTICE]: '知识点练习',
|
|
|
[EnumPaperType.SIMULATED]: '模拟考试',
|
|
|
[EnumPaperType.TEST]: '组卷作业',
|
|
|
@@ -80,17 +85,18 @@ const formatTime = (time: number) => {
|
|
|
const handleDetail = (item: Study.Question) => {
|
|
|
if (!examineeData.value) {
|
|
|
return;
|
|
|
- }
|
|
|
- transferTo('/pagesStudy/pages/exam-start/exam-start', {
|
|
|
- data: {
|
|
|
+ }
|
|
|
+ const pageOptions: Transfer.ExamAnalysisPageOptions = {
|
|
|
+ readonly: true,
|
|
|
+ questionId: item.id,
|
|
|
+ paperType: prevData.value.paperType,
|
|
|
+ simulationInfo: {
|
|
|
name: paperName.value,
|
|
|
- readonly: true,
|
|
|
- questionId: item.id,
|
|
|
- paperType: prevData.value.paperType,
|
|
|
- simulationInfo: {
|
|
|
- examineeId: examineeData.value.examineeId
|
|
|
- }
|
|
|
+ examineeId: examineeData.value.examineeId
|
|
|
}
|
|
|
+ }
|
|
|
+ transferTo('/pagesStudy/pages/exam-start/exam-start', {
|
|
|
+ data: pageOptions,
|
|
|
});
|
|
|
};
|
|
|
const loadData = async () => {
|