| | |
| | | <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> |
| | |
| | | // 放电图标 |
| | | 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数据 |
| | |
| | | let chart, chartLng, chartLat; |
| | | |
| | | export default { |
| | | components: { InfoPanel }, |
| | | components: { InfoPanel, newChinaMap }, |
| | | name: "chinaMap", |
| | | chart: "", |
| | | chartData: "", |
| | | data() { |
| | | return { |
| | | newPlatform: 0, |
| | | parentsStyle: {}, |
| | | isAllScreen: false, |
| | | timers: null, |
| | |
| | | this.organizeData(sendData) |
| | | } else { |
| | | // 初始化页面 |
| | | this.getAllMapOutlineAction(); |
| | | this.$nextTick(() => { |
| | | this.getAllMapOutlineAction(); |
| | | }) |
| | | } |
| | | }, |
| | | organizeData(data) { |
| | |
| | | this.mapInfoY = poit[1] - 190; |
| | | }, 300); |
| | | }); |
| | | this.newPlatform = sessionStorage.getItem('newPlatform') |
| | | }, |
| | | destroyed() { |
| | | window.removeEventListener('resize', this.resize); |