龚焕茏
2024-07-01 47568c47a3b55b336ac250e5502a6bbd8191a427
refactor:恢复成绩接口
2个文件已修改
19 ■■■■ 已修改文件
src/views/answer/info.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/answer/list.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/answer/info.vue
@@ -20,11 +20,12 @@
          </div>
          <!-- 表格 -->
          <el-table v-loading="listLoading" :data="tableData" border fit highlight-current-row>
            <el-table-column prop="examName" label="考试名称" align="center" />
            <el-table-column prop="paperName" label="试卷名称" align="center" />
            <el-table-column prop="userName" label="参考人" align="center" />
            <el-table-column label="得分" width="100px">
            <el-table-column prop="userName" width="150" label="参考人" align="center" />
            <el-table-column label="得分" width="150px" align="center">
              <template slot-scope="{row}">
                {{ row.userScore }} / {{ row.paperScore }}
                {{ row.score }} / {{ row.totalScore }}
              </template>
            </el-table-column>
            <el-table-column label="题目对错" width="100px" align="center">
@@ -33,8 +34,8 @@
              </template>
            </el-table-column>
            <el-table-column prop="doTime" label="耗时" width="80px" align="center" />
            <el-table-column prop="createTime" label="提交时间" width="160px" align="center" />
            <el-table-column label="操作" width="200px" align="center">
            <el-table-column prop="submitTime" label="提交时间" width="240px" align="center" />
            <el-table-column label="操作" width="120px" align="center">
              <template slot-scope="{row}">
                <el-button size="mini" @click="view(row)">详情</el-button>
              </template>
@@ -61,7 +62,7 @@
    return {
      listLoading: true,
      queryParam: {
        examPaperId: '',
        examId: '',
        userName: '',
        pageIndex: 1,
        pageSize: 10
@@ -74,7 +75,7 @@
    };
  },
  created() {
    this.queryParam.examPaperId = this.$route.query.id
    this.queryParam.examId = this.$route.query.id
    this.search()
  },
  methods: {
@@ -94,7 +95,7 @@
    },
    handleExport() {
      let that = this
      let url = '/api/admin/examPaperAnswer/exportExcel?examPaperId=' + this.queryParam.examPaperId + '&userName=' + this.queryParam.userName
      let url = '/api/admin/examPaperAnswer/exportExcel?examId=' + this.queryParam.examId + '&userName=' + this.queryParam.userName
      var x = new XMLHttpRequest();
      x.open("POST", url, true);
      x.responseType = "blob";
src/views/answer/list.vue
@@ -29,7 +29,7 @@
        </template>
      </el-table-column>
      <el-table-column align="center" prop="questionCount" label="题目数量" width="100px" />
      <el-table-column align="center" prop="systemScore" label="总分" width="100px" />
      <el-table-column align="center" prop="totalScore" label="总分" width="100px" />
      <el-table-column align="center" prop="suggestTime" label="建议时长" width="100px" />
      <el-table-column align="center" prop="personAnswerNum" label="参考人数" width="100px">
        <template slot-scope="{row}">