1
Surpriseplus
2022-09-19 543249cc7d5dd38b9415f40e71fd576dcfc006de
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
<template>
  <div class="box">
    <ul>
      <li
        style="width: 86px"
        @click="changePlot(item)"
        v-for="item in itemsOne"
      >
        <div class="divli">
          <div :class="item.class" class="backimge8"></div>
        </div>
        <div class="div_li">{{ item.name }}</div>
      </li>
    </ul>
  </div>
</template>
 
<script>
export default {
  data() {
    return {
      itemsOne: [
        {
          id: "1",
          name: "点",
          class: "h1",
        },
        {
          id: "2",
          name: "线",
          class: "h2",
        },
        {
          id: "3",
          name: "矩形",
          class: "h3",
        },
        {
          id: "4",
          name: "多边形",
          class: "h4",
        },
        {
          id: "7",
          name: "符号化标签",
          class: "h7",
        },
        {
          id: "5",
          name: "地形平整",
          class: "h5",
        },
        {
          id: "6",
          name: "地形开挖",
          class: "h6",
        },
        {
          id: "8",
          name: "清除绘制",
          class: "h8",
        },
      ],
    };
  },
  methods: {
    changePlot(res) {
      var res_val = {
        url: "",
        name: res.name,
      };
      this.$bus.$emit("changetool", res_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;
}
.h1 {
  background: url("../../assets/img/synthesis/椭圆 5 拷贝 3.png") no-repeat
    center;
}
.h2 {
  background: url("../../assets/img/synthesis/椭圆 3 拷贝 16.png") no-repeat
    center;
}
.h3 {
  background: url("../../assets/img/synthesis/椭圆 3 拷贝 20.png") no-repeat
    center;
}
.h4 {
  background: url("../../assets/img/synthesis/椭圆 3 拷贝 23.png") no-repeat
    center;
}
.h5 {
  background: url("../../assets/img/synthesis/矩形 14 拷贝.png") no-repeat
    center;
}
.h6 {
  background: url("../../assets/img/synthesis/矩形 14 拷贝 7.png") no-repeat
    center;
}
.h7 {
  background: url("../../assets/img/synthesis/文本风格.png") no-repeat center;
}
.h8 {
  background: url("../../assets/img/synthesis/清除.png") no-repeat center;
}
.backimge8 {
  width: 30px;
  height: 30px;
  margin-left: 30px;
  position: absolute;
  background-size: 100% 100%;
}
.divli {
  width: 100%;
  height: 50%;
  position: relative;
}
</style>