zhuguifei
2025-09-02 9dfbc038667839631578c12ff748534e5939bc82
pages/tabBar/warning.vue
@@ -4,7 +4,7 @@
         <!-- 需要固定在顶部不滚动的view放在slot="top"的view中,如果需要跟着滚动,则不要设置slot="top" -->
         <template #top>
            <cu-custom bgColor="bg-gradual-blue" :isBack="false" :isRight="true" @rightclick="rclick">
               <block slot="content">报警</block>
               <block slot="content">报警统计</block>
            </cu-custom>
@@ -33,6 +33,7 @@
                  </view>
               </view>
               <view class="flex flex-direction padding-xs">
                  <view class="flex">
                     <view class="flex-sub flex flex-direction">
@@ -114,23 +115,23 @@
         </view>
         <!-- 如果希望其他view跟着页面滚动,可以放在z-paging标签内 -->
         <real-warning ref="realWarining" v-if="tabCurrent === 0" @handleData="realHandleData"></real-warning>
         <his-warning ref="hisWarining" v-else @handleData="hisHandleData"></his-warning>
        <!-- <real-warning ref="realWarining" v-if="tabCurrent === 0" @handleData="realHandleData"></real-warning>  -->
         <!-- <his-warning ref="hisWarining" v-if="tabCurrent === 0" @handleData="hisHandleData"></his-warning> -->
           <view style="z-index: 1;">
            <his-warning ref="hisWarining" v-if="tabCurrent === 0" @handleData="hisHandleData"></his-warning>
         </view>
      </z-paging>
   </view>
</template>
<script>
   import dropdownMenu from '@/components/drop-down-menu/index.vue'
   import realWarning from './components/realWarning.vue'
   import hisWarning from './components/hisWarning.vue'
   import dayjs from 'dayjs'
   export default {
      components: {
         dropdownMenu,
         realWarning,
         hisWarning
      },
      data() {
@@ -139,18 +140,20 @@
            // v-model绑定的这个变量不要在分页请求结束中自己赋值!!!
            dataList: [],
            curDate: dayjs().format('YYYY-MM-DD'),
            tabList: [{
               name: '实时报警',
               // badge: {
               //    count: 6
               // }
            }, {
            tabList: [
            //    {
            //    name: '实时报警',
            //    // badge: {
            //    //    count: 6
            //    // }
            // },
            {
               name: '报警统计',
            }],
            equList: [{
            equList: [/* {
                  code: 1,
                  name: '1#干燥机'
               },
               }, */
               {
                  code: 2,
                  name: '2#干燥机'