|
|
|
<!--package/riskManagement/riskCalendar/riskCalendar.wxml-->
|
|
|
|
<view class="risk-calendar">
|
|
|
|
<view class="card">
|
|
|
|
<view class="card-top flex flex-between">
|
|
|
|
<view class="card-left flex">
|
|
|
|
<image class="card-icon" src="/images/calendar_icon.png" />
|
|
|
|
<view class="title">巡检日历</view>
|
|
|
|
</view>
|
|
|
|
<view class="card-right">{{curDate}}</view>
|
|
|
|
<image src="/images/calendar_card_bg.png" class="card-bg" />
|
|
|
|
</view>
|
|
|
|
<view class="calendar-box">
|
|
|
|
<van-calendar
|
|
|
|
show-mark="{{ false }}"
|
|
|
|
show-title="{{ false }}"
|
|
|
|
show-subtitle="{{ false }}"
|
|
|
|
poppable="{{ false }}"
|
|
|
|
show-confirm="{{ false }}"
|
|
|
|
min-date="{{ minDate }}"
|
|
|
|
max-date="{{ maxDate }}"
|
|
|
|
formatter="{{ formatter }}"
|
|
|
|
bind:select="onDateSelect"
|
|
|
|
row-height="48"
|
|
|
|
color="#1684FF"
|
|
|
|
class="calendar"
|
|
|
|
/>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="title-box flex flex-between ">
|
|
|
|
<view class="title">异常等级</view>
|
|
|
|
<view class="flex" bind:tap="showPopup">
|
|
|
|
<view class="picker-text">{{curLevel}}</view>
|
|
|
|
<image class="arrow" src="/images/arrow_right_blue.svg" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<van-popup show="{{ show }}" round position="bottom" close-on-click-overlay="{{false}}">
|
|
|
|
<van-picker
|
|
|
|
show-toolbar
|
|
|
|
columns="{{ level }}"
|
|
|
|
bind:cancel="onCancel"
|
|
|
|
bind:confirm="onConfirm"
|
|
|
|
/>
|
|
|
|
</van-popup>
|
|
|
|
|
|
|
|
<view wx:for="{{showList}}" 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">{{item.points.project.name}}</view>
|
|
|
|
</view>
|
|
|
|
<view class="card-right-btn flex" data-item="{{item}}" bindtap="toDetail">查看详情</view>
|
|
|
|
<image src="/images/right_card_bg.png" class="card-bg" />
|
|
|
|
</view>
|
|
|
|
<view class="card-content">
|
|
|
|
<view class="row flex flex-between">
|
|
|
|
<view class="content-left">本次巡检日期</view>
|
|
|
|
<view class="content-right">{{item.inspectionTime}}</view>
|
|
|
|
</view>
|
|
|
|
<view class="row flex flex-between">
|
|
|
|
<view class="content-left">点位</view>
|
|
|
|
<view class="content-right">{{item.points.itemData.name}}</view>
|
|
|
|
</view>
|
|
|
|
<view class="row flex flex-between">
|
|
|
|
<view class="content-left">巡检人</view>
|
|
|
|
<view class="content-right">{{item.points.user.name}}</view>
|
|
|
|
</view>
|
|
|
|
<view class="row flex flex-between">
|
|
|
|
<view class="content-left">巡检结果</view>
|
|
|
|
<view class="content-right" style="color: red;">异常</view>
|
|
|
|
</view>
|
|
|
|
<view class="row flex flex-between">
|
|
|
|
<view class="content-left">异常等级</view>
|
|
|
|
<view class="content-right" style="color: red;">{{item.level}}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|