h5
liukangdong
2024-11-28 19754e8f95a24d3b3b0cd023badd245fea8f6cd5
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
<template>
    <view class="main_app">
        <view class="head_wrap">
            <view class="search_wrap">
                <image class="mr12 search" src="@/static/home/ic_search@2x.png" mode="widthFix"></image>
                <input v-model="param.keyword" @confirm="getList()" type="text" placeholder="搜索设备名称/编号" placeholder-class="placeholder9" />
            </view>
            <view class="name_wrap" @click="showModal = true">
                <view class="name">运维人</view>
                <u-icon :name="showModal  ? 'arrow-right' : 'arrow-down'" color="#999999" size="12"></u-icon>
            </view>
        </view>
        <!--  -->
        <view class="list">
            <view class="item" v-for="item in 10" @click="itemClick(item)">
                <image src="@/static/side/ic_shuiyu@2x.png" class="icon"></image>
                <view class="content">
                    <view class="name_wrap">
                        <view class="name">
                            <text class="device">xx设备</text>
                            <text>D20231</text>
                        </view>
                        <view class="status red">正常</view>
                    </view>
                    <view class="line">运维人:xxx</view>
                    <view class="line">运维时间:121212</view>
                </view>
 
            </view>
        </view>
        <!--  -->
        <u-picker :show="showModal" keyName="name" @cancel="showModal = false" @confirm='confirm'
            :columns="columns"></u-picker>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                param: {},
                columns: [],
                showModal: false
            };
        },
        methods: {
            getList() {},
            confirm() {
                this.showModal = false
            },
            itemClick() {
                uni.navigateTo({
                    url: '/pages/operation/detail'
                })
            }
        }
    }
</script>
 
<style lang="scss" scoped>
    .main_app{
        padding: 0 30rpx;
    }
    .head_wrap {
        display: flex;
        align-items: center;
 
        .search_wrap {
            display: flex;
            align-items: center;
            width: 540rpx;
            height: 76rpx;
            background: #F7F7F7;
            border-radius: 38rpx;
            padding-left: 30rpx;
            input{
                flex: 1;
            }
            .search {
                width: 28rpx;
                height: 28rpx;
            }
        }
 
        .name_wrap {
            display: flex;
            align-items: center;
            margin-left: 12rpx;
            justify-content: flex-end;
            flex: 1;
        }
    }
 
    .list {
        .item {
            display: flex;
            height: 228rpx;
            padding: 30rpx 0;
            border-bottom: 2rpx solid #E5E5E5;
            .icon {
                width: 80rpx;
                height: 80rpx;
                margin-right: 24rpx;
            }
 
            .content {
                flex: 1;
                color: #666666;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                .name_wrap{
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    .name{
                        display: flex;
                        align-items: flex-end;
                        font-size: 26rpx;
                        .device{
                            font-weight: 600;
                            font-size: 34rpx;
                            color: #222222;
                            margin-right: 6rpx;
                        }
                    }
                    .status{
                        color: $primaryColor;
                    }
                }
            }
        }
    }
</style>