Commit ec56dfe7 authored by 郭铭瑶's avatar 郭铭瑶 🤘

修改政务外网api

parent ddc1d334
...@@ -3,7 +3,7 @@ let STATIC_URL = '' ...@@ -3,7 +3,7 @@ let STATIC_URL = ''
switch (process.env.NODE_ENV) { switch (process.env.NODE_ENV) {
case 'production': case 'production':
BASE_URL = '' BASE_URL = ''
STATIC_URL = 'http://211.136.105.193/elev/static' STATIC_URL = 'http://10.220.105.137:81/elev/static'
break break
default: default:
BASE_URL = '' BASE_URL = ''
......
...@@ -299,7 +299,7 @@ export default { ...@@ -299,7 +299,7 @@ export default {
if (this.$route.query && this.$route.query.name) { // 判断路由有街镇则显示该街镇列表 if (this.$route.query && this.$route.query.name) { // 判断路由有街镇则显示该街镇列表
const streetName = this.$route.query.name const streetName = this.$route.query.name
/** ----请求电梯加装数据----- */ /** ----请求电梯加装数据----- */
const {data} = await axios.get(`http://211.136.105.193/apiv2/service-report/public/elv/consentRate?strName=${streetName}`) const {data} = await axios.get(`http://10.220.105.137:81/api/service-report/public/elv/consentRate?strName=${streetName}`)
this.eleDataSource = data && data.data && data.data.content // 请求 this.eleDataSource = data && data.data && data.data.content // 请求
/** ---------------------- */ /** ---------------------- */
const result = streets.find(key => streetName.indexOf(this.streetDic[key]) >= 0) // 取得相符的街镇数据 const result = streets.find(key => streetName.indexOf(this.streetDic[key]) >= 0) // 取得相符的街镇数据
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment