1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <template>
- <view class="reviewHistory">
- <template v-if="items.length>0">
- <uni-section title="历史记录" type="line" v-for="(item,index) in items" :key="index">
- <uni-group :title="item.activityInsTitle" mode="card">
- <uni-list >
- <uni-list-item title="处理时间" :right-text="item.actionTime"></uni-list-item>
- <uni-list-item title="人员" :right-text="item.accountName"></uni-list-item>
- <uni-list-item title="处理关卡" :right-text="item.activityInsTitle"></uni-list-item>
- <uni-list-item title="处理动作" :right-text="item.actionTitle"></uni-list-item>
- <uni-list-item title="处理说明" :note="item.actionRemark"></uni-list-item>
- <uni-list-item title="附件">
- <view slot="body">
- <template v-if="item.attachList.length>0">
- <image v-for="(attach,index) in item.attachList"
- class="attach"
- :key="index"
- :src="attach.fileUrl"
- @click="preview(item.attachList)"
- mode="widthFix" ></image>
- </template>
- <template v-else>
- <p style="font-size: 28rpx;color: #666;">没有附件</p>
- </template>
- </view>
- </uni-list-item>
- </uni-list>
- </uni-group>
- </uni-section>
- </template>
- <template v-else>
- <view class="empty">
- <image class="icon-empty" src="/static/icon/empty.png" mode="widthFix"></image>
- <p>暂无历史信息</p>
- </view>
- </template>
- </view>
- </template>
- <script>
- export default{
- name:"reviewHistory",
- data(){
- return{
- items:[]
- }
- },
- methods:{
- loadData(items=[]){
- if(items.length>0){
- this.items=items
- }
- },
- preview(attachList=[]){
- let urls=attachList.map(item=>item.fileUrl)
- uni.previewImage({
- urls
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .reviewHistory{
- .empty{
- .icon-empty{
- display: block;
- width: 160rpx;
- margin: 364rpx auto 0;
- }
- p{
- font-size: 28rpx;
- line-height: 1.8;
- color: #666;
- text-align: center;
- }
- }
- ::v-deep.attach{
- display: block;
- width: 120rpx;
- border: 1rpx solid #eaeaea;
- padding: 10rpx;
- box-sizing: border-box;
- }
- }
- </style>
|