|
@@ -135,7 +135,6 @@
|
|
</el-table>
|
|
</el-table>
|
|
<div class="page pull-right">
|
|
<div class="page pull-right">
|
|
<el-pagination
|
|
<el-pagination
|
|
- background
|
|
|
|
@current-change="handleSettingCurrentChange"
|
|
@current-change="handleSettingCurrentChange"
|
|
@size-change="handleSizeChange"
|
|
@size-change="handleSizeChange"
|
|
:current-page="currentPage"
|
|
:current-page="currentPage"
|
|
@@ -384,47 +383,21 @@ export default {
|
|
this.pageSize = val;
|
|
this.pageSize = val;
|
|
this.searchSetting();
|
|
this.searchSetting();
|
|
},
|
|
},
|
|
- pagingSetting() {
|
|
|
|
- var start = (this.currentPage - 1) * this.pageSize;
|
|
|
|
- var end =
|
|
|
|
- this.currentPage * this.pageSize < this.total
|
|
|
|
- ? this.currentPage * this.pageSize
|
|
|
|
- : this.total;
|
|
|
|
- var tempData = [];
|
|
|
|
- console.log(`当前页: ${this.currentPage},开始:${start},结束:${end}`);
|
|
|
|
- for (let i = start; i < end; i++) {
|
|
|
|
- tempData.push(this.tableData[i]);
|
|
|
|
- }
|
|
|
|
- this.tableData = tempData;
|
|
|
|
- },
|
|
|
|
- initSetting() {
|
|
|
|
- this.loading = true;
|
|
|
|
- this.$http
|
|
|
|
- .get(
|
|
|
|
- MARKING_API +
|
|
|
|
- "/markCourses/all/0/" +
|
|
|
|
- this.pageSize +
|
|
|
|
- "?workId=" +
|
|
|
|
- this.workId
|
|
|
|
- )
|
|
|
|
- .then(response => {
|
|
|
|
- this.tableData = response.data.content;
|
|
|
|
- this.total = response.data.totalElements;
|
|
|
|
- this.loading = false;
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
searchSetting() {
|
|
searchSetting() {
|
|
if (!this.markWorkSearchForm.markId) {
|
|
if (!this.markWorkSearchForm.markId) {
|
|
this.$notify({
|
|
this.$notify({
|
|
title: "警告",
|
|
title: "警告",
|
|
message: "请选择评卷名称",
|
|
message: "请选择评卷名称",
|
|
- type: "warning",
|
|
|
|
- duration: 1000
|
|
|
|
|
|
+ type: "warning"
|
|
});
|
|
});
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
this.quertTemp["markId"] = this.markWorkSearchForm.markId;
|
|
this.quertTemp["markId"] = this.markWorkSearchForm.markId;
|
|
this.quertTemp["courseCode"] = this.formSearch.courseCode;
|
|
this.quertTemp["courseCode"] = this.formSearch.courseCode;
|
|
|
|
+ this.quertTemp["examId"] = this.examId;
|
|
|
|
+ this.quertTemp["markWorkName"] = this.markWorkName;
|
|
|
|
+ this.quertTemp["currentPage"] = this.currentPage;
|
|
|
|
+ this.quertTemp["pageSize"] = this.pageSize;
|
|
this.loading = true;
|
|
this.loading = true;
|
|
this.$http
|
|
this.$http
|
|
.get(
|
|
.get(
|
|
@@ -585,7 +558,7 @@ export default {
|
|
this.markWorkName = obj.name;
|
|
this.markWorkName = obj.name;
|
|
this.workId = this.markWorkSearchForm.markId;
|
|
this.workId = this.markWorkSearchForm.markId;
|
|
this.doPie();
|
|
this.doPie();
|
|
- this.initSetting();
|
|
|
|
|
|
+ this.searchSetting();
|
|
this.getCourses();
|
|
this.getCourses();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -611,7 +584,12 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ this.currentPage = parseInt(formData.currentPage);
|
|
|
|
+ this.pageSize = parseInt(formData.pageSize);
|
|
|
|
+ this.examId = parseInt(formData.examId);
|
|
|
|
+ this.markWorkName = formData.markWorkName;
|
|
this.searchSetting();
|
|
this.searchSetting();
|
|
|
|
+ this.getCourses();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|