jiangping
2025-06-06 a2299a6d4a6f99e9c11132138f5d3e9ec68f03ea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<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>