|
|
@@ -8,7 +8,7 @@
|
|
|
<script>
|
|
|
import "./../../board.scss";
|
|
|
import * as echarts from "echarts";
|
|
|
-import { getMap } from "@/api/board/cockpit.js";
|
|
|
+import { getMap,mapInfo } from "@/api/board/cockpit.js";
|
|
|
import {
|
|
|
findMaxIndex,
|
|
|
getChartDOMSize,
|
|
|
@@ -79,8 +79,10 @@ export default {
|
|
|
this.isMouseOver = false;
|
|
|
},
|
|
|
async getData() {
|
|
|
- let map = window.boardMap.getMap(this.orgName);
|
|
|
- let coordinates = window.boardMap.getCoord(this.orgName);
|
|
|
+ let mapinfo= await mapInfo(this.orgId);
|
|
|
+
|
|
|
+ let map = mapinfo.data.map;
|
|
|
+ let coordinates =mapinfo.data.sites.map(s=>({ name: s.orgName, value: [s.longitude,s.latitude, 10] }));
|
|
|
this.map = map;
|
|
|
this.coordinates = coordinates;
|
|
|
this.$nextTick(() => {
|