xiangpei
2024-07-09 8a968bcc9d96c6ac88c6ec85b27be63ae40aef36
src/views/exam/exam/MarkPaper.vue
@@ -58,8 +58,16 @@
      </el-table-column>
      <el-table-column
        align="center"
        prop="phone"
        label="系统自动估分(选择题型)"
        prop="status"
        :formatter="statusFormatter"
        label="提交状态"
      >
      </el-table-column>
      <el-table-column
        align="center"
        prop="markPaperStatus"
        :formatter="statusFormatter"
        label="阅卷状态"
      >
      </el-table-column>
      <el-table-column
@@ -68,7 +76,7 @@
        width="300px"
      >
        <template slot-scope="scope">
          <el-button @click="markPaper(scope.row)" type="warning">阅卷</el-button>
          <el-button @click="markPaper(scope.row.userId)" type="warning">阅卷</el-button>
        </template>
      </el-table-column>
    </el-table>
@@ -103,8 +111,16 @@
    }
  },
  methods: {
    markPaper (row) {
    statusFormatter (row, column, cellValue, index) {
      if (cellValue === 'finish') {
        return '完成'
      } else if (cellValue === 'temp') {
        return '未完成'
      }
    },
    markPaper (userId) {
      // todo打开阅卷页面
      this.$router.push({path: "/exam/mark/paper/detail", query: {examId: this.examInfo.examId, examName: this.examInfo.examName, userId: userId}})
    },
    getExamInfo () {
      getExamMarkPaperInfo(this.examInfo.examId).then(res => {