linwe
2024-08-08 3c738f4fe2762bba8087e5a22fc0dc06560eab0e
subPackage/task/workLogList.vue
@@ -20,7 +20,7 @@
      </u-sticky>
      <view class="list">
         <view class="list-item bgc-ff mb-20" v-for="(i,k) in list" :key="k">
         <view class="list-item bgc-ff mb-20" v-for="(i,k) in list" :key="k" @click="navTo(i.id,i.status)">
            <view class="item-title flex a-i-c j-c-s-b mb-20">
               <text class="f-32 fw">{{i.name}}</text>
               <u-tag v-if="i.status == 1" text="待处理" type="warning" plain plainFill></u-tag>
@@ -87,6 +87,9 @@
      },
      onLoad(option) {
         if (option.code) {
            this.houseCode = option.code;
         }
         this.getList()
      },
      onReachBottom() {
@@ -125,10 +128,11 @@
               })
            })
            let params = {
               page: this.currentPage,
               current: this.currentPage,
               size: 20,
               status: this.currentStatus,
               frequency: this.frequency
               frequency: this.frequency,
               roleName: uni.getStorageSync('activeRole').roleName
            }
            if (this.selectDate.length) {
               params.startTime = this.selectDate[0]
@@ -161,16 +165,11 @@
               this.loadingStatus = 'nomore'
            })
         },
         navTo(name, id, type) {
            if (type == 1) {
               this.$u.func.globalNavigator(`bailReportDetail?id=${id}`)
            } else if (type == 2) {
               this.$u.func.globalNavigator(`hotelReportDetail?id=${id}`)
            } else if (type == 3 || type == 4 || type == 5) {
               this.$u.func.globalNavigator(`labelReportDetail?id=${id}`)
            } else if (type == 6) {
               this.$u.func.globalNavigator(`schoolReportDetail?id=${id}`)
         navTo(id, status) {
            if (status == 1) {
               this.$u.func.globalNavigator(`/subPackage/workbench/views/workLog?id=${id}`)
            } else {
               this.$u.func.globalNavigator(`workLogDetail?id=${id}`)
            }
         },