Lou
2023-12-26 c65169cebf56657dbec38088c870f0084ca08321
subPackage/task/index.vue
@@ -129,9 +129,9 @@
         <view class="nav-item flex j-c-s-b a-i-c" @click="navTo(i.path)"    v-for="i in securityList">
            <text class="f-28">{{i.name}}</text>
            <view class="flex">
               <block v-if="false">
               <block v-if="bailCount > 0">
                  <text class="f-28 c-99">待处理</text>
                  <view class="dot bgc-main">{{countInfo.comprehensiveTask}}</view>
                  <view class="dot bgc-main">{{bailCount}}</view>
               </block>
               <u-icon name="arrow-right" color="#999"></u-icon>
            </view>
@@ -167,7 +167,8 @@
            repairsCount: 0,
            countInfo: {},
            securityList:[],
            comprehensive:[]
            comprehensive:[],
            bailCount:0
         }
      },
@@ -176,7 +177,7 @@
       },
      onShow() {
         this.getCount();
         this.getRepairsCount();
         // this.getRepairsCount();
      },
      methods: {
@@ -196,22 +197,25 @@
               }
            }
         },
         getCount() {
            getCountTypeNumber().then(res => {
               if (res.code == 200) {
                  let data = res.data;
                  this.countInfo = res.data;
                  for(let i of this.comprehensive){
                     if(i.name == "住户审核"){
                        i.count = res.data.zhufang;
                     }
                     if(i.name == "租房管理"){
                        i.count = res.data.chuzhu;
                     if(i.name == "场所审核"){
                        i.count = data.cssh;
                     }else if(i.name == "报事报修"){
                        i.count = data.bsbx;
                     }else if(i.name == "住户审核"){
                        i.count = data.zhsh
                     }else if (i.name.trim() == "标签报事"){
                        i.count = data.bqsj
                     }else if (i.name == "租房管理"){
                        i.count = data.czsh
                     }
                  }
                  this.bailCount = data.qbhs
               }
            })
         },