Browse Source

问题处理 权限

master
巴林闲侠 2 years ago
parent
commit
22ddbc7373
  1. 40
      weapp/package/troubleshooting/index.wxml

40
weapp/package/troubleshooting/index.wxml

@ -11,33 +11,34 @@
</view> </view>
<view> <view>
<van-dropdown-menu> <van-dropdown-menu>
<van-dropdown-item title="{{ '结构物' }}" bind:close="search"> <van-dropdown-item title="{{ '结构物' }}" bind:close="onDropDownClose">
<view style="max-height:60%"> <view style="max-height:888rpx">
<van-checkbox-group value="{{ structResult }}" bind:change="onStructChange"> <van-checkbox-group value="{{ structResult }}" bind:change="onStructChange">
<van-cell-group> <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-cell wx:for="{{ structList }}" wx:key="index" title="{{ item.name }}" value-class="value-class" clickable data-id="{{ item.id }}" data-index="{{index}}" bind:click="structToggle">
<van-checkbox catch:tap="noop" class="checkboxes-struct-{{ index }}" name="{{ item }}" /> <van-checkbox catch:tap="noop" class="checkboxes-struct-{{ index }}" name="{{ item.id }}" />
</van-cell> </van-cell>
</van-cell-group> </van-cell-group>
</van-checkbox-group> </van-checkbox-group>
</view> </view>
</van-dropdown-item> </van-dropdown-item>
<van-dropdown-item title="{{ '点位' }}" bind:close="search"> <van-dropdown-item title="{{ '点位' }}" bind:close="onDropDownClose">
<view style="max-height:60%"> <view style="max-height:888rpx">
<van-checkbox-group value="{{ pointResult }}" bind:change="onPointChange"> <!-- <van-checkbox-group value="{{ pointResult }}" bind:change="onPointChange"> -->
<van-cell-group> <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-cell wx:for="{{ pointList }}" wx:key="index" title="{{ item.name }}" value-class="value-class" clickable data-index="{{ index }}"
<van-checkbox catch:tap="noop" class="checkboxes-point-{{ index }}" name="{{ item }}" /> data-id="{{ item.id }}" bind:click="pointToggle">
<van-checkbox catch:tap="noop" class="checkboxes-point-{{ item.id }}" name="{{ item.id }}" value="{{item.selected}}"/>
</van-cell> </van-cell>
</van-cell-group> </van-cell-group>
</van-checkbox-group> <!-- </van-checkbox-group> -->
</view> </view>
</van-dropdown-item> </van-dropdown-item>
<van-dropdown-item title="{{ '时间' }}" bind:close="search"> <van-dropdown-item title="{{ '时间' }}" bind:close="onDropDownClose">
<view style="max-height:60%; display:flex" class="time-option"> <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" /> <van-datetime-picker type="datetime" show-toolbar="{{false}}" type="date" value="{{ startTime }}" bind:input="onStartTimeChange" min-date="{{1640966400000}}"/>
<view style="display:flex; align-items:center">至</view> <view style="display:flex; align-items:center">至</view>
<van-datetime-picker type="datetime" show-toolbar="{{false}}" type="date" value="{{ endTime }}" bind:input="onEndTimeChange" /> <van-datetime-picker type="datetime" show-toolbar="{{false}}" type="date" value="{{ endTime }}" bind:input="onEndTimeChange" min-date="{{1640966400000}}"/>
</view> </view>
</van-dropdown-item> </van-dropdown-item>
</van-dropdown-menu> </van-dropdown-menu>
@ -47,7 +48,7 @@
<view wx:for="{{dataList}}"> <view wx:for="{{dataList}}">
<view class="mission-card-title"> <view class="mission-card-title">
<span>{{item.PatrolRecord.points.project.name}}</span> <span>{{item.PatrolRecord.points.project.name}}</span>
<van-button type="info" round bind:tap="toShootingForm" data-shootingid="{{item.id}}"> <van-button wx:if="{{powerCheckDetail || currentTab == 0}}" type="info" round bind:tap="toShootingForm" data-shootingid="{{item.id}}">
{{ {{
currentTab == 0? currentTab == 0?
item.state == 1 ?'制定计划': item.state == 1 ?'制定计划':
@ -65,11 +66,22 @@
item.state == 6 ?'验收通过':'驳回重修' item.state == 6 ?'验收通过':'驳回重修'
}} }}
</van-button> </van-button>
<span wx:elif="{{!powerCheckDetail}}">
{{
item.state == 1 ?'制定计划':
item.state == 2 ?'计划已提交待审批':
item.state == 3 ?'计划审批驳回':
item.state == 4 ?'计划审批通过待维修':
item.state == 5 ?'维修完成待验收':
item.state == 6 ?'验收通过':'驳回重修'
}}
</span>
</view> </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.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 }}" /> <van-field value="{{ item.createTime}}" label="任务下发时间" readonly border="{{ false }}" />
</view> </view>
<view style="height:128rpx"/>
</van-cell-group> </van-cell-group>
<!-- 暂无数据 --> <!-- 暂无数据 -->
<view wx:if="{{!dataList.length}}"> <view wx:if="{{!dataList.length}}">

Loading…
Cancel
Save