Commit b597c9b1 by jack

修复bug

1 parent 91099d5d
...@@ -69,14 +69,12 @@ export default { ...@@ -69,14 +69,12 @@ export default {
data() { data() {
return { return {
currentPage: 1, currentPage: 1,
pageSize: 10,
}; };
}, },
created() { created() {
//console.log(this.$scopedSlots); //console.log(this.$scopedSlots);
}, },
mounted() { mounted() {
console.log(this.$scopedSlots);
}, },
methods: { methods: {
/** /**
...@@ -96,6 +94,7 @@ export default { ...@@ -96,6 +94,7 @@ export default {
// 重置 // 重置
rest() { rest() {
this.currentPage = 1; this.currentPage = 1;
this.pageSize = 10
}, },
}, },
}; };
......
...@@ -182,7 +182,8 @@ export default { ...@@ -182,7 +182,8 @@ export default {
// 获取列表 // 获取列表
getList(options) { getList(options) {
let oParams = this.getParams(); let oParams = this.getParams();
oParams.pageSize = options ? options.pageSize || 10 : 10; console.log(this.$refs.glsxTable.pageSize)
oParams.pageSize = this.$refs.glsxTable.pageSize;
oParams.pageNumber = options ? options.pageNumber || 1 : 1; oParams.pageNumber = options ? options.pageNumber || 1 : 1;
this.loading = true this.loading = true
DRIVE_DETAIL_SEARCH(oParams).then((res) => { DRIVE_DETAIL_SEARCH(oParams).then((res) => {
......
...@@ -163,7 +163,7 @@ export default { ...@@ -163,7 +163,7 @@ export default {
// 获取列表 // 获取列表
getList(options) { getList(options) {
let oParams = this.getParams(); let oParams = this.getParams();
oParams.pageSize = options ? options.pageSize || 10 : 10; oParams.pageSize = this.$refs.glsxTable.pageSize;
oParams.pageNumber = options ? options.pageNumber || 1 : 1; oParams.pageNumber = options ? options.pageNumber || 1 : 1;
this.loading = true; this.loading = true;
GETMILEAGESTATISTICS(oParams) GETMILEAGESTATISTICS(oParams)
......
...@@ -193,7 +193,7 @@ export default { ...@@ -193,7 +193,7 @@ export default {
// 获取列表 // 获取列表
getList(options) { getList(options) {
let oParams = this.getParams(); let oParams = this.getParams();
oParams.pageSize = options ? options.pageSize || 10 : 10; oParams.pageSize = this.$refs.glsxTable.pageSize;
oParams.pageNumber = options ? options.pageNumber || 1 : 1; oParams.pageNumber = options ? options.pageNumber || 1 : 1;
MILEAGE_GETDAILYSEARCH(oParams).then((res) => { MILEAGE_GETDAILYSEARCH(oParams).then((res) => {
let { data } = res; let { data } = res;
......
...@@ -132,7 +132,7 @@ export default { ...@@ -132,7 +132,7 @@ export default {
// 获取列表 // 获取列表
getList(options) { getList(options) {
let oParams = this.getParams(); let oParams = this.getParams();
oParams.pageSize = options ? options.pageSize || 10 : 10; oParams.pageSize = this.$refs.glsxTable.pageSize;
oParams.pageNumber = options ? options.pageNumber || 1 : 1; oParams.pageNumber = options ? options.pageNumber || 1 : 1;
OIL_STATISTICS_SEARCH(oParams).then((res) => { OIL_STATISTICS_SEARCH(oParams).then((res) => {
let { data } = res; let { data } = res;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!