|
@@ -120,7 +120,7 @@
|
|
|
</el-table>
|
|
|
<div class="page pull-right">
|
|
|
<el-pagination
|
|
|
- background
|
|
|
+ v-if="paginationShow"
|
|
|
@current-change="handleSettingCurrentChange"
|
|
|
@size-change="handleSizeChange"
|
|
|
:current-page="currentPage"
|
|
@@ -153,9 +153,8 @@ export default {
|
|
|
total: 10,
|
|
|
loading: false,
|
|
|
workId: "",
|
|
|
- examId: "",
|
|
|
- markWorkName: "",
|
|
|
- markWorkList: []
|
|
|
+ markWorkList: [],
|
|
|
+ paginationShow: false
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -167,19 +166,6 @@ export default {
|
|
|
this.pageSize = val;
|
|
|
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;
|
|
|
- },
|
|
|
searchSetting() {
|
|
|
if (!this.formSearch.markId) {
|
|
|
this.$notify({
|
|
@@ -189,15 +175,6 @@ export default {
|
|
|
});
|
|
|
return false;
|
|
|
}
|
|
|
- let obj = {};
|
|
|
- for (let item of this.markWorkList) {
|
|
|
- if (item.id === this.formSearch.markId) {
|
|
|
- obj = item;
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- this.examId = obj.examId;
|
|
|
- this.markWorkName = obj.name;
|
|
|
this.workId = this.formSearch.markId;
|
|
|
this.loading = true;
|
|
|
this.$http
|
|
@@ -221,6 +198,9 @@ export default {
|
|
|
"/marking/marker?" +
|
|
|
new URLSearchParams(JSON.parse(JSON.stringify(this.formSearch)))
|
|
|
});
|
|
|
+ this.$nextTick(function() {
|
|
|
+ this.paginationShow = true;
|
|
|
+ });
|
|
|
});
|
|
|
},
|
|
|
markerDetail(row) {
|
|
@@ -228,10 +208,6 @@ export default {
|
|
|
"/marking/marker_detail/" +
|
|
|
this.workId +
|
|
|
"/" +
|
|
|
- this.examId +
|
|
|
- "/" +
|
|
|
- this.markWorkName +
|
|
|
- "/" +
|
|
|
row.userId +
|
|
|
"/" +
|
|
|
row.userName;
|