jiangping
2025-04-17 9b00b80c926b3d1b38b7ef9b682ee097345dde3f
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
113
114
115
116
117
118
119
120
121
122
123
124
125
<template>
    <view class="box" v-if="info">
        <view class="box_item">
            <view class="box_item_label">员工姓名</view>
            <view class="box_item_value">{{info.memberName}}</view>
        </view>
        <view class="box_item">
            <view class="box_item_label">部门</view>
            <view class="box_item_value">{{info.companyName}}</view>
        </view>
        <view class="box_item">
            <view class="box_item_label">上报时间</view>
            <view class="box_item_value">{{info.submitDate.substring(0, 16)}}</view>
        </view>
        <view class="box_item">
            <view class="box_item_label">发现时间</view>
            <view class="box_item_value">{{info.happenTime.substring(0, 16)}}</view>
        </view>
        <view class="box_item">
            <view class="box_item_label">风险类型</view>
            <view class="box_item_value">{{info.typeName}}</view>
        </view>
        <view class="box_item">
            <view class="box_item_label">发生地点</view>
            <view class="box_item_value">{{info.locationName}}</view>
        </view>
        <view class="box_item">
            <view class="box_item_label">风险描述</view>
            <view class="box_item_value">{{info.riskInfo}}</view>
        </view>
        <view class="box_item" style="flex-direction: column;">
            <view class="box_item_label">图片</view>
            <view class="box_item_tu" v-if="info.multifileList">
                <view class="box_item_tu_item" v-for="(item, index) in info.multifileList" :key="index">
                    <image :src="item.fileurlFull" mode="widthFix"></image>
                </view>
                <view class="box_item_tu_zw"></view>
                <view class="box_item_tu_zw"></view>
                <view class="box_item_tu_zw"></view>
            </view>
        </view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                id: null,
                info: null
            };
        },
        onLoad(option) {
            this.id = option.id
            this.getDetails()
        },
        methods: {
            getDetails() {
                this.$u.api.detail({ id: this.id })
                    .then(res => {
                        console.log(res)
                        this.info = res.data
                    })
            }
        }
    }
</script>
 
<style lang="scss" scoped>
    .box {
        width: 100%;
        .box_item {
            width: 100%;
            padding: 32rpx 30rpx;
            display: flex;
            box-sizing: border-box;
            align-items: start;
            border-bottom: 2rpx solid rgba(239,239,239,1);
            .box_item_label {
                width: 220rpx;
                height: 100%;
                flex-shrink: 0;
                display: flex;
                align-items: center;
                justify-content: start;
                color: rgba(0,0,0,1);
                font-size: 28rpx;
            }
            .box_item_value {
                flex: 1;
                height: 100%;
                display: flex;
                align-items: center;
                justify-content: start;
                color: rgba(16,16,16,1);
                font-size: 28rpx;
            }
            .box_item_tu {
                width: 100%;
                display: flex;
                align-items: center;
                justify-content: space-between;
                flex-wrap: wrap;
                margin-top: 30rpx;
                .box_item_tu_zw {
                    width: 156rpx;
                    height: 0;
                }
                .box_item_tu_item {
                    width: 156rpx;
                    height: 156rpx;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    overflow: hidden;
                    margin-bottom: 30rpx;
                    image {
                        width: 100%;
                        height: 100%;
                    }
                }
            }
        }
    }
</style>