whyczyk
2022-03-01 f868ff46ef4fb25a01364f3c5d0fe220d32b7ad0
src/components/charts/chinaMap.vue
@@ -1,5 +1,6 @@
<template>
   <div class="echarts-wrapper" @dblclick="dblclick">
   <new-china-map v-if="newPlatform==1"></new-china-map>
   <div class="echarts-wrapper" @dblclick="dblclick" v-else>
      <div class="echarts-content" ref="chart" id="cityChart">
      </div>
@@ -43,6 +44,7 @@
// 放电图标
import HomeDischargeImage from '@/assets/images/home-discharge.png';
import InfoPanel from '../indexPanel/InfoPanel.vue';
import newChinaMap from './newChinaMap.vue';
let homeDischargeImage = new Image();
homeDischargeImage.src = HomeDischargeImage;
let chartData = []; //chart数据
@@ -51,12 +53,13 @@
let chart, chartLng, chartLat;
export default {
   components: { InfoPanel },
   components: { InfoPanel, newChinaMap },
   name: "chinaMap",
   chart: "",
   chartData: "",
   data() {
      return {
         newPlatform: 0,
         parentsStyle: {},
         isAllScreen: false,
         timers: null,
@@ -128,7 +131,9 @@
            this.organizeData(sendData)
         } else {
            // 初始化页面
            this.getAllMapOutlineAction();
            this.$nextTick(() => {
               this.getAllMapOutlineAction();
            })
         }
      },
      organizeData(data) {
@@ -570,6 +575,7 @@
            this.mapInfoY = poit[1] - 190;
         }, 300);
      });
      this.newPlatform = sessionStorage.getItem('newPlatform')
   },
   destroyed() {
      window.removeEventListener('resize', this.resize);