You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
4.0 KiB
88 lines
4.0 KiB
<!--package/subSystem/dayPatrolInfo/dayPatrolInfo.wxml-->
|
|
<view class="day-patrol-info">
|
|
<view class="card" style="margin-bottom: 10px">
|
|
<view class="card-top flex flex-between">
|
|
<view class="card-left flex">
|
|
<image class="card-icon" src="/images/question_icon.png" />
|
|
<view class="title">今日问题分布</view>
|
|
</view>
|
|
<image src="/images/question_card_bg.png" class="card-bg" />
|
|
</view>
|
|
<view wx:for="{{dayIssues}}" wx:key="*this" class="problem-box flex">
|
|
<view class="problem-title text---">{{item.pointName}}</view>
|
|
<progress style="width: 70%;" percent="{{item.percent}}" activeColor="{{item.color}}" stroke-width="8" show-info font-size="14" border-radius="4" />
|
|
</view>
|
|
<!-- 暂无数据 -->
|
|
<view wx:if="{{!dayIssues.length}}">
|
|
<image class="noData" src="../../../images/noData.svg"></image>
|
|
<view class="noTxt">暂无数据</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="card" style="margin-bottom: 10px">
|
|
<view class="card-top flex flex-between">
|
|
<view class="card-left flex">
|
|
<image class="card-icon" src="/images/hourglass_icon.png" />
|
|
<view class="title">今日待检分布</view>
|
|
</view>
|
|
<view class="card-right">总次数:{{needInspectCount}}次</view>
|
|
<image src="/images/hourglass_card_bg.png" class="card-bg" />
|
|
</view>
|
|
|
|
<!-- 有数据时显示图表 -->
|
|
<!-- <view wx:if="{{needInspectCount}}">
|
|
<view class="pie-chart-box">
|
|
<ec-canvas id="need-chart-dom" canvas-id="need-chart" ec="{{ needEc }}"></ec-canvas>
|
|
</view>
|
|
</view> -->
|
|
|
|
<!-- 没有数据时显示图表但不显示内容 -->
|
|
<!-- <view wx:else>
|
|
<view class="pie-chart-box" hidden="{{!needInspectCount}}">
|
|
<ec-canvas id="need-chart-dom" canvas-id="need-chart" ec="{{ needEc }}"></ec-canvas>
|
|
</view>
|
|
<image class="noData" src="../../../images/noData.svg"></image>
|
|
<view class="noTxt">暂无数据</view>
|
|
</view> -->
|
|
<view class="pie-chart-box" wx:if="{{needInspectCount}}">
|
|
<ec-canvas id="need-chart-dom" canvas-id="need-chart" ec="{{ needEc }}"></ec-canvas>
|
|
</view>
|
|
<view wx:else>
|
|
<image class="noData" src="../../../images/noData.svg"></image>
|
|
<view class="noTxt">暂无数据</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="card" style="margin-bottom: 10px">
|
|
<view class="card-top flex flex-between">
|
|
<view class="card-left flex">
|
|
<image class="card-icon" src="/images/right_icon.png" />
|
|
<view class="title">今日已检分布</view>
|
|
</view>
|
|
<view class="card-right">总次数:{{inspectedCount}}次</view>
|
|
<image src="/images/right_card_bg.png" class="card-bg" />
|
|
</view>
|
|
<!-- 有数据时显示图表 -->
|
|
<!-- <view wx:if="{{inspectedCount}}">
|
|
<view class="pie-chart-box">
|
|
<ec-canvas id="already-chart-dom" canvas-id="already-chart" ec="{{ alreadyEc }}"></ec-canvas>
|
|
</view>
|
|
</view> -->
|
|
|
|
<!-- 没有数据时显示图表但不显示内容 -->
|
|
<!-- <view wx:else>
|
|
<view class="pie-chart-box" hidden="{{!inspectedCount}}">
|
|
<ec-canvas id="already-chart-dom" canvas-id="already-chart" ec="{{ alreadyEc }}"></ec-canvas>
|
|
</view>
|
|
<image class="noData" src="../../../images/noData.svg"></image>
|
|
<view class="noTxt">暂无数据</view>
|
|
</view> -->
|
|
<view class="pie-chart-box" wx:if="{{inspectedCount}}">
|
|
<ec-canvas id="already-chart-dom" canvas-id="already-chart" ec="{{ alreadyEc }}"></ec-canvas>
|
|
</view>
|
|
<view wx:else>
|
|
<image class="noData" src="../../../images/noData.svg"></image>
|
|
<view class="noTxt">暂无数据</view>
|
|
</view>
|
|
</view>
|
|
</view>
|