fix: 移除地图组件中请求地图列表时多余的后端地址前缀;修复飞线地图经纬度数据错位问题

main
hong.yang 1 year ago
parent cee7a1d8bd
commit 7f0be714c8

@ -138,11 +138,11 @@ export default {
this.config.option.data.forEach(val => {
// 线
lines_coord.push({value: val[value], msg: {...val}, coords: [[val[fromLat], val[fromLng]], [val[toLat], val[toLng]]]})
lines_coord.push({value: val[value], msg: {...val}, coords: [[val[fromLng], val[fromLat]], [val[toLng], val[toLat]]]})
//
fromCoord.push({name: val[fromName], value: [val[fromLat], val[fromLng], val[value]], msg: {...val}})
fromCoord.push({name: val[fromName], value: [val[fromLng], val[fromLat], val[value]], msg: {...val}})
//
coord.push({name: val[toName], value: [val[toLat], val[toLng], val[value]], msg: {...val}})
coord.push({name: val[toName], value: [val[toLng], val[toLat], val[value]], msg: {...val}})
})
}
let mapData = hasMapId ? JSON.parse(res.data.geoJson) : res

@ -478,7 +478,7 @@ export default {
if (!levelConst.includes(this.config.customize.level)) {
this.config.customize.level = this.oldLevelMap[this.config.customize.level] || '0'
}
this.$dataRoomAxios.get(`${window.BS_CONFIG?.httpConfigs?.baseURL}/bigScreen/map/tree/${this.config.customize.level}`).then((res) => {
this.$dataRoomAxios.get(`/bigScreen/map/tree/${this.config.customize.level}`).then((res) => {
this.mapTree = res
})
},

@ -513,7 +513,7 @@ export default {
if (!levelConst.includes(this.config.customize.level)) {
this.config.customize.level = this.oldLevelMap[this.config.customize.level] || '0'
}
this.$dataRoomAxios.get(`${window.BS_CONFIG?.httpConfigs?.baseURL}/bigScreen/map/tree/${this.config.customize.level}`).then((res) => {
this.$dataRoomAxios.get(`/bigScreen/map/tree/${this.config.customize.level}`).then((res) => {
this.mapTree = res
})
},

Loading…
Cancel
Save