Commit 84109d860a992dbf13e8a8851df040bbbd813adf
1 parent
74b22660
地图 数据
Showing
2 changed files
with
15 additions
and
4 deletions
src/utils/api.js
| @@ -15,3 +15,6 @@ export const berthAddress = p => post('urban/intelligence/berth/queryBerthStatis | @@ -15,3 +15,6 @@ export const berthAddress = p => post('urban/intelligence/berth/queryBerthStatis | ||
| 15 | 15 | ||
| 16 | //....设备 | 16 | //....设备 | 
| 17 | export const equipmentAddress = p => post('urban/intelligence/device/queryDeviceStatistic',p) | 17 | export const equipmentAddress = p => post('urban/intelligence/device/queryDeviceStatistic',p) | 
| 18 | + | ||
| 19 | +//....地图 | ||
| 20 | +export const mapAddress = p => post('urban/intelligence/park/queryParkDetailInfoByOrgIds',p) | 
src/view/VHome.vue
| 1 | <template> | 1 | <template> | 
| 2 | <div class="main-content"> | 2 | <div class="main-content"> | 
| 3 | - {{equipment.PDA}} | ||
| 4 | <v-header></v-header> | 3 | <v-header></v-header> | 
| 5 | <ul class="main-wrap"> | 4 | <ul class="main-wrap"> | 
| 6 | <li class="main-left"> | 5 | <li class="main-left"> | 
| @@ -42,7 +41,7 @@ import VIncome from '../components/VIncome' | @@ -42,7 +41,7 @@ import VIncome from '../components/VIncome' | ||
| 42 | import VBerth from '../components/VBerth' | 41 | import VBerth from '../components/VBerth' | 
| 43 | import VEquipment from '../components/VEquipment' | 42 | import VEquipment from '../components/VEquipment' | 
| 44 | 43 | ||
| 45 | -import { parkAddress, tollAddress, incomeAddress, berthAddress, equipmentAddress } from '../utils/api' | 44 | +import { parkAddress, tollAddress, incomeAddress, berthAddress, equipmentAddress, mapAddress } from '../utils/api' | 
| 46 | 45 | ||
| 47 | export default { | 46 | export default { | 
| 48 | name: 'VHome', | 47 | name: 'VHome', | 
| @@ -157,11 +156,21 @@ export default { | @@ -157,11 +156,21 @@ export default { | ||
| 157 | console.log(response); | 156 | console.log(response); | 
| 158 | }) | 157 | }) | 
| 159 | 158 | ||
| 159 | + mapAddress({//地图 | ||
| 160 | + orgIds: this.GLOBAL.orignId | ||
| 161 | + }).then((response)=>{ | ||
| 162 | + let data = response.data.data | ||
| 163 | + console.log(response) | ||
| 164 | + }).catch((response)=>{ | ||
| 165 | + console.log(response); | ||
| 166 | + }) | ||
| 167 | + | ||
| 168 | + | ||
| 169 | + | ||
| 160 | equipmentAddress({//设备 | 170 | equipmentAddress({//设备 | 
| 161 | orgIds: this.GLOBAL.orignId | 171 | orgIds: this.GLOBAL.orignId | 
| 162 | }).then((response)=>{ | 172 | }).then((response)=>{ | 
| 163 | let data = response.data.data | 173 | let data = response.data.data | 
| 164 | - console.log(data) | ||
| 165 | if(data[0].onNum == 0){ | 174 | if(data[0].onNum == 0){ | 
| 166 | var PDAper = 0 | 175 | var PDAper = 0 | 
| 167 | }else{ | 176 | }else{ | 
| @@ -212,7 +221,6 @@ export default { | @@ -212,7 +221,6 @@ export default { | ||
| 212 | // ydp:150, | 221 | // ydp:150, | 
| 213 | // ydpTotal:300 | 222 | // ydpTotal:300 | 
| 214 | // } | 223 | // } | 
| 215 | - console.log(this.equipment) | ||
| 216 | 224 | ||
| 217 | }).catch((response)=>{ | 225 | }).catch((response)=>{ | 
| 218 | console.log(response); | 226 | console.log(response); | 
