diff --git a/src/views/DialogTabs/component/streetscape.vue b/src/views/DialogTabs/component/streetscape.vue index 9d94179..77d2b28 100644 --- a/src/views/DialogTabs/component/streetscape.vue +++ b/src/views/DialogTabs/component/streetscape.vue @@ -39,27 +39,32 @@ method: 'GET', params: { location: `${AllData.poiCircle[1]},${AllData.poiCircle[0]}`, - radius: 200, + radius: 500, query: '公交站$商场$著名景点$学校', }, }); - if (poiData & poiData.data.length) { + console.log(poiData, 'poiDatapoiDatapoiData'); + if (poiData && poiData.data.length) { console.log('poiData---', poiData); - element.image = getStreetImg([element.location.lng, element.location.lat]); poiData.data.forEach(element => { + console.log(element, 'elementelementelement'); + getStreetImg([element.location.lng, element.location.lat]); + console.log(a.value, '111111111----'); AllData.poiImages.push({ name: element.name, lonlat: [element.location.lng, element.location.lat], - imagesUrl: element.image, + imagesUrl: data.data.base64, }); }); + console.log('AllData.poiImages---', AllData.poiImages); } - console.log('AllData.poiImages---', AllData.poiImages); }; +const a = ref(''); //获取全景静态图 const getStreetImg = async lonlat => { + console.log(lonlat, 'lonlatlonlatlonlatlonlat'); let data = await request({ - url: `/bdApi/baiduservice/panorama`, + url: `/bdApi//baiduservice/panorama`, method: 'GET', params: { location: `${lonlat[0]},${lonlat[1]}`, @@ -69,12 +74,16 @@ }, }); if (data && data.data) { + console.log(data.data.base64, 'data.data.base64'); data.data.base64 = 'data:image/jpeg;base64,' + data.data.base64; + a.value = data.data.base64; + console.log(a.value, '22222222-'); return data.data.base64; } }; onMounted(() => { initePanoramaMap(); + bus.on('streetPosition', e => { console.log('streetPosition---', e); let position_Street = turf.point(e); diff --git a/src/views/DialogTabs/component/streetscape.vue b/src/views/DialogTabs/component/streetscape.vue index 9d94179..77d2b28 100644 --- a/src/views/DialogTabs/component/streetscape.vue +++ b/src/views/DialogTabs/component/streetscape.vue @@ -39,27 +39,32 @@ method: 'GET', params: { location: `${AllData.poiCircle[1]},${AllData.poiCircle[0]}`, - radius: 200, + radius: 500, query: '公交站$商场$著名景点$学校', }, }); - if (poiData & poiData.data.length) { + console.log(poiData, 'poiDatapoiDatapoiData'); + if (poiData && poiData.data.length) { console.log('poiData---', poiData); - element.image = getStreetImg([element.location.lng, element.location.lat]); poiData.data.forEach(element => { + console.log(element, 'elementelementelement'); + getStreetImg([element.location.lng, element.location.lat]); + console.log(a.value, '111111111----'); AllData.poiImages.push({ name: element.name, lonlat: [element.location.lng, element.location.lat], - imagesUrl: element.image, + imagesUrl: data.data.base64, }); }); + console.log('AllData.poiImages---', AllData.poiImages); } - console.log('AllData.poiImages---', AllData.poiImages); }; +const a = ref(''); //获取全景静态图 const getStreetImg = async lonlat => { + console.log(lonlat, 'lonlatlonlatlonlatlonlat'); let data = await request({ - url: `/bdApi/baiduservice/panorama`, + url: `/bdApi//baiduservice/panorama`, method: 'GET', params: { location: `${lonlat[0]},${lonlat[1]}`, @@ -69,12 +74,16 @@ }, }); if (data && data.data) { + console.log(data.data.base64, 'data.data.base64'); data.data.base64 = 'data:image/jpeg;base64,' + data.data.base64; + a.value = data.data.base64; + console.log(a.value, '22222222-'); return data.data.base64; } }; onMounted(() => { initePanoramaMap(); + bus.on('streetPosition', e => { console.log('streetPosition---', e); let position_Street = turf.point(e); diff --git a/src/views/oneMap/FloodStuationReview/xqRightBox.vue b/src/views/oneMap/FloodStuationReview/xqRightBox.vue index b525a09..4590089 100644 --- a/src/views/oneMap/FloodStuationReview/xqRightBox.vue +++ b/src/views/oneMap/FloodStuationReview/xqRightBox.vue @@ -267,7 +267,7 @@ function jqdtclick(val) { jqdtname.value = val.name; - if (jqdtname.value == '') { + if (jqdtname.value == '已处理') { problemList.value = [ { remark: '雨水箅子堵塞',