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
| const menuTool = {
| toolMenu: null,
| toolFlag: null,
| colorAll: {
| },
| menuTools(res) {
| this.clearTools();
| this.toolFlag = res.id;
| switch (res.id) {
| case 'a2'://点漫游
| this.pointRoam();
| break;
| case 'a3'://线漫游
| this.lineRoam();
| break;
| case 'b2'://表面距离
| this.surfaceDistance();
| break;
| case 'b3'://平面面积
| this.planeDistance();
| break;
| case 'b4'://高程测量
| this.heightMeasure();
| break;
| case 'b5'://垂直高度
| this.verticalHeight();
| break;
| }
| },
| //垂直高度
| verticalHeight() {
|
| },
| //高程测量
| heightMeasure() {
|
| },
| //平面面积
| planeDistance() {
|
| },
| //表面距离
| surfaceDistance() {
|
| },
| //点漫游
| pointRoam() {
|
| },
| //线漫游
| lineRoam() {
|
|
| },
|
| //清除方法
| clearTools() {
| if (this.toolFlag) {
| switch (this.toolFlag) {
| case 'a2':
|
| break;
| case 'a3':
|
| break;
| case 'b2':
| case 'b3':
| case 'b4':
| case 'b5':
|
| break;
| }
| this.toolFlag = null;
| this.toolMenu = null;
| }
| },
|
|
| }
| export default menuTool;
|
|