处理分页问题
This commit is contained in:
@@ -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("是否删除该任务?", "提示", {
|
||||
|
||||
Reference in New Issue
Block a user