xiangpei
2024-03-15 4f39d2d3ee69813f106e06fc8a8d168ecccc941c
成绩统计详情增加时间查询
2个文件已修改
16 ■■■■■ 已修改文件
src/views/answer/achievementStatistics.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam/gradeDetails/list.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/answer/achievementStatistics.vue
@@ -22,7 +22,9 @@
      <el-table-column prop="counts" label="考试次数" width="160px"/>
      <el-table-column  label="操作" align="center"  width="300px">
        <template slot-scope="{row}">
          <el-button size="mini" @click="$router.push({path:'/answer/achievementStatistics/gradeDetails',query:{id:row.id,userId:row.userId,createUser:row.createUser}})" >查看</el-button>
          <el-button size="mini"
                     @click="$router.push({path:'/answer/achievementStatistics/gradeDetails',query:{id:row.id, userId:row.userId, createUser:row.createUser, start:queryParam.start, end: queryParam.end}})" >
            查看</el-button>
        </template>
      </el-table-column>
    </el-table>
src/views/exam/gradeDetails/list.vue
@@ -36,7 +36,7 @@
import { mapGetters, mapState, mapActions } from 'vuex'
import Pagination from '@/components/Pagination'
import examPaperApi from '@/api/examPaper'
import AchievementStatistics from "@/api/AchievementStatistics";
import AchievementStatistics from '@/api/AchievementStatistics'
export default {
  components: { Pagination },
@@ -45,13 +45,15 @@
      queryParam: {
        pageIndex: 1,
        pageSize: 10,
        start: null,
        end: null,
        id:'',
        userId:''
      },
      subjectFilter: null,
      listLoading: true,
      tableData: [],
      total: 0,
      total: 0
    }
  },
  created () {
@@ -61,6 +63,8 @@
    this.queryParam.id=this.$route.query.id
    this.queryParam.userId=this.$route.query.userId
    this.queryParam.createUser=this.$route.query.createUser
    this.queryParam.start = this.$route.query.start
    this.queryParam.end = this.$route.query.end
    this.search()
  },
  methods: {
@@ -77,9 +81,9 @@
        this.queryParam.pageIndex = re.pageNum
        this.listLoading = false
      })
    },
    }
  },
  }
}
</script>