|
|
|
<!-- package/bindTroubleshooting/index.wxml -->
|
|
|
|
<view class="page">
|
|
|
|
<!-- 顶部tab切换 -->
|
|
|
|
<view class='swiper-tab'>
|
|
|
|
<view class="swiper-tab-item" data-current="0" bindtap="clickTab" style="{{currentTab=='0' ? 'color:#1979ff' : 'color:black'}}">
|
|
|
|
待办事项
|
|
|
|
</view>
|
|
|
|
<view class="swiper-tab-item" data-current="1" bindtap="clickTab" style="{{currentTab=='1' ? 'color:#1979ff' : 'color:black'}}">
|
|
|
|
已办事项
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view>
|
|
|
|
<van-dropdown-menu>
|
|
|
|
<van-dropdown-item title="{{ '结构物' }}" bind:close="search">
|
|
|
|
<view style="max-height:60%">
|
|
|
|
<van-checkbox-group value="{{ structResult }}" bind:change="onStructChange">
|
|
|
|
<van-cell-group>
|
|
|
|
<van-cell wx:for="{{ structList }}" wx:key="index" title="复选框 {{ item }}" value-class="value-class" clickable data-index="{{ index }}" bind:click="structToggle">
|
|
|
|
<van-checkbox catch:tap="noop" class="checkboxes-struct-{{ index }}" name="{{ item }}" />
|
|
|
|
</van-cell>
|
|
|
|
</van-cell-group>
|
|
|
|
</van-checkbox-group>
|
|
|
|
</view>
|
|
|
|
</van-dropdown-item>
|
|
|
|
<van-dropdown-item title="{{ '点位' }}" bind:close="search">
|
|
|
|
<view style="max-height:60%">
|
|
|
|
<van-checkbox-group value="{{ pointResult }}" bind:change="onPointChange">
|
|
|
|
<van-cell-group>
|
|
|
|
<van-cell wx:for="{{ pointList }}" wx:key="index" title="复选框 {{ item }}" value-class="value-class" clickable data-index="{{ index }}" bind:click="pointToggle">
|
|
|
|
<van-checkbox catch:tap="noop" class="checkboxes-point-{{ index }}" name="{{ item }}" />
|
|
|
|
</van-cell>
|
|
|
|
</van-cell-group>
|
|
|
|
</van-checkbox-group>
|
|
|
|
</view>
|
|
|
|
</van-dropdown-item>
|
|
|
|
<van-dropdown-item title="{{ '时间' }}" bind:close="search">
|
|
|
|
<view style="max-height:60%; display:flex" class="time-option">
|
|
|
|
<van-datetime-picker type="datetime" show-toolbar="{{false}}" type="date" value="{{ startTime }}" bind:input="onStartTimeChange" />
|
|
|
|
<view style="display:flex; align-items:center">至</view>
|
|
|
|
<van-datetime-picker type="datetime" show-toolbar="{{false}}" type="date" value="{{ endTime }}" bind:input="onEndTimeChange" />
|
|
|
|
</view>
|
|
|
|
</van-dropdown-item>
|
|
|
|
</van-dropdown-menu>
|
|
|
|
</view>
|
|
|
|
<view style="height:100vh - 98rpx; padding-top:24rpx; overflow:auto">
|
|
|
|
<van-cell-group inset class="mission-card">
|
|
|
|
<view wx:for="{{dataList}}">
|
|
|
|
<view class="mission-card-title">
|
|
|
|
<span>{{item.PatrolRecord.points.project.name}}</span>
|
|
|
|
<van-button type="info" round bind:tap="toShootingForm" data-shootingid="{{item.id}}">
|
|
|
|
{{
|
|
|
|
item.state == 1 ?'制定计划':
|
|
|
|
item.state == 2 ?'审批计划':
|
|
|
|
item.state == 3 ?'修改计划':
|
|
|
|
item.state == 4 ?'维修处理':
|
|
|
|
item.state == 5 ?'质检验收':
|
|
|
|
item.state == 6 ?'驳回重修':'查看详情'
|
|
|
|
}}
|
|
|
|
</van-button>
|
|
|
|
</view>
|
|
|
|
<van-field value="{{item.PatrolRecord.points.itemData.name}}" label="点位名称" readonly border="{{ false }}" />
|
|
|
|
<van-field value="{{item.PatrolRecord.points.itemData.name}}" label="异常等级" readonly border="{{ false }}" />
|
|
|
|
<van-field value="{{ item.createTime}}" label="任务下发时间" readonly border="{{ false }}" />
|
|
|
|
</view>
|
|
|
|
</van-cell-group>
|
|
|
|
<!-- 暂无数据 -->
|
|
|
|
<view wx:if="{{!dataList.length}}">
|
|
|
|
<image class="noData" src="../../images/noData.png"></image>
|
|
|
|
<view class="noTxt">暂无数据~</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|