<template>
|
<view>
|
<view class="content">
|
<view class="name_wrap">
|
<view class="name">{{info.deviceName}} {{info.deviceCode || ''}}</view>
|
<view class="status" v-if="info.status == 0">正常</view>
|
<view class="status red" v-if="info.status == 1">损坏</view>
|
<view class="status red" v-if="info.status == 2">报废</view>
|
</view>
|
<view class="line">运维人:{{info.realName}}</view>
|
<view class="line">运维时间:{{info.createDate}}</view>
|
</view>
|
<!-- -->
|
<view class="remark">
|
<view class="title">运维备注</view>
|
<view class="file_list">
|
<view class="file" v-for="item in info.multifileList">
|
<image v-if="item.type == 0" :src="item.fileurlFull" mode="aspectFill"></image>
|
<video v-if="item.type == 1" :src="item.fileurlFull" :controls="false"></video>
|
</view>
|
</view>
|
<view class="desc">{{info.content}}</view>
|
</view>
|
</view>
|
</template>
|
|
<script>
|
import { ywDeviceDetail } from '@/api'
|
export default {
|
data() {
|
return {
|
id: '',
|
info: {}
|
};
|
},
|
onLoad(option) {
|
this.id = option.id
|
this.getDetail()
|
},
|
methods: {
|
getDetail() {
|
ywDeviceDetail(this.id).then(res => {
|
this.info = res.data
|
})
|
}
|
}
|
}
|
</script>
|
|
<style lang="scss" scoped>
|
.content {
|
flex: 1;
|
color: #666666;
|
display: flex;
|
flex-direction: column;
|
justify-content: space-between;
|
height: 260rpx;
|
padding: 30rpx;
|
border-bottom: 20rpx solid #f7f7f7;
|
.name_wrap {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
|
.name{
|
font-weight: 600;
|
font-size: 34rpx;
|
color: #222222;
|
}
|
|
.status {
|
color: $primaryColor;
|
}
|
}
|
}
|
.remark{
|
padding: 0 30rpx;
|
.title{
|
font-weight: 600;
|
font-size: 32rpx;
|
color: #222222;
|
height: 104rpx;
|
display: flex;
|
align-items: center;
|
}
|
.file_list{
|
display: flex;
|
flex-wrap: wrap;
|
|
.file{
|
width: 156rpx;
|
height: 156rpx;
|
border-radius: 12rpx;
|
margin-right: 22rpx;
|
margin-bottom: 22rpx;
|
&:nth-of-type(4n){
|
margin-right: 0;
|
}
|
}
|
image,video{
|
width: 156rpx;
|
height: 156rpx;
|
}
|
}
|
.desc{
|
margin-top: 8rpx;
|
padding: 24rpx 30rpx;
|
background: #F7F7F7;
|
border-radius: 12rpx;
|
}
|
}
|
</style>
|