处理分页问题
This commit is contained in:
parent
114ee304d8
commit
5723fb853a
|
|
@ -139,7 +139,7 @@ export default {
|
||||||
limit: this.limit,
|
limit: this.limit,
|
||||||
});
|
});
|
||||||
this.tableData = data.data.records;
|
this.tableData = data.data.records;
|
||||||
this.total = data.data.total;
|
this.total = data.data.totalCount;
|
||||||
},
|
},
|
||||||
del(item) {
|
del(item) {
|
||||||
this.$confirm("是否删除该任务?", "提示", {
|
this.$confirm("是否删除该任务?", "提示", {
|
||||||
|
|
|
||||||
|
|
@ -118,8 +118,8 @@ export default {
|
||||||
this.$message.error(res.data.msg || '修改失败')
|
this.$message.error(res.data.msg || '修改失败')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSizeChange() {
|
handleSizeChange(limit) {
|
||||||
this.page = 1;
|
this.limit = limit;
|
||||||
this.init();
|
this.init();
|
||||||
},
|
},
|
||||||
handleCurrentChange(val) {
|
handleCurrentChange(val) {
|
||||||
|
|
@ -141,7 +141,7 @@ export default {
|
||||||
limit: this.limit,
|
limit: this.limit,
|
||||||
});
|
});
|
||||||
this.tableData = data.data.records;
|
this.tableData = data.data.records;
|
||||||
this.total = data.data.total;
|
this.total = data.data.totalCount;
|
||||||
},
|
},
|
||||||
del(item) {
|
del(item) {
|
||||||
this.$confirm("是否删除该任务?", "提示", {
|
this.$confirm("是否删除该任务?", "提示", {
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@
|
||||||
<div style="text-align: center;margin-top: 10px;">
|
<div style="text-align: center;margin-top: 10px;">
|
||||||
<el-pagination @size-change="handleSizeChange1" @current-change="handleCurrentChange1"
|
<el-pagination @size-change="handleSizeChange1" @current-change="handleCurrentChange1"
|
||||||
:page-sizes="[10, 20, 30, 40]" :page-size="size" :current-page="page"
|
:page-sizes="[10, 20, 30, 40]" :page-size="size" :current-page="page"
|
||||||
layout="total,sizes, prev, pager, next,jumper" :total="homeData.total">
|
layout="total,sizes, prev, pager, next,jumper" :total="homeData.totalCount">
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue