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 | 15 | |
| 16 | 16 | //....设备 | 
| 17 | 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 | 1 | <template> | 
| 2 | 2 | <div class="main-content"> | 
| 3 | - {{equipment.PDA}} | |
| 4 | 3 | <v-header></v-header> | 
| 5 | 4 | <ul class="main-wrap"> | 
| 6 | 5 | <li class="main-left"> | 
| ... | ... | @@ -42,7 +41,7 @@ import VIncome from '../components/VIncome' | 
| 42 | 41 | import VBerth from '../components/VBerth' | 
| 43 | 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 | 46 | export default { | 
| 48 | 47 | name: 'VHome', | 
| ... | ... | @@ -157,11 +156,21 @@ export default { | 
| 157 | 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 | 170 | equipmentAddress({//设备 | 
| 161 | 171 | orgIds: this.GLOBAL.orignId | 
| 162 | 172 | }).then((response)=>{ | 
| 163 | 173 | let data = response.data.data | 
| 164 | - console.log(data) | |
| 165 | 174 | if(data[0].onNum == 0){ | 
| 166 | 175 | var PDAper = 0 | 
| 167 | 176 | }else{ | 
| ... | ... | @@ -212,7 +221,6 @@ export default { | 
| 212 | 221 | // ydp:150, | 
| 213 | 222 | // ydpTotal:300 | 
| 214 | 223 | // } | 
| 215 | - console.log(this.equipment) | |
| 216 | 224 | |
| 217 | 225 | }).catch((response)=>{ | 
| 218 | 226 | console.log(response); | ... | ... | 
