王飞
2025-03-07 c5e49c10499435802a6551b98772f95660c6f85a
pages/index/main.vue
@@ -5,7 +5,7 @@
      <!-- 顶部自定义导航 -->
      <!-- <view class=""> -->
      <tn-nav-bar fixed>
      <tn-nav-bar fixed :isBack="false">
         <text class="page-title">信息</text>
      </tn-nav-bar>
      <!-- </view> -->
@@ -141,6 +141,7 @@
         }, 400)
      },
      onLoad() {
         console.log(4444444);
         this.lock = false
      },
@@ -152,6 +153,7 @@
            const params = {
               ids: this.checkboxValue1
            }
            if (this.vuex_is_login) {
            moreprocessingWarn(params).then((res) => {
               if (res.code == 0) {
                  this.$refs.refSuccess.showBox({
@@ -173,6 +175,7 @@
                  });
               }
            })
            }
         },
         checkboxChange(n) {
            this.show = true
@@ -195,9 +198,9 @@
               size: data.size,
               company: this.company,
            }
            if (this.vuex_is_login) {
            findwarning(params).then((res) => {
               console.log(res);
               if (res.code == 0) {
                  let list = [];
                  setTimeout(() => {
@@ -213,6 +216,12 @@
                  }, 1500);
               }
            })
            }else{
               callback({
                  list: [],
                  total: 0
               });
            }
         },
         handleSearch(data, callback) {
            const params = {
@@ -221,7 +230,7 @@
               objectid: this.keyword,
               company: this.company,
            }
            if (this.vuex_is_login) {
            findwarning(params).then((res) => {
               this.list = []
               if (res.code == 0) {
@@ -239,14 +248,17 @@
                  }, 1500);
               }
            })
            }
         },
         // 模拟请求数据刷新
         handleRefresh(data, callback) {
            const params = {
               current: data.page,
               size: data.size,
               objectid: data.objectid,
               company: this.company,
            }
            if (this.vuex_is_login) {
            findwarning(params).then((res) => {
               if (res.code == 0) {
                  let list = [];
@@ -264,9 +276,9 @@
                  }, 1500);
               }
            })
            }
         },
         itemClick(item, index) {
            console.log('点击了', item);
            this.lock = true
            this.warlist = item
            this.warnindex = index