diff --git a/config/dev.env.js b/config/dev.env.js index 57b1c13..00401a9 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -10,8 +10,8 @@ // BASE_API: '"http://106.74.146.218:2031"' // BASE_API: '"http://192.168.0.212:8083"' // BASE_API: '"http://192.168.13.116:8085/callcenter/api"' - // BASE_API: '"http://111.198.10.15:11402/callcenter/api"' - BASE_API: '"http://11.100.6.163:8083/callcenter/api"' + BASE_API: '"http://111.198.10.15:11402/callcenter/api"' + // BASE_API: '"http://11.100.6.163:8083/callcenter/api"' // BASE_API: '"http://11.100.6.163:8087/callcenter/api"' // BASE_API: '"http://192.168.0.123:20007"' // BASE_API: '"http://192.168.2.107:20007"' diff --git a/config/dev.env.js b/config/dev.env.js index 57b1c13..00401a9 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -10,8 +10,8 @@ // BASE_API: '"http://106.74.146.218:2031"' // BASE_API: '"http://192.168.0.212:8083"' // BASE_API: '"http://192.168.13.116:8085/callcenter/api"' - // BASE_API: '"http://111.198.10.15:11402/callcenter/api"' - BASE_API: '"http://11.100.6.163:8083/callcenter/api"' + BASE_API: '"http://111.198.10.15:11402/callcenter/api"' + // BASE_API: '"http://11.100.6.163:8083/callcenter/api"' // BASE_API: '"http://11.100.6.163:8087/callcenter/api"' // BASE_API: '"http://192.168.0.123:20007"' // BASE_API: '"http://192.168.2.107:20007"' diff --git a/src/settings.js b/src/settings.js index e9d1b62..ea1204a 100644 --- a/src/settings.js +++ b/src/settings.js @@ -1,7 +1,8 @@ module.exports = { // 单点登录sso地址 // ssoServer: 'http://city.bushub.rj.prd/authCenter/ssoServer', - ssoServer: 'http://11.100.5.113:31102/ssoServer', + // ssoServer: 'http://11.100.5.113:31102/ssoServer', + ssoServer: 'http://182.92.120.130:8808/ssoServer', // appId appId: ' 887390570066092032', /** diff --git a/config/dev.env.js b/config/dev.env.js index 57b1c13..00401a9 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -10,8 +10,8 @@ // BASE_API: '"http://106.74.146.218:2031"' // BASE_API: '"http://192.168.0.212:8083"' // BASE_API: '"http://192.168.13.116:8085/callcenter/api"' - // BASE_API: '"http://111.198.10.15:11402/callcenter/api"' - BASE_API: '"http://11.100.6.163:8083/callcenter/api"' + BASE_API: '"http://111.198.10.15:11402/callcenter/api"' + // BASE_API: '"http://11.100.6.163:8083/callcenter/api"' // BASE_API: '"http://11.100.6.163:8087/callcenter/api"' // BASE_API: '"http://192.168.0.123:20007"' // BASE_API: '"http://192.168.2.107:20007"' diff --git a/src/settings.js b/src/settings.js index e9d1b62..ea1204a 100644 --- a/src/settings.js +++ b/src/settings.js @@ -1,7 +1,8 @@ module.exports = { // 单点登录sso地址 // ssoServer: 'http://city.bushub.rj.prd/authCenter/ssoServer', - ssoServer: 'http://11.100.5.113:31102/ssoServer', + // ssoServer: 'http://11.100.5.113:31102/ssoServer', + ssoServer: 'http://182.92.120.130:8808/ssoServer', // appId appId: ' 887390570066092032', /** diff --git a/src/views/caseManage/createCase.vue b/src/views/caseManage/createCase.vue index 0138868..480ff5d 100644 --- a/src/views/caseManage/createCase.vue +++ b/src/views/caseManage/createCase.vue @@ -180,7 +180,7 @@ 查询 - 确定 + 确定 说明:双击添加位置, 当前坐标:{{ currentPosition.lng }},{{ currentPosition.lat }} @@ -648,24 +648,27 @@ }, // 确定, 保存坐标并返回 confirmPos() { - this.form.lng = this.currentPosition.lng - this.form.lat = this.currentPosition.lat - // todo: 进行逆地址解析 - matchReverse(this.currentPosition.lng,this.currentPosition.lat).then(res=>{ - debugger - if(res.data.length>0){ - this.form.address= { - areaCode: res.data[0].politicalCode.substring(0,6), // 区域ID - streetCode: res.data[0].politicalCode.substring(0,9), // 街道ID - communityCode: res.data[0].politicalCode, // 社区ID - gridId: '', // 网格ID - fieldintro: res.data[0].standardAddressName.substring(10) // 事件地址 + if(this.currentPosition.lng!='0'){ + this.form.lng = this.currentPosition.lng + this.form.lat = this.currentPosition.lat + // 进行逆地址解析 + matchReverse(this.currentPosition.lng,this.currentPosition.lat).then(res=>{ + if(res.data.length>0){ + this.form.address= { + areaCode: res.data[0].politicalCode.substring(0,6), // 区域ID + streetCode: res.data[0].politicalCode.substring(0,9), // 街道ID + communityCode: res.data[0].politicalCode, // 社区ID + gridId: '', // 网格ID + fieldintro: res.data[0].standardAddressName.substring(10) // 事件地址 + } } - } - }) - this.showMap = false - this.clearMap() - console.log(this.form) + }).catch(()=>{ + console.log('逆地址解析失败') + }) + this.showMap = false + this.clearMap() + console.log(this.form) + } }, // 清除地图 clearMap() {