|
@@ -32,30 +32,42 @@
|
|
|
/>
|
|
/>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
prop="examName"
|
|
prop="examName"
|
|
|
- label="考试名称"
|
|
|
|
|
|
|
+ label="测评名称"
|
|
|
width="150"
|
|
width="150"
|
|
|
/>
|
|
/>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- prop="type"
|
|
|
|
|
- label="考试类型"
|
|
|
|
|
|
|
+ label="测评码"
|
|
|
width="90"
|
|
width="90"
|
|
|
- />
|
|
|
|
|
|
|
+ >
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-tag
|
|
|
|
|
+ v-if="scope.row.needPasscode"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ >需要</el-tag>
|
|
|
|
|
+ <el-tag
|
|
|
|
|
+ v-else
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="success"
|
|
|
|
|
+ >不需要</el-tag>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
prop="startTime"
|
|
prop="startTime"
|
|
|
- label="考试时间"
|
|
|
|
|
|
|
+ label="测评时间"
|
|
|
width="150"
|
|
width="150"
|
|
|
/>
|
|
/>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
prop="duration"
|
|
prop="duration"
|
|
|
- label="考试时长(分钟)"
|
|
|
|
|
|
|
+ label="测评时长(分钟)"
|
|
|
width="150"
|
|
width="150"
|
|
|
/>
|
|
/>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
prop="totalScore"
|
|
prop="totalScore"
|
|
|
- label="考试总分"
|
|
|
|
|
|
|
+ label="试卷总分"
|
|
|
/>
|
|
/>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- prop="passScore"
|
|
|
|
|
|
|
+ prop="myScore"
|
|
|
label="我的分数"
|
|
label="我的分数"
|
|
|
/>
|
|
/>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -65,19 +77,19 @@
|
|
|
>
|
|
>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
<el-button
|
|
|
- v-if="scope.row.status === 1"
|
|
|
|
|
|
|
+ v-if="scope.row.evalStatus === 1"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
@click="prepareExam(scope.$index, scope.row)"
|
|
@click="prepareExam(scope.$index, scope.row)"
|
|
|
- >去考试</el-button>
|
|
|
|
|
|
|
+ >去测评</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
- v-else-if="scope.row.status === 2"
|
|
|
|
|
|
|
+ v-else-if="scope.row.evalStatus === 2"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="danger"
|
|
type="danger"
|
|
|
@click="markPaper(scope.$index, scope.row)"
|
|
@click="markPaper(scope.$index, scope.row)"
|
|
|
>去批改</el-button>
|
|
>去批改</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
- v-else-if="scope.row.status === 3"
|
|
|
|
|
|
|
+ v-else-if="scope.row.evalStatus === 3"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="warning"
|
|
type="warning"
|
|
|
@click="waitMark(scope.$index, scope.row)"
|
|
@click="waitMark(scope.$index, scope.row)"
|
|
@@ -105,32 +117,28 @@
|
|
|
</el-main>
|
|
</el-main>
|
|
|
|
|
|
|
|
<el-dialog
|
|
<el-dialog
|
|
|
- title="考试提示"
|
|
|
|
|
|
|
+ title="测评提示"
|
|
|
:visible.sync="startExamDialog"
|
|
:visible.sync="startExamDialog"
|
|
|
center
|
|
center
|
|
|
width="50%"
|
|
width="50%"
|
|
|
>
|
|
>
|
|
|
<el-alert
|
|
<el-alert
|
|
|
- title="点击`开始考试`后将自动进入考试,请诚信考试,考试过程中可能会对用户行为、用户视频进行截图采样,请知悉!"
|
|
|
|
|
|
|
+ title="点击`开始测评`后将自动进入测评,请诚信测评,测评过程中可能会对用户行为、用户视频进行截图采样,请知悉!"
|
|
|
type="error"
|
|
type="error"
|
|
|
/>
|
|
/>
|
|
|
<el-card style="margin-top: 25px">
|
|
<el-card style="margin-top: 25px">
|
|
|
- <span>考试名称:</span>{{ currentSelectedExam.examName }}
|
|
|
|
|
|
|
+ <span>测评名称:</span>{{ currentSelectedExam.examName }}
|
|
|
<br>
|
|
<br>
|
|
|
- <span>考试描述:</span>{{ currentSelectedExam.examDesc }}
|
|
|
|
|
- <br>
|
|
|
|
|
- <span>考试时长:</span>{{ currentSelectedExam.duration + '分钟' }}
|
|
|
|
|
|
|
+ <span>测评时长:</span>{{ currentSelectedExam.duration + '分钟' }}
|
|
|
<br>
|
|
<br>
|
|
|
<span>试卷总分:</span>{{ currentSelectedExam.totalScore }}分
|
|
<span>试卷总分:</span>{{ currentSelectedExam.totalScore }}分
|
|
|
<br>
|
|
<br>
|
|
|
- <span>及格分数:</span>{{ currentSelectedExam.passScore }}分
|
|
|
|
|
- <br>
|
|
|
|
|
- <span>开放类型:</span> {{ currentSelectedExam.type === 2 ? '需要密码' : '完全公开' }}
|
|
|
|
|
|
|
+ <span>开放类型:</span> {{ currentSelectedExam.needPasscode ? '需要密码' : '完全公开' }}
|
|
|
<br>
|
|
<br>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="startExamDialog = false">返 回</el-button>
|
|
<el-button @click="startExamDialog = false">返 回</el-button>
|
|
|
- <el-button type="primary" @click="startExam(currentSelectedExam.examId)">开始考试</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" @click="startExam(currentSelectedExam.examId)">开始测评</el-button>
|
|
|
</span>
|
|
</span>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
</el-container>
|
|
</el-container>
|
|
@@ -156,9 +164,9 @@ export default {
|
|
|
pageSize: 10
|
|
pageSize: 10
|
|
|
},
|
|
},
|
|
|
allSubject: [],
|
|
allSubject: [],
|
|
|
- // 开始考试的提示框
|
|
|
|
|
|
|
+ // 开始测评的提示框
|
|
|
startExamDialog: false,
|
|
startExamDialog: false,
|
|
|
- // 当前选中的考试的信息
|
|
|
|
|
|
|
+ // 当前选中的测评的信息
|
|
|
currentSelectedExam: {
|
|
currentSelectedExam: {
|
|
|
examId: 114511
|
|
examId: 114511
|
|
|
}
|
|
}
|
|
@@ -216,25 +224,25 @@ export default {
|
|
|
this.getData(this.queryInfo)
|
|
this.getData(this.queryInfo)
|
|
|
},
|
|
},
|
|
|
prepareExam(index, row) {
|
|
prepareExam(index, row) {
|
|
|
- row.password = 12345678
|
|
|
|
|
- row.type = 1
|
|
|
|
|
- if (row.type === 2) {
|
|
|
|
|
- this.$prompt('请提供考试密码', 'Tips', {
|
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
|
- cancelButtonText: '取消'
|
|
|
|
|
- }).then(({ value }) => {
|
|
|
|
|
- if (value === row.password) {
|
|
|
|
|
- this.startExamDialog = true
|
|
|
|
|
- this.currentSelectedExam = row
|
|
|
|
|
- } else {
|
|
|
|
|
- this.$message.error('密码错误o(╥﹏╥)o')
|
|
|
|
|
- }
|
|
|
|
|
- }).catch(() => {
|
|
|
|
|
- })
|
|
|
|
|
- } else {
|
|
|
|
|
|
|
+ if (!row.needPasscode) {
|
|
|
this.startExamDialog = true
|
|
this.startExamDialog = true
|
|
|
this.currentSelectedExam = row
|
|
this.currentSelectedExam = row
|
|
|
|
|
+ return
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ this.$prompt('请提供测评码', 'Tips', {
|
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
|
+ cancelButtonText: '取消'
|
|
|
|
|
+ }).then(({ value }) => {
|
|
|
|
|
+ if (value === 123) {
|
|
|
|
|
+ this.$message.error('密码错误o(╥﹏╥)o')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ this.startExamDialog = true
|
|
|
|
|
+ this.currentSelectedExam = row
|
|
|
|
|
+ }).catch(() => {
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
startExam(paperId) {
|
|
startExam(paperId) {
|
|
|
const routeUrl = this.$router.resolve({
|
|
const routeUrl = this.$router.resolve({
|