|
@@ -144,30 +144,38 @@
|
|
|
<span>{{ scope.row.name }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="试卷总分" width="80">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ scope.row.totalScore }}</span>
|
|
|
- </template>
|
|
|
+ <el-table-column
|
|
|
+ label="试卷总分"
|
|
|
+ width="103"
|
|
|
+ sortable
|
|
|
+ prop="totalScore"
|
|
|
+ >
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="试卷难度" width="80">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ scope.row.difficultyDegree }}</span>
|
|
|
- </template>
|
|
|
+ <el-table-column
|
|
|
+ label="试卷难度"
|
|
|
+ width="103"
|
|
|
+ sortable
|
|
|
+ prop="difficultyDegree"
|
|
|
+ >
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="大题数量" width="80">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ scope.row.paperDetailCount }}</span>
|
|
|
- </template>
|
|
|
+ <el-table-column
|
|
|
+ label="大题数量"
|
|
|
+ width="103"
|
|
|
+ sortable
|
|
|
+ prop="paperDetailCount"
|
|
|
+ >
|
|
|
</el-table-column>
|
|
|
<el-table-column label="录入员" width="150">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.creator }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="创建时间" width="153">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ scope.row.createTime }}</span>
|
|
|
- </template>
|
|
|
+ <el-table-column
|
|
|
+ label="创建时间"
|
|
|
+ width="153"
|
|
|
+ sortable
|
|
|
+ prop="createTime"
|
|
|
+ >
|
|
|
</el-table-column>
|
|
|
<el-table-column label="修改人" width="150">
|
|
|
<template slot-scope="scope">
|
|
@@ -226,7 +234,9 @@
|
|
|
@current-change="handleCurrentChange"
|
|
|
:current-page="currentPage"
|
|
|
:page-size="pageSize"
|
|
|
- layout="total, prev, pager, next, jumper"
|
|
|
+ :page-sizes="[10, 20, 50, 100]"
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
:total="total"
|
|
|
>
|
|
|
</el-pagination>
|
|
@@ -422,6 +432,11 @@ export default {
|
|
|
this.currentPage = val;
|
|
|
this.searchImportPaper();
|
|
|
},
|
|
|
+ handleSizeChange(val) {
|
|
|
+ this.pageSize = val;
|
|
|
+ this.currentPage = 1;
|
|
|
+ this.searchImportPaper();
|
|
|
+ },
|
|
|
getCourseName(courseNo) {
|
|
|
for (let course of this.courseList) {
|
|
|
if (course.code == courseNo) {
|