Browse Source

合并

master
j1ack 3 years ago
parent
commit
19ca799ce6
  1. 9
      src/api/form.js
  2. 17
      src/views/Brand.vue

9
src/api/form.js

@ -74,4 +74,13 @@ export const BiApi = {
params: query
})
},
// 开放统计-车场车辆数量
parkingCarNum: (query) => {
return request({
url: '/pk/openup/OpenStatisticsController/parkingCarNum',
method: 'get',
params: query
})
},
}

17
src/views/Brand.vue

@ -174,11 +174,7 @@ export default {
heartTimes: 0, //
geoCoordMap: {},
XAData: [
[{ name: "长沙" }, { name: "北京", value: 100 }],
[{ name: "长沙" }, { name: "上海", value: 100 }],
[{ name: "长沙" }, { name: "广州", value: 100 }],
[{ name: "长沙" }, { name: "深圳", value: 100 }],
[{ name: "长沙" }, { name: "西安", value: 100 }],
],
XNData: [
[{ name: "长沙" }, { name: "西宁", value: 100 }],
@ -202,7 +198,9 @@ export default {
},
mounted() {
this.heart();
setTimeout(() => {
this.getEchart();
}, 800);
},
methods: {
/**
@ -250,6 +248,14 @@ export default {
BiApi.useCarStatistics({ authCode: this.authCode }).then((res) => {
this.useCarCon = res.data
})
BiApi.parkingCarNum({ authCode: this.authCode }).then((res) => {
// this.useCarCon = res.data
for(var i=0;i<res.data.length;i++){
this.XAData.push(
[{ name: "长沙" }, { name: "宝安体育馆停车场", value: res.data[i].useCarNum }]
)
}
})
},
/**
@ -322,6 +328,7 @@ export default {
let myChart = echarts.init(document.getElementById("chart_map"));
this.geoCoordMap = {
宝安体育馆停车场: [113.884791, 22.560888],
上海: [121.4648, 31.2891],
东莞: [113.8953, 22.901],
东营: [118.7073, 37.5513],

Loading…
Cancel
Save