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
<template>
  <div class="synthesis">
    <el-tabs type="border-card">
      <el-tab-pane label="图层">
        <coverage />
      </el-tab-pane>
      <el-tab-pane label="视图">
        <viewport />
      </el-tab-pane>
      <el-tab-pane label="漫游">
        <wander />
      </el-tab-pane>
      <el-tab-pane label="分析">
        <analyse />
      </el-tab-pane>
      <el-tab-pane label="查询">
        <iqyery />
      </el-tab-pane>
      <el-tab-pane label="定位">
        <orientation />
      </el-tab-pane>
      <el-tab-pane label="测量">
        <measurement />
      </el-tab-pane>
      <el-tab-pane label="标绘">
        <plotting />
      </el-tab-pane>
    </el-tabs>
    <el-card class="box-card">
      <map-div></map-div>
    </el-card>
  </div>
</template>
 
<script>
import coverage from "./coverage.vue"; //图层
import viewport from "./viewport.vue"; //视图
import wander from "./wander.vue"; //漫游
import analyse from "./analyse.vue"; //分析
import iqyery from "./inquire.vue"; //查询
import orientation from "./orientation.vue"; //定位
import measurement from "./measurement.vue"; //测量
import plotting from "./plotting.vue"; //标绘
import MapDiv from "../../components/MapDiv";
export default {
  components: {
    coverage,
    viewport,
    wander,
    analyse,
    iqyery,
    orientation,
    measurement,
    plotting,
    MapDiv,
  },
  data() {
    return {
      iframeSrc: null,
      messageName: null,
    };
  },
  watch: {},
  methods: {
    tepostmessage(res) {
      const msg = {
        message: "changeTool",
        data: res,
      };
      document
        .getElementById("sunIframe")
        .contentWindow.postMessage(msg, this.iframeSrc);
    },
  },
  mounted() {
    //this.messageName = this.$store.state.teNmme;
    this.$bus.$on("changetool", (e) => {
      this.tepostmessage(e);
    });
  },
  created() {},
};
</script>
 
<style>
.el-card {
  border: transparent !important;
}
.synthesis {
  width: 100%;
  height: 100%;
  position: relative;
}
.synthesis .el-tabs__item {
  color: white !important;
  text-align: center;
 
  background: rgb(55, 77, 110) !important;
}
.synthesis .is-active {
  color: white !important;
  background-color: #586884 !important;
  border: #586884 !important;
}
.synthesis .el-tabs__nav-scroll {
  background: rgb(55, 77, 110) !important;
}
.synthesis .el-tabs__content {
  color: white !important;
  background-color: #586884 !important;
  padding: 0px !important;
}
.synthesis .box-card {
  height: 88%;
 
  border-radius: 0px;
}
.synthesis .el-card .el-card__body {
  padding: 0px;
}
.cardbox {
  width: 98%;
  height: 86%;
  position: absolute;
}
.synthesis .el-tabs--border-card {
  border: transparent;
  background: transparent;
}
</style>