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.
 
 
 
 

29 lines
1.6 KiB

<!-- package/inspectionReport/inspectionReport.wxml -->
<view>
<van-cell-group>
<van-cell title="结构物" value="{{structures[curStru]}}" is-link arrow-direction="down" data-item="stru" bind:click="showPopup" />
<van-popup show="{{ struVisible }}" data-item="stru" bind:close="onClose" round position="bottom" custom-style="height: 40%">
<van-picker columns="{{ structures }}" bind:change="onStruChange" default-index="{{ curStru }}" loading="{{struLoading}}" />
</van-popup>
<van-cell title="时间" title-width="80rpx" value="{{formatStartTime + ' - ' + formatEndTime}}" is-link arrow-direction="down" data-item="date" bind:click="showPopup" />
<van-popup show="{{ dateVisible }}" data-item="date" bind:close="onClose" round position="bottom" custom-style="height: 40%">
<view style="max-height:100%; 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-popup>
</van-cell-group>
<view wx:if="{{report.length}}">
<view class="file-box" wx:for="{{report}}">
<view class="file">
<image class="logo" src="/images/word.svg"></image>
<view>2143654.docx</view>
</view>
<van-button type="primary" size="small" color="#169bd5" bind:click="download">下载</van-button>
</view>
</view>
<view wx:else>
<van-empty description="暂无数据" />
</view>
</view>