xiangpei
2024-07-09 8a968bcc9d96c6ac88c6ec85b27be63ae40aef36
src/views/exam/exam/ExamManage.vue
@@ -35,10 +35,10 @@
        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"
@@ -64,7 +64,7 @@
        width="150px"
        prop="createTime"
      ></el-table-column>
      <el-table-column label="操作" fiexd="right">
      <el-table-column label="操作" fiexd="right" width="280px">
        <template slot-scope="scope">
          <el-button
            type="primary"
@@ -82,6 +82,8 @@
          </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="warning" size="small" @click="monitor(scope.row)">监控</el-button>
        </template>
      </el-table-column>
    </el-table>
@@ -203,6 +205,10 @@
    this.MyExamPaperList()
  },
  methods: {
    // 考试监控列表
    monitor (row) {
      this.$router.push({ path: '/exam/monitor', query: { examId: row.id } })
    },
    markPaper (row) {
      // 跳转阅卷页面
      this.$router.push({ path: '/exam/mark/paper', query: { examName: row.examName, examId: row.id } })