| | |
| | | cache_user: state => { |
| | | return state.currentInfo || {} |
| | | }, |
| | | sign: state => { |
| | | return state.sign || {} |
| | | }, |
| | | // currentEnId: state=>{ |
| | | // // console.log('currentEnId',state.currentInfo.enId,state.currentInfo) |
| | | // return state.currentInfo.enId || '' |
| | |
| | | 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() { |