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.

130 lines
5.7 KiB

<!-- package/inspectionRecord/inspectionRecordDetail/inspectionRecordDetail.wxml -->
<view class="page">
<van-cell-group>
<van-cell size="large" title="结构物名称:" value="{{dataList.points.project.name}}" />
<van-cell size="large" title="巡检人:" value="{{dataList.points.user.name}}" />
<van-cell size="large" title="巡检单位:" value="{{dataList.points.user.department.name}}" />
<van-cell size="large" title="巡检频次:" value="{{dataList.points.frequency}}" />
<van-cell size="large" wx:if="{{dataList.points.aboutDisaster}}" title="RTU编号:" value="{{dataList.points.aboutDisaster.rtuNo}}" />
<van-cell size="large" wx:if="{{dataList.points.aboutDisaster}}" title="排查及处理对象:" value="{{dataList.points.aboutDisaster.handleObj}}" />
<van-cell size="large" wx:if="{{dataList.points.aboutDisaster}}" title="排查及处理目的:" value="{{dataList.points.aboutDisaster.handleGoal}}" />
<van-cell size="large" wx:if="{{dataList.points.aboutDisaster}}" title="安装位置:" value="{{dataList.points.aboutDisaster.installLocation}}" />
<van-cell size="large" title="上次巡检日期:" value="{{dataList.lastInspectionTime}}" />
<van-cell size="large" title="本次巡检日期:" value="{{dataList.inspectionTime}}" />
<van-cell
size="large"
title="巡检结果:"
value="{{dataList.alarm ? '异常' : '正常'}}"
style="--cell-value-color: {{dataList.alarm ? '#FF0000' : '#006BE3'}}"
/>
<van-cell size="large" title="当前点位:" value="{{dataList.points.itemData.name}}" />
<van-cell
size="large"
title="当前位置:"
value="{{dataList.points.address}}"
title-width="80px"
/>
</van-cell-group>
<view style="margin-top: 16px">
<block wx:if="{{ priorToV1_1 }}">
<van-collapse value="{{ activeValues }}" bind:change="handleCollapseChange">
<view
wx:for="{{dataList.points.inspectContent}}"
wx:key="key"
wx:for-index="key"
wx:for-item="value"
>
<van-collapse-item
title="{{key}}"
value="{{value.isNormal ? '正常' : '异常'}}"
style="--cell-value-color: {{value.isNormal ? '#006BE3' : '#FF0000'}}; --collapse-item-title-disabled-color: #323233"
disabled="{{value.isNormal}}"
>
<view class="content">
<view class="title">描述:</view>
<view class="value">{{value.msgInp || '--'}}</view>
</view>
<view class="content">
<view class="title">异常等级:</view>
<view class="value">{{value.level || '--'}}</view>
</view>
<view class="content">巡检图片:</view>
<view class="img-v weui-uploader__bd" style="overflow:hidden;">
<view class="pic" wx:for="{{value.imgs}}" wx:for-item="item" wx:key="*this">
<image
class="weui-uploader__img showImg"
src="{{imgUrl + item}}"
data-img="{{imgUrl + item}}"
data-index="{{index}}"
data-key="{{key}}"
mode="aspectFill"
bindtap="previewImg"
></image>
</view>
</view>
</van-collapse-item>
</view>
</van-collapse>
</block>
<block wx:else>
<view
wx:for="{{dataList.points.inspectContent}}"
wx:key="*this"
wx:for-item="device"
wx:for-index="deviceidx"
style="margin-top: 16px"
>
<van-collapse
value="{{ multiActiveValues[deviceidx] }}"
data-deviceidx="{{deviceidx}}"
bind:change="handleMultiCollapseChange"
>
<view
wx:if="{{device.deviceName}}"
class="flex flex-between"
style="padding: 8px 16px 0; background: #fff"
>
<view>{{device.deviceName}}</view>
<view style="color: {{device.alarm ? '#FF0000' : '#006BE3'}};">
{{device.alarm ? '异常': '正常'}}
</view>
</view>
<view wx:for="{{device.checkItems}}" wx:key="*this" wx:for-index="itemidx">
<van-collapse-item
title="{{item.name}}"
value="{{item.isNormal ? '正常' : '异常'}}"
style="--cell-value-color: {{item.isNormal ? '#006BE3' : '#FF0000'}}; --collapse-item-title-disabled-color: #323233"
disabled="{{item.isNormal}}"
>
<view class="content">
<view class="title">描述:</view>
<view class="value">{{item.msgInp || '--'}}</view>
</view>
<view class="content">
<view class="title">异常等级:</view>
<view class="value">{{item.level || '--'}}</view>
</view>
<view class="content">巡检图片:</view>
<view class="img-v weui-uploader__bd" style="overflow:hidden;">
<view class="pic" wx:for="{{item.imgs}}" wx:for-item="img" wx:key="*this">
<image
class="weui-uploader__img showImg"
src="{{imgUrl + img}}"
data-img="{{imgUrl + img}}"
data-index="{{index}}"
data-key="{{key}}"
data-deviceidx="{{deviceidx}}"
data-itemidx="{{itemidx}}"
mode="aspectFill"
bindtap="previewImg"
></image>
</view>
</view>
</van-collapse-item>
</view>
</van-collapse>
</view>
</block>
</view>
</view>