|
@@ -45,7 +45,7 @@ export default {
|
|
|
params:'{"httpMethod":"POST","path":"/api/resource/v1/cameras","headers":{},"query":{},"parameter":{},"body":{"pageNo": 1,"pageSize": 5000,"treeCode": "0"},"contentType":"application/json;charset=UTF-8","mock":false,"appKey":"27794545","appSecret":"5Xi27Gl7JrbHHF1MpdaB"}'
|
|
|
},
|
|
|
staticCount:0,
|
|
|
- dynamicCount:0,
|
|
|
+ dynamicCount:2,
|
|
|
areaCount:0
|
|
|
};
|
|
|
},
|
|
@@ -76,7 +76,7 @@ export default {
|
|
|
getResource(){
|
|
|
getResource({date:'2022-03-12'}).then(response =>{
|
|
|
console.log(response.data);
|
|
|
-
|
|
|
+
|
|
|
var trainArry = [];
|
|
|
var bridgeArry = [];
|
|
|
var railArry = [];
|
|
@@ -131,7 +131,7 @@ export default {
|
|
|
this.$refs.mapdiv.addPoints(stationLocation,'location.png',0.6,'location');
|
|
|
this.areaCount += response.data.area.length
|
|
|
this.staticCount += response.data.drone.length + stationLocation.length;
|
|
|
- // this.dynamicCount += response.data.deviceTrail.length
|
|
|
+ // this.dynamicCount += response.data.deviceTrail.length
|
|
|
this.dynamicCount += Object.getOwnPropertyNames(response.data.deviceTrail).length
|
|
|
})
|
|
|
},
|