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.
96 lines
3.9 KiB
96 lines
3.9 KiB
<!--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>
|
|
<image src="/images/calendar_card_bg.png" class="card-bg" />
|
|
<view style="z-index: 1;" bindtap="datePickerPopup" class="date">
|
|
<view class="card-right">{{curDate}}
|
|
<van-icon name="arrow-down" style="float:right;position:relative; top:4px" />
|
|
</view>
|
|
</view>
|
|
<van-popup show="{{ datePickerShow }}" position="bottom" custom-style="height: 50%;" bind:close="closeDatePickerPopup">
|
|
<view style="display:flex;justify-content: space-between;padding:24rpx;font-size:larger;border-bottom:1px solid #f5f5f5">
|
|
<!-- <view bindtap="closeDatePickerPopup" data-option='cancel'>取消</view>
|
|
<view style="color:#07c160;" data-option='confirmed' bindtap="closeDatePickerPopup">
|
|
确定
|
|
</view> -->
|
|
</view>
|
|
<van-datetime-picker type="year-month" max-date="{{maxDate}}" min-date="{{ datePickerMin }}" bind:confirm="onDateChange" show-toolbar="{{true}}" />
|
|
</van-popup>
|
|
</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="{{ end }}"
|
|
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}}" wx:key="*this" 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 wx:if="{{!showList.length}}">
|
|
<!-- 暂无数据 -->
|
|
<image class="noData" src="../../../images/noData.svg"></image>
|
|
<view class="noTxt">暂无数据</view>
|
|
</view>
|
|
</view>
|
|
|