| | |
| | | this.hasNext = true |
| | | this.dataList=[] |
| | | } |
| | | console.log({ |
| | | startTime: this.startDate || this.defaultStartDate, |
| | | endTime: this.endDate || this.defaultEndDate, |
| | | type: this.type, |
| | | optType: this.active === 1?1:(this.active === 2?-1:'') |
| | | }) |
| | | this.$u.api.driverPage({ |
| | | capacity: 10, |
| | | model: { |
| | |
| | | }, |
| | | page: this.currentPage |
| | | }).then(res => { |
| | | console.log(res) |
| | | if (res.code == 200) { |
| | | const records = res.data.records || [] |
| | | console.log(res.data.pageCount) |
| | | this.dataList.push(...records) |
| | | console.log(records) |
| | | console.log(this.dataList) |
| | | this.total = res.data.pageCount |
| | | this.total = res.data.total |
| | | this.currentPage++ |
| | | this.hasNext = this.dataList.length < res.data.pageCount |
| | | this.hasNext = this.dataList.length < res.data.total |
| | | } |
| | | }).catch(err => { |
| | | console.log(err) |