<template>
|
<div class="app-container">
|
<!-- <el-form :model="queryParam" ref="queryForm" :inline="true">-->
|
<!-- <el-form-item label="用户名:">-->
|
<!-- <el-input v-model="queryParam.userName" clearable></el-input>-->
|
<!-- </el-form-item>-->
|
<!-- <el-form-item label="模板名:">-->
|
<!-- <el-input v-model="queryParam.templatesName" clearable></el-input>-->
|
<!-- </el-form-item>-->
|
<!-- <el-form-item>-->
|
<!-- <el-button type="primary" @click="submitForm">查询</el-button>-->
|
<!-- </el-form-item>-->
|
<!-- </el-form>-->
|
|
<el-table v-loading="listLoading" :data="tableData" border fit highlight-current-row style="width: 100%">
|
|
<el-table-column prop="paperScore" label="总分数" />
|
<el-table-column prop="userScore" label="分数" width="120px" />
|
<el-table-column prop="doTime" label="时间" width="120px" />
|
</el-table>
|
<pagination v-show="total>0" :total="total" :page.sync="queryParam.pageIndex" :limit.sync="queryParam.pageSize"
|
@pagination="search"/>
|
</div>
|
</template>
|
|
<script>
|
import { mapGetters, mapState, mapActions } from 'vuex'
|
import Pagination from '@/components/Pagination'
|
import examPaperApi from '@/api/examPaper'
|
|
export default {
|
components: { Pagination },
|
data () {
|
return {
|
queryParam: {
|
pageIndex: 1,
|
pageSize: 10,
|
id:'',
|
userId:''
|
},
|
subjectFilter: null,
|
listLoading: true,
|
tableData: [],
|
total: 0
|
}
|
},
|
created () {
|
|
},
|
mounted () {
|
this.queryParam.id=this.$route.query.id
|
this.queryParam.userId=this.$route.query.userId
|
this.search()
|
},
|
methods: {
|
submitForm () {
|
this.queryParam.pageIndex = 1
|
this.search()
|
},
|
search () {
|
this.listLoading = true
|
examPaperApi.mathList(this.queryParam).then(data => {
|
const re = data.response
|
this.tableData = re.list
|
this.total = re.total
|
this.queryParam.pageIndex = re.pageNum
|
this.listLoading = false
|
})
|
},
|
|
},
|
|
}
|
</script>
|