| | |
| | | this.page.current = 1 |
| | | await this.getList() |
| | | }, |
| | | async getList() { |
| | | async getList(type='get') { |
| | | if (this.listApi) { |
| | | this.$message.showLoading() |
| | | const { |
| | | data |
| | | } = await this.$http.request('get', this.listApi, { |
| | | } = await this.$http.request(type, this.listApi, { |
| | | params: { |
| | | ...this.query, |
| | | ...this.page |
| | | }, |
| | | data:{ |
| | | ...this.query, |
| | | ...this.page |
| | | } |
| | |
| | | } |
| | | |
| | | }, |
| | | async getMore() { |
| | | async getMore(type='get') { |
| | | if (this.page.total > this.page.current * this.page.size) { |
| | | this.page.current += 1 |
| | | await this.getList() |
| | | await this.getList(type) |
| | | } |
| | | }, |
| | | backHome() { |