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 | 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 | 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 | 6 | //请求拦截器 // 在发送请求之前做些什么 |
7 | 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 | 10 | //config.headers['x-auth-token'] = '6840160c-7c45-42c4-8736-805f13487565' //测试地址 |
11 | 11 | config.data = { |
12 | 12 | ...config.data, |
... | ... | @@ -75,7 +75,7 @@ axios.interceptors.response.use(response => { |
75 | 75 | //基础url前缀 |
76 | 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 | 79 | //axios.defaults.baseURL = 'http://test.renniting.cn/bcp/';//测试地址 |
80 | 80 | //设置默认请求头 |
81 | 81 | // axios.defaults.withCredentials=true;//让ajax携带cookie | ... | ... |
src/views/mapsection.vue
... | ... | @@ -80,7 +80,8 @@ export default { |
80 | 80 | orgIds: this.GLOBAL.paramsvariables |
81 | 81 | }).then((response)=>{ |
82 | 82 | const data = response.data.data |
83 | - this.parkingtotal = data | |
83 | + console.log(data) | |
84 | + this.parkingtotal = data.allNum | |
84 | 85 | }) |
85 | 86 | memberAddress({ |
86 | 87 | orgIds: this.GLOBAL.paramsvariables |
... | ... | @@ -95,7 +96,7 @@ export default { |
95 | 96 | this.incometotal = Math.round(data.totalPay/100) |
96 | 97 | }) |
97 | 98 | serviceAddress({ |
98 | - orgId: '10003' | |
99 | + orgId: '10064' | |
99 | 100 | }).then((response)=>{ |
100 | 101 | const data = response.data.data |
101 | 102 | console.log(data) | ... | ... |