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.
89 lines
4.5 KiB
89 lines
4.5 KiB
<!-- package/polling/polling.wxml -->
|
|
<view class="page">
|
|
<van-tabs active="{{ currentTab }}" bind:change="onChange" color="#006BE3">
|
|
<van-tab title="待巡检">
|
|
<view class="wait-patrol">
|
|
<view class="contentBox">
|
|
<block wx:for="{{dataList}}" wx:key='*this'>
|
|
<view class="listBox">
|
|
<view style="overflow: hidden;">
|
|
<view class="titleBox" style="width: 630rpx; margin: 0 auto;">
|
|
<image class="icon" src="../../images/title_icon.svg"></image>
|
|
<view class="title">{{item.name}}</view>
|
|
</view>
|
|
<view style="width: 630rpx; margin: 0 auto;">
|
|
<text class="text-key">计划时间:</text>
|
|
<text class="text-value">{{item.startTime}}至{{item.endTime}}</text>
|
|
</view>
|
|
<view style="width: 630rpx; margin: 8px auto 0;">
|
|
<text class="text-key">计划时间:</text>
|
|
<text class="text-value">{{item.way}}({{item.frequency}})</text>
|
|
</view>
|
|
<view class="divider"></view>
|
|
<view class="btn" data-item="{{item}}" bindtap="bindStart">开始巡检</view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</view>
|
|
<!-- 暂无数据 -->
|
|
<view hidden="{{hidden}}">
|
|
<image class="noData" src="../../images/noData.svg"></image>
|
|
<view class="noTxt">暂无数据</view>
|
|
</view>
|
|
</view>
|
|
</van-tab>
|
|
<van-tab title="巡检记录">
|
|
<view id="patrol-record">
|
|
<van-dropdown-menu>
|
|
<van-dropdown-item title="{{ '时间' }}" bind:close="bindSearch">
|
|
<view style="max-height:60%; display:flex" class="time-option">
|
|
<van-datetime-picker show-toolbar="{{false}}" type="date" value="{{ startTime }}" bind:input="onStartTimeChange" min-date="{{1640966400000}}"/>
|
|
<view style="display:flex; align-items:center">至</view>
|
|
<van-datetime-picker show-toolbar="{{false}}" type="date" value="{{ endTime }}" bind:input="onEndTimeChange" min-date="{{1640966400000}}"/>
|
|
</view>
|
|
</van-dropdown-item>
|
|
<van-dropdown-item title="{{ '巡检结果' }}" bind:close="bindSearch" bind:change="bindPickerRes" value="{{ ResIndex }}" options="{{ ResList }}" />
|
|
</van-dropdown-menu>
|
|
<view class="contentBox">
|
|
<block wx:for="{{recordDataList}}" wx:key='*this'>
|
|
<view class="listBox">
|
|
<view style="overflow: hidden;">
|
|
<view class="titleBox" style="width: 630rpx; margin: 0 auto;">
|
|
<image class="icon" src="../../images/title_icon.svg"></image>
|
|
<view class="title">{{item.points.project.name}}</view>
|
|
</view>
|
|
<view style="width: 630rpx; margin: 0 auto;">
|
|
<text class="text-key">本次巡检日期:</text>
|
|
<text class="text-value">{{item.inspectionTime}}</text>
|
|
</view>
|
|
<view class="flex-between" style="width: 630rpx; margin: 8px auto 0;">
|
|
<view style="width: 315rpx">
|
|
<text class="text-key">巡检人:</text>
|
|
<text class="text-value">{{item.points.user.name}}</text>
|
|
</view>
|
|
<view style="width: 315rpx">
|
|
<text class="text-key">巡检结果:</text>
|
|
<text class="text-value" style="font-weight: 600; color: {{item.alarm ? '#ff0000d9' : '#006BE3'}}">{{item.alarm ? '异常' : '正常'}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="divider"></view>
|
|
<view class="btn" data-item="{{item}}" bindtap="bindDetail">查看详情</view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</view>
|
|
<!-- 暂无数据 -->
|
|
<view hidden="{{recordHidden}}">
|
|
<image class="noData" src="../../images/noData.svg"></image>
|
|
<view class="noTxt">暂无数据</view>
|
|
</view>
|
|
</view>
|
|
</van-tab>
|
|
<van-tab title='主动上报' >
|
|
<view style="display: flex; flex-direction:column; align-items: center; height: 100vh;">
|
|
<van-button type="info" round bindtap="jumpToReport" style="margin:10vh 0">主动上报</van-button>
|
|
<van-button type="info" round bindtap="jumpToGroundReport">地灾巡检</van-button>
|
|
</view>
|
|
</van-tab>
|
|
</van-tabs>
|
|
</view>
|