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