tanghaolin
2024-07-04 cc461d250428674b40f5916412ffa514be421c38
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<view style="background: #eeeeee;">
  <!-- 顶部搜索、筛选部分 -->
  <view class="cu-bar search bg-white" style="justify-content: space-evenly;height:120rpx;width:100%;">
    <!-- 筛选开始时间 -->
    <view class="flex" style="width: 500rpx;justify-content: space-evenly;align-items: center;font-size: 30rpx;">
      <view style="height: 100%; display: flex;align-items: center;justify-content: center;">从</view>
      <view class="action" style="margin:unset">
        <picker style="margin-right: 10rpx;" mode="date" end="{{nowDay}}" value="{{startDay}}" fields="day"
          bindchange="tapChangeStartTime">
          <view class="weui-input view-center day" style="color: #16b5cb;">{{startDay}}</view>
        </picker>
      </view>
      <view style="height: 100%; display: flex;align-items: center;justify-content: center;">到</view>
      <!-- 筛选结束时间 -->
      <view class="action" style="margin:unset">
        <picker style="margin-left: 10rpx;" mode="date" end="{{nowDay}}" value="{{endDay}}" fields="day"
          bindchange="tapChangeEndTime">
          <view class="weui-input view-center day" style="color: #16b5cb;">{{endDay}}</view>
        </picker>
      </view>
    </view>
    <!-- 刷新 -->
    <view class="icon_style {{isReFreshRotate?'icon_rotate':''}}" bindtap="tapReFreshPointList">
      <text class="cuIcon-refresh"></text>
    </view>
  </view>
  <scroll-view scroll-y="true" style="width:100%;height:calc(100vh - 100rpx);margin-top: 2rpx;"
    lower-threshold="{{20}}">
    <!-- 筛选时间段 -->
    <view style="font-size:32rpx;height:80rpx;">
      <picker style="margin-right: 10rpx;" mode="selector" value="{{timeSlotIndex}}" range="{{timeSlotList}}"
        bindchange="tapSelectTimeSlot">
        <view class="weui-input view-center day"
          style="margin-left: 40rpx;font-size:24rpx;{{isShowTimeSlotColor?'color:#16b5cb;':'color:#aaaaaa;'}}">
          {{timeSlotValue}}</view>
      </picker>
    </view>
    <view class="cu-list menu-avatar">
      <view class="cu-item {{modalName=='move-box-'+ index?'move-cur':''}}" wx:for="{{PageListByPoint}}" wx:key='index'
        data-target="move-box-{{index}}" style="border-bottom: 1rpx solid #f4f4f4;z-index:100;">
        <!-- 图标 -->
        <view class="cu-avatar round lg" style="background-color: #fff;width:130rpx;height:130rpx;left:22rpx;">
          <text class="iconfont icon-jilu" style="font-size: 80rpx;color: #16b5cb;"></text>
        </view>
        <view class="content">
          <view>
            <text class="text-cut">巡检日期:</text>
            <view class="text-grey sm">{{item.Time}}</view>
          </view>
          <view class="text-gray text-sm flex">
            <text class="text-cut">巡检值:{{item.Value==null?'暂无':item.Value}}</text>
          </view>
          <view class="text-gray text-sm flex">
            <text class="text-cut">巡检状态:{{item.Status }}</text>
          </view>
        </view>
      </view>
    </view>
    <view wx:if="{{PageListByPoint.length == 0 && isLoadingPointList}}" class="text-grey tips">无巡检记录</view>
    <view class="text-grey tips" style="text-align:center"
      wx:if="{{PageListByPoint.length != 0 && isLoadingPointList}}">
      ----------已经全部加载----------</view>
  </scroll-view>
</view>