王飞
2025-03-07 c5e49c10499435802a6551b98772f95660c6f85a
pages/index/tag.vue
@@ -2,7 +2,7 @@
   <view class="template-job tn-safe-area-inset-bottom tn-skeleton">
      <!-- 顶部自定义导航 -->
      <tn-nav-bar fixed style="position: absolute;z-index: 999999999;">
      <tn-nav-bar fixed :isBack="false" style="position: absolute;z-index: 999999999;">
         <text class="title_linespan" @click="goAchor">基站</text>
         <text v-if="isAchor==false" class="title_linespan"
@@ -149,7 +149,7 @@
               size: data.size,
               company: this.company,
            }
            if (this.vuex_is_login) {
            findTag(params).then((res) => {
               this.online = res.online
               this.offline = res.offline
@@ -168,15 +168,21 @@
                  }, 1500);
               }
            })
            }else{
               callback({
                  list: [],
                  total: 0
               });
            }
         },
         handleSearch(data, callback) {
            const params = {
               current: 1,
               size: 10,
               objectid: this.keyword,
               company: this.company,
            }
            if (this.vuex_is_login) {
            findTag(params).then((res) => {
               this.online = res.online
               this.offline = res.offline
@@ -196,15 +202,18 @@
                  }, 1500);
               }
            })
            }
         },
         // 模拟请求数据刷新
         handleRefresh(data, callback) {
            const params = {
               current: data.page,
               size: data.size,
               objectid: data.objectid,
               company: this.company,
            }
            findTag(data).then((res) => {
            if (this.vuex_is_login) {
               findTag(params).then((res) => {
               this.online = res.online
               this.offline = res.offline
               if (res.code == 0) {
@@ -223,6 +232,7 @@
                  }, 1500);
               }
            })
            }
         },
      }
   }