ll
liukangdong
2024-10-18 e6acb39a2475e211f2c1decc45a95c868239c25f
h5/pages/staff/task/index.vue
@@ -242,6 +242,7 @@
      },
      headData: {},
      dataList: [],
         total: 0,
      cateList: [
        { name: '访客申请', id: 0 },
        { name: '访客报备', id: 1 },
@@ -258,9 +259,12 @@
  //   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(()=>{
@@ -316,6 +320,7 @@
        }
      }).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)