|
@@ -454,6 +454,7 @@
|
|
|
// this.getUserInfo();
|
|
|
this.getSOSInfo();
|
|
|
this.getLogInfo();
|
|
|
+
|
|
|
},
|
|
|
//设备类型转化
|
|
|
deviceTypeGetter(item) {
|
|
@@ -502,6 +503,10 @@
|
|
|
this.$http.get("bulletinBoard/user_info/" + partId).then(response => {
|
|
|
const data = response.data.memberList;
|
|
|
this.mapOption = this.initMap();
|
|
|
+ if (!data.memberList.length || !data.memberList[0].lng_lat) {
|
|
|
+ console.log('memberList或经纬度 为空', this.mapOption.bmap);
|
|
|
+ return
|
|
|
+ }
|
|
|
// console.log('悬停获取地图数据,data==== ', data);
|
|
|
const d = [];
|
|
|
if (data.length > 0) {
|
|
@@ -684,11 +689,11 @@
|
|
|
this.womanCount = data.userCount.woman_count || 0;
|
|
|
|
|
|
// 地图人员分布
|
|
|
-
|
|
|
+
|
|
|
// console.log('获取看板用户信息@@@@@', data.memberList[0]);
|
|
|
- if (!data.memberList.length || !data.memberList[0].lng_lat ) {
|
|
|
- console.log('memberList或经纬度 为空');
|
|
|
- return;
|
|
|
+ if (!data.memberList.length || !data.memberList[0].lng_lat) {
|
|
|
+ console.log('memberList或经纬度 为空', this.mapOption.bmap);
|
|
|
+ return
|
|
|
}
|
|
|
this.mapOption = this.initMap();
|
|
|
if (data.memberList.length > 0) {
|
|
@@ -703,6 +708,8 @@
|
|
|
this.mapOption.bmap.zoom = 16;
|
|
|
}
|
|
|
this.myMapChart.setOption(this.mapOption);
|
|
|
+
|
|
|
+ // console.log('memberList或经纬度 为空', this.myMapChart);
|
|
|
window.addEventListener('resize', this.myMapChart.resize);
|
|
|
|
|
|
// 年龄段饼图
|