前端配置文件的简化和统一

This commit is contained in:
kerwincui
2022-06-23 01:41:44 +08:00
parent 966318e5cf
commit f88bc5fdf3
11 changed files with 80 additions and 36 deletions

View File

@@ -360,7 +360,7 @@ import * as echarts from 'echarts';
require('echarts/theme/macarons') // echarts theme
import {
loadBMap
} from './iot/map.js'
} from '@/utils/map.js'
//安装的是echarts完整包里面包含百度地图扩展路径为 echarts/extension/bmap/bmap.js将其引入
//ECharts的百度地图扩展可以在百度地图上展现点图线图热力图等可视化
require('echarts/extension/bmap/bmap')
@@ -480,11 +480,15 @@ export default {
listAllDeviceShort(this.queryParams).then(response => {
this.deviceList = response.rows;
this.deviceCount = response.total;
this.$nextTick(() => {
loadBMap().then(() => {
this.getmap();
});
})
this.loadMap();
})
},
/**加载地图*/
loadMap() {
this.$nextTick(() => {
loadBMap().then(() => {
this.getmap();
});
})
},
/** 查询emqx统计*/