diff --git a/src/api/form.js b/src/api/form.js index a2f13c0..e596809 100644 --- a/src/api/form.js +++ b/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 + }) + }, + } diff --git a/src/views/Brand.vue b/src/views/Brand.vue index 40f42e3..515a949 100644 --- a/src/views/Brand.vue +++ b/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