guifei zhu
2024-11-27 6017f46b762663b9393cdae8422e0de1ed3db218
pages/tabBar/device.vue
@@ -19,7 +19,7 @@
                     </view>
                     <view>
                        <text
                           class="text-gray margin-right-lg">{{new Date().toLocaleDateString().replace(/\//g, '-')}}</text>
                           class="text-gray margin-right-lg">{{curDate}}</text>
                     </view>
                  </view>
@@ -72,7 +72,9 @@
                     <view class="title text-cut">{{$lget(item,'name')}}</view>
                     <view class="flex title text-green text-sm">
                        <u-tag v-if="item.online" size="mini" text="在线" type="success" plain plainFill></u-tag>
                        <u-tag v-else class="" size="mini" text="停机" type="error" plain plainFill></u-tag>
                        <u-tag v-else  size="mini" text="离线" type="warning" plain plainFill></u-tag>
                        <u-tag v-if="item.online" class="margin-left-sm" size="mini" text="在线" type="success" plain plainFill></u-tag>
                        <u-tag  v-else class="margin-left-sm" size="mini" text="停机" type="error" plain plainFill></u-tag>
                     </view>
                  </view>
                  <view class="right" style="min-width: 240rpx;">
@@ -128,6 +130,7 @@
            loading: true,
            // v-model绑定的这个变量不要在分页请求结束中自己赋值!!!
            dataList: [],
            curDate:uni.$u.timeFormat(new Date(), 'yyyy-mm-dd'),
         }
      },
      methods: {