linwe
2024-08-08 3c738f4fe2762bba8087e5a22fc0dc06560eab0e
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
<template>
    <view class="list">
        <view class="item" v-for="(item,index) in list" :key="index">
 
            <view class="line">
                <view class="l">
                    <view class="label">
                        事件主题
                    </view>
                    <view :class="item.status == '1'?'pass':item.status =='2'?'report':'reject' " class="status">
                        {{`(${item.statusText})`}}
                    </view>
                </view>
                <view class="r">{{item.title}}</view>
            </view>
 
            <view class="line">
                <view class="l">发生位置</view>
                <view class="r">{{item.location}}</view>
            </view>
 
            <view class="line">
                <view class="l">事件描述</view>
                <view class="r">{{item.description}}</view>
            </view>
 
            <view class="line">
                <view class="l">审批意见</view>
                <view class="r">{{item.advice}}</view>
            </view>
 
        </view>
    </view>
</template>
 
<script>
    export default {
        props: {
            list: {
                type: Array,
                default: () => []
            }
        },
        data() {
            return {
 
            }
        },
        created() {
 
        },
        mounted() {
 
        },
        onLoad(option) {
 
        },
        onShow() {
 
        },
        methods: {
 
        }
    }
</script>
 
<style scoped lang="scss">
    .list {
        .item {
            background-color: #ffffff;
            margin-top: 30rpx;
            padding: 0 20rpx;
 
            .line {
                display: flex;
                justify-content: space-between;
                padding: 14rpx 10rpx;
 
                .l {
                    display: flex;
                }
 
                .r {
                    color: #969799;
                    width: 60%;
                    text-align: right;
                }
            }
        }
    }
 
    view {
        font-size: 28rpx;
    }
 
    .pass {
        color: #5abf66;
    }
 
    .report {
        color: #1989fa;
    }
 
    .reject {
        color: #ff0000;
    }
</style>