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
| <template>
| <div class="box">
| <ul>
| <li
| style="margin-left: 20px"
| @click="changeOrietnt(item)"
| v-for="item in itemsOne"
| >
| <div class="divli">
| <div :class="item.class" class="backimge6"></div>
| </div>
| <div class="div_li">{{ $t(item.name) }}</div>
| </li>
| </ul>
| </div>
| </template>
|
| <script>
| export default {
| data() {
| return {
| itemsOne: [
| {
| id: '1',
| name: 'synthesis.gpsrtk',
| class: 'f1',
| },
| {
| id: '2',
| name: 'synthesis.placenamelocation',
| class: 'f2',
| },
| ],
| };
| },
| methods: {
| changeOrietnt(res) {
| var val = {
| name: 'Coord',
| id: res.id,
| };
| this.$bus.$emit('mapChangeBox', val);
| },
| },
| };
| </script>
|
| <style>
| .box {
| width: 100%;
| height: 100%;
| position: relative;
| }
| .box li {
| list-style: none;
| float: left;
| height: 60px;
| text-align: center;
| margin: 2px;
| position: relative;
| cursor: pointer;
| margin-top: 5px;
| }
| .box ul {
| margin: 0px;
| }
| .f1 {
| background: url('../../assets/img/synthesis/图层 27.png') no-repeat center;
| }
| .f2 {
| background: url('../../assets/img/synthesis/图层 28.png') no-repeat center;
| }
| .backimge6 {
| width: 30px;
| height: 30px;
| margin-left: 25px;
| position: absolute;
| background-size: 100% 100%;
| margin: 0% 35%;
| }
| .divli {
| width: 100%;
| height: 50%;
| position: relative;
| }
| </style>
|
|