|
|
@@ -51,8 +51,8 @@
|
|
|
query: {},
|
|
|
loading:true,
|
|
|
page: {
|
|
|
- size: 10,
|
|
|
- current: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ currentPage: 1,
|
|
|
total: 0
|
|
|
},
|
|
|
dataLoad: {
|
|
|
@@ -487,8 +487,8 @@
|
|
|
this.option = item.option;
|
|
|
this.form = {};
|
|
|
this.page = {
|
|
|
- size: 10,
|
|
|
- current: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ currentPage: 1,
|
|
|
total: 0
|
|
|
};
|
|
|
if (item.dialog === "form") {
|
|
|
@@ -516,7 +516,7 @@
|
|
|
let that = this;
|
|
|
that.loading = true;
|
|
|
let param = Object.assign(params, this.query);
|
|
|
- this.$axios.get(this.dataLoad.url, {params:Object.assign(param, {size: this.page.size, current: this.page.current})}).then(function(res) {
|
|
|
+ this.$axios.get(this.dataLoad.url, {params:Object.assign(param, {size: page.pageSize, current: page.currentPage})}).then(function(res) {
|
|
|
const data = res.data.data;
|
|
|
that.page.total = data.total;
|
|
|
that.data = data.records;
|
|
|
@@ -544,7 +544,7 @@
|
|
|
},
|
|
|
dialogClose(){
|
|
|
this.query = {};
|
|
|
- this.page ={size: 10, current: 1, total: 0};
|
|
|
+ this.page ={pageSize: 10, currentPage: 1, total: 0};
|
|
|
}
|
|
|
},
|
|
|
|