|
@@ -132,30 +132,38 @@
|
|
<span>{{ scope.row.name }}</span>
|
|
<span>{{ scope.row.name }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</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>
|
|
- <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>
|
|
- <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>
|
|
<el-table-column label="录入员" width="150">
|
|
<el-table-column label="录入员" width="150">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.creator }}</span>
|
|
<span>{{ scope.row.creator }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</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>
|
|
<el-table-column label="修改人" width="150">
|
|
<el-table-column label="修改人" width="150">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -223,7 +231,9 @@
|
|
@current-change="handleCurrentChange"
|
|
@current-change="handleCurrentChange"
|
|
:current-page="currentPage"
|
|
:current-page="currentPage"
|
|
:page-size="pageSize"
|
|
: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"
|
|
:total="total"
|
|
>
|
|
>
|
|
</el-pagination>
|
|
</el-pagination>
|
|
@@ -416,19 +426,16 @@ export default {
|
|
},
|
|
},
|
|
genPaperDetail() {
|
|
genPaperDetail() {
|
|
var courseNo = this.formSearch.courseNo;
|
|
var courseNo = this.formSearch.courseNo;
|
|
- this.getCourseName(courseNo);
|
|
|
|
- var level = this.formSearch.level;
|
|
|
|
- if (!level) {
|
|
|
|
- this.$notify({
|
|
|
|
- message: "请选择课程层次",
|
|
|
|
- type: "error"
|
|
|
|
- });
|
|
|
|
- } else if (!courseNo) {
|
|
|
|
|
|
+ if (!courseNo) {
|
|
this.$notify({
|
|
this.$notify({
|
|
|
|
+ title: "警告",
|
|
message: "请选择课程",
|
|
message: "请选择课程",
|
|
- type: "error"
|
|
|
|
|
|
+ type: "warning"
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
|
|
+ var course = this.getCourseObj(courseNo);
|
|
|
|
+ this.formSearch.courseName = course.name;
|
|
|
|
+ var level = course.level;
|
|
sessionStorage.setItem("gen_paper", JSON.stringify(this.formSearch));
|
|
sessionStorage.setItem("gen_paper", JSON.stringify(this.formSearch));
|
|
sessionStorage.setItem("gen_paper_currentPage", this.currentPage);
|
|
sessionStorage.setItem("gen_paper_currentPage", this.currentPage);
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -440,10 +447,15 @@ export default {
|
|
this.currentPage = val;
|
|
this.currentPage = val;
|
|
this.searchGenPaper();
|
|
this.searchGenPaper();
|
|
},
|
|
},
|
|
- getCourseName(courseNo) {
|
|
|
|
|
|
+ handleSizeChange(val) {
|
|
|
|
+ this.pageSize = val;
|
|
|
|
+ this.currentPage = 1;
|
|
|
|
+ this.searchGenPaper();
|
|
|
|
+ },
|
|
|
|
+ getCourseObj(courseNo) {
|
|
for (let course of this.courseList) {
|
|
for (let course of this.courseList) {
|
|
if (course.code == courseNo) {
|
|
if (course.code == courseNo) {
|
|
- this.formSearch.courseName = course.name;
|
|
|
|
|
|
+ return course;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|