liukangdong
2024-12-19 96a2b1c68aa545abbf8245b0b2859b342fa6e63d
h5/pages/staff/task/index.vue
@@ -70,7 +70,7 @@
      >
        <view class="box_list_item_head">
          <view class="df_ac">
            <text v-if="item.readed == 0" class="readed"></text>
            <text v-if="item.readed == 0 && search.queryType === 3" class="readed"></text>
            <text class="tt">{{ item.title }}</text>
          </view>
          <view class="info" :class="{ loading: search.queryType === 0 }">{{ item.info }}</view>
@@ -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(()=>{
@@ -289,6 +293,9 @@
    },
    modalReset() {
      this.modelParam = {}
      this.search = {
            queryType: 0
         }
      this.pagination.page = 0
      this.dataList = []
      this.showFilter = false
@@ -315,12 +322,16 @@
          ...search
        }
      }).then(res => {
            if(res.data && res.data.records){
               res.data.records.forEach(i => {
                 if (i.param1) {
                   i.param1 = JSON.parse(i.param1)
                 }
               })
            }
        this.dataList = [...this.dataList, ...res.data.records]
        this.dataList.forEach(i => {
          if (i.param1) {
            i.param1 = JSON.parse(i.param1)
          }
        })
            this.total = res.data.total
      })
    },
    getHeadList() {
@@ -349,7 +360,7 @@
      }
      if (objType === 2) {
        uni.navigateTo({
          url: `/pages/staff/vehicle/sendACarDetail?id=${objId}&appr=1&info=${info}`
          url: `/pages/staff/vehicle/sendACarDetail?id=${objId}&info=${info}`
        })
      } else if (objType === 1) {
        uni.navigateTo({
@@ -530,6 +541,7 @@
              font-size: 26rpx;
              font-weight: 400;
               color: #999999;
               width: 120rpx;
            }
        .loading {
          color: $uni-color-primary;