|
@@ -61,7 +61,7 @@ var vm = new Vue({
|
|
|
contracted: false,
|
|
|
listInfo: {
|
|
|
value: '',
|
|
|
- pageNum: 0,
|
|
|
+ pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
total: -1,
|
|
|
loading: true,
|
|
@@ -143,7 +143,6 @@ var vm = new Vue({
|
|
|
this.points.usage = r.data.total
|
|
|
this.working = false
|
|
|
this.empty = true
|
|
|
- this.listInfo.pageNum++
|
|
|
if (this.listInfo.pageNum === 1) {
|
|
|
if (r.data.total || r.data.total === 0) {
|
|
|
this.listInfo.total = r.data.total
|
|
@@ -151,6 +150,7 @@ var vm = new Vue({
|
|
|
this.listInfo.finished = true
|
|
|
}
|
|
|
}
|
|
|
+ this.listInfo.pageNum++
|
|
|
|
|
|
if (Array.isArray(r.data.list) && r.data.list.length !== 0) {
|
|
|
this.list = this.list.concat(r.data.list.map(function (v) {
|
|
@@ -251,7 +251,7 @@ var vm = new Vue({
|
|
|
confirmed(val) {
|
|
|
this.years = val.getFullYear()
|
|
|
this.months = val.getMonth() + 1
|
|
|
- this.listInfo.pageNum = 0
|
|
|
+ this.listInfo.pageNum = 1
|
|
|
this.list = []
|
|
|
this.listInfo.total = -1
|
|
|
this.listInfo.finished = false
|