Riku
2024-08-13 093afd3be27ea5e9692839845b69bd56e2405518
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<import src="/pages/common/template/template-loading.wxml" />
<wxs src="./util.wxs" module="_" />
 
<view class="page">
  <t-sticky>
    <view class="page-header">
      <view class="filter-wrap">
        <t-time-picker
          color="var(--td-font-white-1)"
          time="{{time}}"
          picker-class="picker-location"
          bind:timePickerChange="onTimePickerConfirm"
        >
        </t-time-picker>
        <location-picker
          location="{{location}}"
          color="var(--td-font-white-1)"
          style-mode="picker"
          picker-class="picker-location"
          bind:onChange="onLocationChange"
        ></location-picker>
      </view>
      <view class="filter-wrap-2">
        <scene-picker
          scene="{{sceneTypeValue}}"
          sceneMode="{{1}}"
          bind:scenePickerChange="onScenePickerConfirm"
        />
      </view>
      <view class="ranking-summary__item-abstract" style="margin-left: var(--td-spacer)">
        问题总计{{statistic.proNum}}个,已整改{{statistic.changeNum}}个,未整改{{statistic.proNum -
        statistic.changeNum}}个,整改率{{statistic.changePer}}
      </view>
      <view class="filter-wrap">
        <sort-btn
          text="问题数"
          custom-class="flex-start "
          icon-color="var(--td-warning-color-4)"
          data-type="pro"
          defaultSort="{{proSort}}"
          bind:sortsChange="onSortChange"
        ></sort-btn>
        <sort-btn
          text="整改率"
          custom-class="flex-start "
          icon-color="var(--td-warning-color-4)"
          data-type="changePer"
          defaultSort="{{changeSort}}"
          bind:sortsChange="onSortChange"
        ></sort-btn>
      </view>
    </view>
  </t-sticky>
  <view class="page-container">
    <template is="pulldown-loading" wx:if="{{pageLoading && summaryList.length != 0}}" />
    <block wx:if="{{summaryList.length > 0}}">
      <view
        class="ranking-summary__item"
        wx:for="{{summaryList}}"
        data-index="{{index}}"
        bind:tap="navToDetail"
      >
        <view style="flex: 1">
          <view class="ranking-summary__item-name">{{item.scene.name}} </view>
          <t-divider />
          <view class="ranking-summary__item-tag__wrap">
            <view class="ranking-summary__item-abstract">地址:{{item.scene.location}} </view>
          </view>
        </view>
        <view class="flex-v">
          <view class="ranking-summary__item-abstract flex-end"
            >整改率:{{_.changePercent(item.proNum, item.changeNum)}}</view
          >
          <view class="ranking-summary__item-tag__wrap">
            <view class="ranking-summary__item-tag">
              <view class="ranking-summary__tag-count"> {{item.proNum}} </view>
              <t-tag
                max-width="{{130}}"
                shape="square"
                size="small"
                theme="default"
                variant="light-outline"
                >问题</t-tag
              >
            </view>
            <view class="ranking-summary__item-tag">
              <view
                class="ranking-summary__tag-count {{_.tagBorderColor(item.proNum, item.changeNum)}}"
              >
                <text>{{item.changeNum}}</text>
                <view></view>
              </view>
              <t-tag
                max-width="{{130}}"
                shape="square"
                size="small"
                theme="default"
                variant="light-outline"
                >整改</t-tag
              >
            </view>
          </view>
          <view class="ranking-summary__nav-icon">
            <t-icon name="chevron-right" size="24rpx" />
          </view>
        </view>
      </view>
    </block>
    <t-empty-page wx:elif="{{!pageLoading}}" description="暂无相关记录" />
    <load-more
      list-is-empty="{{!summaryList.length}}"
      status="{{loadStatus}}"
      bind:retry="_startLoad"
    />
  </view>
  <view class="page-footer"></view>
</view>