智慧园区前端大屏
shuishen
2024-12-18 9a37c5e1b2190c3f6ec71483923922189091dd52
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
<!--
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2024-10-29 15:48:36
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2024-11-27 19:17:04
 * @FilePath: \bigScreen\src\pages\layout\components\scomponents\tool\curtain.vue
 * @Description: 
 * 
 * Copyright (c) 2024 by shuishen, All Rights Reserved. 
-->
<template>
  <public-box style="z-index: 100;">
    <template #name>
      <div class="name"><i class="fa fa-map-pin"></i>&nbsp;卷帘对比 &nbsp;</div>
    </template>
 
    <template #close>
      <div class="close cursor-p" @click="$emit('closeChild')"><i class="fa fa-close"></i></div>
    </template>
 
    <template #content>
      <div class="cur-btn">
        <!-- <div class="m-4">
                    <p>左侧图层</p>
                    <el-select class="transparent-bg" v-model="value1" placeholder="天地图">
                        <el-option v-for="item in components" :key="item.value" :label="item.label" :value="item.value" />
                    </el-select>
                </div>
                <div class="m-4">
                    <p>右侧图层</p>
                    <el-select popper-class="transparent-bg" v-model="value2" collapse-tags placeholder="天地图">
                        <el-option v-for="item in components" :key="item.value" :label="item.label" :value="item.value" />
                    </el-select>
                </div> -->
      </div>
    </template>
  </public-box>
</template>
 
<script setup>
const value1 = ref([])
const value2 = ref([])
 
 
 
onMounted(() => {
  window.$viewer.sceneSplit.enable = true
})
 
// 关闭
const close = () => {
  window.$viewer.sceneSplit.enable = false
}
 
const flyTo = () => {
  // window.$viewer.flyToPosition(new DC.Position(longitude.value, latitude.value, height.value, 0, -90, 0), () => { }, 3)
}
 
onUnmounted(() => {
  window.$viewer && (window.$viewer.sceneSplit.enable = false)
})
 
const components = [
  { label: '天地图', value: '1' },
  { label: '谷歌影像', value: '2' },
  { label: '谷歌矢量', value: '3' },
  { label: '高德影像', value: '4' },
]
</script>
 
<style lang="scss" scoped>
.cur-btn {
  margin: 10px 0;
  display: flex;
 
  // justify-content: center;
  // align-items: center;
 
  // &.el-select {
  //     width: 50px;
  // }
}
 
.m-4 {
  text-align: center;
  width: 200px;
}
 
.transparent-bg {
  background: transparent;
 
}
 
// 重新el——select样式
::v-deep .el-select__wrapper {
  background: transparent;
 
}
 
::v-deep .el-select-dropdown {
  // background: transparent;
  background-color: aqua;
}
 
::v-deep .el-select .el-select__placeholder {
  color: #fff;
}
</style>