riku
7 小时以前 b09c7e7aefd41a62326ea56460092aa0db54c083
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<t-loading
  wx:if="{{subTaskLoading}}"
  theme="circular"
  size="40rpx"
  text="加载中..."
  loading
  t-class="sti-loading"
>
</t-loading>
<t-empty
  wx:if="{{!subTaskLoading && subtaskList.length == 0}}"
  t-class-image="t-empty__image"
  image="/res/nodata.png"
  description="无巡查任务"
/>
<block wx:else>
  <view
    class="wrapper m-t-4"
    wx:for="{{subtaskList}}"
    wx:for-index="index"
    wx:key="index"
    data-index="{{index}}"
    bind:tap="handleItemClick"
  >
    <view class="m-t-4" style="display: flex; justify-content: space-between">
      <view style="width: 100%">
        <view class="text-title">
          <t-tag
            size="small"
            theme="{{item.statusType.type}}"
            variant="light-outline"
            class="m-r-4 m-b-4"
          >
            <view style="display: flex; align-items: center; gap: 4px">
              <t-icon size="16" name="{{item.statusType.icon}}"></t-icon>
              <text>{{item.status}}</text>
            </view>
          </t-tag>
          {{item.name}}
        </view>
        <view class="text-info">
          <view class="text-label">
            <t-icon class="m-r-4" size="16" name="location"></t-icon>
            <text>地址:</text>
          </view>
          {{item.scenseaddress}}
        </view>
        <view class="text-info">
          <view class="text-label">
            <t-icon class="m-r-4" size="16" name="alarm"></t-icon>
            <text>时间:</text>
          </view>
          {{item.startTime}}至{{item.endTime}}
        </view>
        <view class="text-info">
          <view class="text-label">
            <t-icon class="m-r-4" size="16" name="user"></t-icon>
            <text>人员:</text>
          </view>
          {{item.executorrealtimes}}
        </view>
        <view
          style="display: flex; justify-content: space-between; align-items: center"
          class="m-t-4"
        >
          <view style="display: flex; gap: 8px; align-items: center">
            <t-tag size="small" variant="light-outline" theme="primary"
              >{{item.sceneTypeName}}</t-tag
            >
            <t-tag size="small" variant="light-outline" theme="primary"
              >{{item.type}}</t-tag
            >
          </view>
          <t-icon size="16" name="arrow-right"></t-icon>
        </view>
      </view>
    </view>
  </view>
</block>