suerprisePlus
2024-10-17 78c7b6c6dfe40761e7b8eb60498f2eb73c0aaad1
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<template>
    <div class="bottomMnu">
        <div class="bottomBox">
            <div class="menuButton" v-for="(i, k) in menuOption">
                <el-popover popper-class="popover" placement="top" v-show="i.children && i.children.length > 0"
                    width="100" trigger="click">
                    <span slot="reference">{{ i.name }}</span>
                    <div v-show="i.children && i.children.length > 0">
                        <div @click="setChildData(c)" class="popover__item" v-for="(c, f) in i.children" c
                            :title="c.name"> {{
                                c.name.slice(0, 8) }}
                        </div>
                    </div>
 
                </el-popover>
                <span @click="setChildData(i)" slot="reference" v-show="!i.children || i.children.length <= 0">{{ i.name
                    }}</span>
            </div>
 
        </div>
        <div class="bottomImage">
            <img src="@/assets/images/Screen/bottombg.png" />
        </div>
 
    </div>
</template>
 
<script>
export default {
    data() {
        return {
            menuOption: [
                {
                    name: '一体建模',
                    children: [
                        {
                            id: 'a1',
                            name: '知识图谱',
                            pid: 's1',
                        }, {
                            id: 'a1',
                            name: '语义功能',
                            pid: 's4',
                        }
                    ]
                }, {
                    name: '图模融合',
                    children: [{
                        id: 'a1',
                        name: '数据统计',
                        pid: 's2',
                    }]
                },
                
                // {
                //     name: '灾害管理',
                //     children: [{
                //         id: 'a1',
                //         name: '数据分析',
                //         pid: 's3',
                //     }]
                // }, 
                {
                    name: '配网运检',
 
                }
            ],
            visible: false
 
        }
    },
    methods: {
        setChildData(res) {
            this.visible = false;
            this.$emit('childData', res);
        }
    }
}
</script>
 
<style lang="scss" scoped>
.bottomMnu {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
 
    .bottomBox {
        flex: 1;
        width: 100%;
 
        display: flex;
        justify-content: center;
 
        .menuButton {
            height: 36px;
            width: 147px;
            background: url(~@/assets/images/Screen/centerbtn.png);
            background-size: 100% 100%;
            background-repeat: no-repeat;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: 600;
            cursor: pointer;
 
            &:hover {
                background: url(~@/assets/images/Screen/centerbtnc.png);
                background-size: 100% 100%;
            }
        }
    }
 
    .bottomImage {
        width: 100%;
        display: flex;
        justify-content: center;
 
        img {
            width: 80%;
            height: 50px;
        }
 
    }
 
}
</style>
<style lang="scss">
.popover {
    display: flex;
    justify-content: center;
    width: 163px;
    background: url(~@/assets/images/Screen/centerTooltipBg.png);
    background-size: 100% 100%;
    border: none;
    padding-bottom: 0px;
 
    &_list {
        display: flex;
        flex-direction: column;
        width: 145px;
        overflow-x: hidden;
        align-items: center;
 
    }
 
    .popper__arrow {
        display: none;
    }
 
    .popover-content {
        height: auto !important;
    }
 
    .popover__item {
        margin-bottom: 12px;
        color: #fff;
        width: 130px;
        height: 30px;
        line-height: 30px;
        text-align: center;
        background: url(~@/assets/images/Screen/btnbg.png);
        background-size: 100% 100%;
 
 
    }
 
    .popover__item:hover {
        background: url(~@/assets/images/Screen/btnc.png);
        background-size: 100% 100%;
    }
}
 
.elpopover {
    .popover {
        display: none !important;
    }
}
</style>