|
|
@@ -16,7 +16,7 @@
|
|
|
<p :class="examStatus === ''?'check-table-button':''" @click="tableTypeButton('')">全部</p>
|
|
|
<p :class="examStatus === 0?'check-table-button':''" @click="tableTypeButton(0)">未开始</p>
|
|
|
<p :class="examStatus === 1?'check-table-button':''" @click="tableTypeButton(1)">进行中</p>
|
|
|
- <p :class="examStatus === 2?'check-table-button':''" @click="tableTypeButton(2)">已完成</p>
|
|
|
+ <!--<p :class="examStatus === 2?'check-table-button':''" @click="tableTypeButton(2)">已完成</p>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-form-item label="" prop="searchValue">
|
|
|
@@ -57,8 +57,8 @@
|
|
|
<p class="text-p">{{parseTime(item.startTime,"{y}-{m}-{d} {h}:{i}")}} 至 {{parseTime(item.endTime,"{y}-{m}-{d} {h}:{i}")}}</p>
|
|
|
<p class="time-p">时长:{{item.answerDuration}}分钟 丨 总分:{{item.totalScore}}分 丨 及格分:{{item.passScore}}分 丨 可考试次数:{{item.attemptLimit==0?'无限':item.attemptLimit}}次</p>
|
|
|
</div>
|
|
|
- <p class="position-p-1" @click="tableButton(1)">{{item.conditionType!=4?'完成模拟考试练习后解锁':'开始模拟考试'}}</p>
|
|
|
- <p class="position-p-2" v-if="item.data10" @click="tableButton(2)">历史错题</p>
|
|
|
+ <p class="position-p-1" @click="tableButton(1,item)">{{item.conditionType!=4?'完成模拟考试练习后解锁':'开始模拟考试'}}</p>
|
|
|
+ <!--<p class="position-p-2" @click="tableButton(2)">历史错题</p>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
<pagination :page-sizes="[20, 30, 40, 50]"
|
|
|
@@ -80,7 +80,7 @@
|
|
|
//import { getInfo } from "@/api/basicsModules/index";
|
|
|
//import addPage from "./addPage.vue";
|
|
|
import historyOfIncorrectQuestions from "@/views/safetyEducationExaminationNew/components/historyOfIncorrectQuestions.vue";
|
|
|
- import { examUserExamMockList,examUserExamTypeSelectExamType, } from "@/api/safetyEducationExaminationNew/index";
|
|
|
+ import { examUserExamMockList,examUserExamTypeSelectExamType,examUserExamStart, } from "@/api/safetyEducationExaminationNew/index";
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
components: {
|
|
|
@@ -104,29 +104,7 @@
|
|
|
//时间数据
|
|
|
dateRange: [],
|
|
|
//列表数据
|
|
|
- dataList: [
|
|
|
- { examTypeName:'新生入学考试', examName:'模拟考试名称考试名称考试',
|
|
|
- startTime:'2026-09-01', endTime:'2026-09-30', data5:true,
|
|
|
- answerDuration:'30',totalScore:'100',passScore:'60',attemptLimit:'10',data10:true,},
|
|
|
- { examTypeName:'新生入学考试', examName:'模拟考试名称考试名称考试',
|
|
|
- startTime:'2026-09-01', endTime:'2026-09-30', data5:false,
|
|
|
- answerDuration:'30',totalScore:'100',passScore:'60',attemptLimit:'10',data10:true,},
|
|
|
- { examTypeName:'新生入学考试', examName:'模拟考试名称考试名称考试',
|
|
|
- startTime:'2026-09-01', endTime:'2026-09-30', data5:true,
|
|
|
- answerDuration:'30',totalScore:'100',passScore:'60',attemptLimit:'10',data10:false,},
|
|
|
- { examTypeName:'新生入学考试', examName:'模拟考试名称考试名称考试',
|
|
|
- startTime:'2026-09-01', endTime:'2026-09-30', data5:true,
|
|
|
- answerDuration:'30',totalScore:'100',passScore:'60',attemptLimit:'10',data10:true,},
|
|
|
- { examTypeName:'新生入学考试', examName:'模拟考试名称考试名称考试',
|
|
|
- startTime:'2026-09-01', endTime:'2026-09-30', data5:true,
|
|
|
- answerDuration:'30',totalScore:'100',passScore:'60',attemptLimit:'10',data10:false,},
|
|
|
- { examTypeName:'新生入学考试', examName:'模拟考试名称考试名称考试',
|
|
|
- startTime:'2026-09-01', endTime:'2026-09-30', data5:false,
|
|
|
- answerDuration:'30',totalScore:'100',passScore:'60',attemptLimit:'10',data10:true,},
|
|
|
- { examTypeName:'新生入学考试', examName:'模拟考试名称考试名称考试',
|
|
|
- startTime:'2026-09-01', endTime:'2026-09-30', data5:true,
|
|
|
- answerDuration:'30',totalScore:'100',passScore:'60',attemptLimit:'10',data10:false,},
|
|
|
- ],
|
|
|
+ dataList: [],
|
|
|
//数据数量
|
|
|
total: 0,
|
|
|
//组件传参
|
|
|
@@ -186,15 +164,38 @@
|
|
|
})
|
|
|
},
|
|
|
//操作按钮
|
|
|
- tableButton(type, row) {
|
|
|
+ tableButton(type, item) {
|
|
|
let self = this
|
|
|
if (type == 1) {
|
|
|
//模拟练习
|
|
|
-
|
|
|
- } else if (type == 2) {
|
|
|
- //历史错题
|
|
|
- this.$set(this, 'pageType', 2)
|
|
|
- this.$set(this, 'propsData', {})
|
|
|
+ if(item.conditionType!=4){
|
|
|
+ return
|
|
|
+ }
|
|
|
+ //模拟考试
|
|
|
+ if(item.attemptId){
|
|
|
+ this.$router.push({
|
|
|
+ name: 'startTheExam',
|
|
|
+ params: {
|
|
|
+ attemptId: item.attemptId,
|
|
|
+ type: '1'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ examUserExamStart({examId:item.examId,examScene:2,}).then(response => {
|
|
|
+ if(response.data.attemptId){
|
|
|
+ this.$router.push({
|
|
|
+ name: 'mockExam',
|
|
|
+ params: {
|
|
|
+ examId: item.examId,
|
|
|
+ attemptId: response.data.attemptId,
|
|
|
+ type: '1'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.msgError(response.message)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
} else if (type == 6) {
|
|
|
//返回并刷新
|
|
|
this.$set(this, 'pageType', 1)
|
|
|
@@ -285,8 +286,8 @@
|
|
|
border-left:none;
|
|
|
}
|
|
|
p:nth-child(3){
|
|
|
- border-left:none;
|
|
|
- border-right:none;
|
|
|
+ border-top-right-radius:4px;
|
|
|
+ border-bottom-right-radius:4px;
|
|
|
}
|
|
|
p:nth-child(4){
|
|
|
border-top-right-radius:4px;
|