Commit f58839aae74a5101ee1d3a67a1bafc46b0383be8
1 parent
c607b4cc
dy
Showing
4 changed files
with
7 additions
and
6 deletions
src/api/api.js
| @@ -23,7 +23,7 @@ export const dayAddress = p => post('urban/intelligence/orderPark/queryOrderPark | @@ -23,7 +23,7 @@ export const dayAddress = p => post('urban/intelligence/orderPark/queryOrderPark | ||
| 23 | export const msgAddress = p => post('urban/intelligence/orderPark/queryLastOrderPark',p) | 23 | export const msgAddress = p => post('urban/intelligence/orderPark/queryLastOrderPark',p) |
| 24 | 24 | ||
| 25 | //....停车场总数 | 25 | //....停车场总数 |
| 26 | -export const parkAddress = p => post('urban/intelligence/park/queryParkNumStatisticByOrgIds',p) | 26 | +export const parkAddress = p => post('urban/intelligence/park/queryParkNumInfoStatisticByOrgIds',p) |
| 27 | 27 | ||
| 28 | //....用户数 | 28 | //....用户数 |
| 29 | export const memberAddress = p => post('urban/intelligence/appuser/queryUserPersonStatistic',p) | 29 | export const memberAddress = p => post('urban/intelligence/appuser/queryUserPersonStatistic',p) |
src/components/headerCommon.vue
src/utils/request.js
| @@ -6,7 +6,7 @@ const CancelToken = axios.CancelToken; | @@ -6,7 +6,7 @@ const CancelToken = axios.CancelToken; | ||
| 6 | //请求拦截器 // 在发送请求之前做些什么 | 6 | //请求拦截器 // 在发送请求之前做些什么 |
| 7 | axios.interceptors.request.use(config => { | 7 | axios.interceptors.request.use(config => { |
| 8 | //发起请求时,取消掉当前正在进行的相同请求 | 8 | //发起请求时,取消掉当前正在进行的相同请求 |
| 9 | - config.headers['x-auth-token'] = '18de1300-c3f2-4365-9f51-62f77614f8c5' | 9 | + config.headers['x-auth-token'] = 'fbea6e17-db8a-462a-8816-49a31c20307a' |
| 10 | //config.headers['x-auth-token'] = '6840160c-7c45-42c4-8736-805f13487565' //测试地址 | 10 | //config.headers['x-auth-token'] = '6840160c-7c45-42c4-8736-805f13487565' //测试地址 |
| 11 | config.data = { | 11 | config.data = { |
| 12 | ...config.data, | 12 | ...config.data, |
| @@ -75,7 +75,7 @@ axios.interceptors.response.use(response => { | @@ -75,7 +75,7 @@ axios.interceptors.response.use(response => { | ||
| 75 | //基础url前缀 | 75 | //基础url前缀 |
| 76 | //axios.defaults.baseURL = '/api' | 76 | //axios.defaults.baseURL = '/api' |
| 77 | 77 | ||
| 78 | -axios.defaults.baseURL = 'http://test.renniting.cn/bcp/'; | 78 | +axios.defaults.baseURL = 'http://106.15.191.5:8093/'; |
| 79 | //axios.defaults.baseURL = 'http://test.renniting.cn/bcp/';//测试地址 | 79 | //axios.defaults.baseURL = 'http://test.renniting.cn/bcp/';//测试地址 |
| 80 | //设置默认请求头 | 80 | //设置默认请求头 |
| 81 | // axios.defaults.withCredentials=true;//让ajax携带cookie | 81 | // axios.defaults.withCredentials=true;//让ajax携带cookie |
src/views/mapsection.vue
| @@ -80,7 +80,8 @@ export default { | @@ -80,7 +80,8 @@ export default { | ||
| 80 | orgIds: this.GLOBAL.paramsvariables | 80 | orgIds: this.GLOBAL.paramsvariables |
| 81 | }).then((response)=>{ | 81 | }).then((response)=>{ |
| 82 | const data = response.data.data | 82 | const data = response.data.data |
| 83 | - this.parkingtotal = data | 83 | + console.log(data) |
| 84 | + this.parkingtotal = data.allNum | ||
| 84 | }) | 85 | }) |
| 85 | memberAddress({ | 86 | memberAddress({ |
| 86 | orgIds: this.GLOBAL.paramsvariables | 87 | orgIds: this.GLOBAL.paramsvariables |
| @@ -95,7 +96,7 @@ export default { | @@ -95,7 +96,7 @@ export default { | ||
| 95 | this.incometotal = Math.round(data.totalPay/100) | 96 | this.incometotal = Math.round(data.totalPay/100) |
| 96 | }) | 97 | }) |
| 97 | serviceAddress({ | 98 | serviceAddress({ |
| 98 | - orgId: '10003' | 99 | + orgId: '10064' |
| 99 | }).then((response)=>{ | 100 | }).then((response)=>{ |
| 100 | const data = response.data.data | 101 | const data = response.data.data |
| 101 | console.log(data) | 102 | console.log(data) |