riku
2024-11-13 48145f787eda81815f653ad21161a60e89b6a303
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
<import src="/template/nodata.wxml"></import>
<wxs src="../time.wxs" module="_" />
 
<view class="page">
  <view class="banner-bg"></view>
  <template wx:if="{{loading}}" is="nodataPage"></template>
  <block wx:else>
    <view wx:if="{{scene}}" class="page__hd">
      <view class="title">{{scene.name}}</view>
      <view class="sub-title"
        >{{'[' + scene.type + '] ' + scene.districtname + scene.location}}</view
      >
    </view>
    <view class="page__bd">
      <view class="card-subtask">
        <view
          >{{_.formatYM(startTime) + '至' + _.formatYM(endTime) +
          '问题统计'}}</view
        >
        <template is="nodataPage"></template>
      </view>
      <view class="title">
        <image src="/res/icons/ass_1.png" alt="监管信息" mode="aspectFit" />
        监管信息
      </view>
      <block wx:if="{{subtasks.length > 0}}">
        <block wx:for="{{subtasks}}" wx:key="index">
          <view class="sub-title">{{_.formatYM(item.stPlanTime)}}</view>
          <view class="card-subtask">
            <view
              class="flex-h"
              style="justify-content: space-between; align-items: flex-start"
            >
              <image
                style="width: 80px; height: 80px"
                src="/res/icons/ic_supervised.png"
                mode="aspectFit"
              />
              <view
                class="flex-v"
                style="flex: 1; height: 80px; justify-content: space-between"
              >
                <view class="flex-h">
                  <view class="text-1">{{_.formatYMD(item.stPlanTime)}}</view>
                  <view class="text-2">{{item.stStatus}}</view>
                </view>
 
                <view
                  class="flex-h"
                  style="align-items: center; margin-top: 4px"
                >
                  <view class="flex-h" style="flex: 0.6">
                    <!-- <view>问题数:{{item.proNum}}</view> -->
                    <view class="text-2">问题:{{item.proCheckedNum}}个</view>
                    <view class="text-2">整改:{{item.changeNum}}个</view>
                    <!-- <view>审核:{{item.changeCheckedNum}}</view> -->
                  </view>
                  <button
                    bindtap="gotoProblems"
                    disabled="{{item.stStatus != '已结束'}}"
                    data-index="{{index}}"
                  >
                    去整改
                  </button>
                </view>
              </view>
            </view>
          </view>
        </block>
        <view class="load-more">—— 最多展示近三个月的情况 ——</view>
      </block>
      <template wx:else is="nodataPage"></template>
    </view>
  </block>
  <view class="page__ft"></view>
</view>