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
| <!--
| * @Author : yuan
| * @Date : 2025-06-10 15:34:31
| * @LastEditors : yuan
| * @LastEditTime : 2025-06-10 15:53:47
| * @FilePath : \src\components\PlanarRouteLineList\PlanarRouteLineList.vue
| * @Description :
| * Copyright 2025 OBKoro1, All Rights Reserved.
| * 2025-06-10 15:34:31
| -->
| <template>
| <div class="route-line-list" :class="customClass" v-show="props.curRouteLineData.templateType === 'mapping3d'">
| <div :class="{ active: item.select }" v-for="(item, index) in props.curRouteLineData.data" :key="index"
| @click="emit('routeLineListClick', item)">
| {{ index + 1 }}
| </div>
| </div>
| </template>
|
| <script setup>
| const props = defineProps({
| curRouteLineData: {
| type: Object,
| default: {
| data: [],
| polygonList: '',
| templateType: '',
| startPoint: '',
| execute_height_mode: '',
| auto_flight_speed: '',
| wayline_type: '',
| },
| },
|
| customClass: {
| type: String,
| value: '',
| },
| })
|
| const emit = defineEmits(['routeLineListClick'])
| </script>
|
| <style lang="scss" scoped>
| .route-line-list {
| position: absolute;
| top: 50%;
| left: 10px;
| transform: translate(0, -50%);
|
| display: flex;
| flex-direction: column;
|
| background: rgba(255, 255, 255, 1);
| border-radius: 4px 4px 4px 4px;
|
| div {
| display: flex;
| align-items: center;
| justify-content: center;
| width: 40px;
| height: 40px;
| color: #676767;
| cursor: pointer;
| }
|
| div.active {
| color: #fff;
| background: #409EFF;
| backdrop-filter: blur(4px);
| }
| }
|
| .airline-list {
| left: 440px;
| }
| </style>
|
|