jiangping
2025-04-10 9f7777c83f2d07c8d83c506ab2a13bc543f47de9
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<template>
    <view class="report">
        <u-sticky offset-top="0">
            <view class="report_search">
                <view class="report_search_row" @click="show = true">
                    <text>{{type ? type : '类型'}}</text>
                    <u-icon name="arrow-down-fill" color="#666666" size="13"></u-icon>
                </view>
                <view class="report_search_row" @click="show1 = true">
                    <text>{{status ? status : '解决情况'}}</text>
                    <u-icon name="arrow-down-fill" color="#666666" size="13"></u-icon>
                </view>
            </view>
        </u-sticky>
        <view class="report_list">
            <view class="report_list_row" v-for="(item, index) in 10" :key="index" @click="jump(item)">
                <view class="report_list_row_icon">
                    <image src="/static/tabbar/nav_gongdan_sel@2x.png" mode="widthFix"></image>
                </view>
                <view class="report_list_row_info">
                    <text>SHE事件上报</text>
                    <text>同事-李四-2025-10-09 07:45/成都/车祸</text>
                    <text>2025-10-09 18:45</text>
                </view>
            </view>
        </view>
        <!-- 类型 -->
        <u-picker :show="show" immediateChange :columns="columns" @confirm="confirmType" @cancel="show = false"></u-picker>
        <!-- 解决情况 -->
        <u-picker :show="show1" immediateChange :columns="columns1" @confirm="confirmStatus" @cancel="show1 = false"></u-picker>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                show: false,
                show1: false,
                type: '',
                status: '',
                columns: [
                    ['全部', 'DCA', '跌绊滑风险上报', 'SHE事件上报']
                ],
                columns1: [
                    ['全部', '未解决', '已解决']
                ]
            };
        },
        methods: {
            confirmType(e) {
                if (e.value[0] === '全部') {
                    this.type = ''
                } else {
                    this.type = e.value[0]
                }
                this.show = false
            },
            confirmStatus(e) {
                if (e.value[0] === '全部') {
                    this.status = ''
                } else {
                    this.status = e.value[0]
                }
                this.show1 = false
            },
            jump(item) {
                uni.navigateTo({
                    url: '/pages/details_she/details_she'
                })
            }
        }
    }
</script>
 
<style lang="scss">
    .report {
        width: 100%;
        .report_search {
            width: 100%;
            height: 100rpx;
            display: flex;
            align-items: center;
            padding: 0 30rpx;
            box-sizing: border-box;
            border-bottom: 1rpx solid #ececec;
            background-color: #ffffff;
            .report_search_row {
                flex: 1;
                height: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
                text {
                    font-size: 28rpx;
                    color: #222222;
                    margin-right: 8rpx;
                }
            }
        }
        .report_list {
            width: 100%;
            display: flex;
            flex-direction: column;
            .report_list_row {
                width: 100%;
                padding: 34rpx 36rpx;
                box-sizing: border-box;
                border-bottom: 1rpx solid #ececec;
                display: flex;
                align-items: center;
                &:last-child {
                    border: none;
                }
                .report_list_row_icon {
                    flex-shrink: 0;
                    width: 56rpx;
                    height: 56rpx;
                    margin-right: 20rpx;
                    image {
                        width: 100%;
                        height: 100%;
                    }
                }
                .report_list_row_info {
                    flex: 1;
                    display: flex;
                    flex-direction: column;
                    text {
                        &:nth-child(1) {
                            font-size: 28rpx;
                            color: #222222;
                            font-weight: 600;
                        }
                        &:nth-child(2) {
                            font-size: 24rpx;
                            color: #666666;
                            font-weight: 400;
                            margin: 6rpx 0;
                        }
                        &:nth-child(3) {
                            font-size: 24rpx;
                            color: #999999;
                            font-weight: 400;
                        }
                    }
                }
            }
        }
    }
</style>