| | |
| | | }, |
| | | headData: {}, |
| | | dataList: [], |
| | | total: 0, |
| | | cateList: [ |
| | | { name: '访客申请', id: 0 }, |
| | | { name: '访客报备', id: 1 }, |
| | |
| | | // this.getList() |
| | | // }, |
| | | onReachBottom() { |
| | | // this.pagination.page = 0 |
| | | // this.dataList = [] |
| | | this.getList() |
| | | const { total, dataList} = this |
| | | if(dataList.length < total){ |
| | | this.getList() |
| | | } else { |
| | | this.showToast('暂无更多数据') |
| | | } |
| | | }, |
| | | onBackPress(options) { |
| | | setTimeout(()=>{ |
| | |
| | | } |
| | | }).then(res => { |
| | | this.dataList = [...this.dataList, ...res.data.records] |
| | | this.total = res.data.total |
| | | this.dataList.forEach(i => { |
| | | if (i.param1) { |
| | | i.param1 = JSON.parse(i.param1) |