| | |
| | | label="参考班级" |
| | | prop="className" |
| | | ></el-table-column> |
| | | <!-- <el-table-column--> |
| | | <!-- label="班级人数"--> |
| | | <!-- prop="studentNum"--> |
| | | <!-- ></el-table-column>--> |
| | | <!-- <el-table-column--> |
| | | <!-- label="班级人数"--> |
| | | <!-- prop="studentNum"--> |
| | | <!-- ></el-table-column>--> |
| | | <el-table-column |
| | | label="考试地点" |
| | | prop="examPlace" |
| | |
| | | <el-button slot="reference" type="danger" size="small">删除</el-button> |
| | | </el-popconfirm> |
| | | |
| | | <el-button v-if="scope.row.status === 'finished'" type="success" size="small" @click="markPaper(scope.row)">阅卷</el-button> |
| | | <el-button type="danger" size="small" @click="deleteExam(scope.row.id)">删除</el-button> |
| | | <el-button type="success" size="small" @click="markPaper(scope.row)">阅卷</el-button> |
| | | <el-button v-if="scope.row.status === 'finished'" type="success" size="small" @click="markPaper(scope.row)"> |
| | | 阅卷 |
| | | </el-button> |
| | | <el-button type="warning" size="small" @click="monitor(scope.row)">监控</el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | this.classesList = res.data.data |
| | | }) |
| | | }, |
| | | deleteExam (id) { |
| | | deleteExamById(id).then(res => { |
| | | this.$message.success('删除成功') |
| | | this.page() |
| | | deleteExam (row) { |
| | | this.$confirm('确认是否删除' + row.examName + '?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | deleteExamById(row.id).then(res => { |
| | | this.$message.success('删除成功') |
| | | this.page() |
| | | }) |
| | | }) |
| | | }, |
| | | handlerEdit (row) { |
| | | this.examForm = { |
| | | ...row, |
| | | time: [row.startTime, row.endTime] |
| | | time: [row.startTime, row.endTime] |
| | | } |
| | | this.title = '修改考试' |
| | | this.open = true |