<!--pages/t-j/y-j/index/index.wxml-->
<title-bar title="应急统计"></title-bar>
<scroll-view scroll-y style="height: calc(100vh - {{topBarH}}px);" refresher-enabled bindrefresherrefresh="refresh" bindscrolltolower="getList" refresher-triggered="{{freshIng}}">
  <view class="content">
    <view class="filter">
      <picker mode="date" value="{{dateFilter}}" bindchange="bindDateChange">
        <view class="picker">
          开始时间: {{dateFilter}}
        </view>
      </picker>
      <view class="line"></view>
      <picker mode="date" value="{{dateFilter}}" bindchange="bindDateChange">
        <view class="picker">
          结束时间: {{dateFilter}}
        </view>
      </picker>
    </view>
    <view class="table">
      <view catchtap="changeItem" data-item="{{item}}" data-index="{{index}}" class="tab-item {{currentIndex==index?'tab-item-checked':''}}" wx:for="{{tab}}" wx:key="{{item.label}}">
        <text class="lab">{{item.label}}</text>
        <text class="val">{{item.val}}</text>
        <text class="flex">条记录</text>
        <image wx:if="{{currentIndex==index}}" class="arrow" src="/images/icon-checked.png" />
      </view>
    </view>
    <!-- 图表 -->
    <view class="item">
      <ec-canvas id="d-chart" canvas-id="d-chart" ec="{{ ec }}" class="charts flex"></ec-canvas>
    </view>
  </view>
</scroll-view>