diff --git a/src/components/Map/streetSpace.vue b/src/components/Map/streetSpace.vue index 40824b5..6924ac2 100644 --- a/src/components/Map/streetSpace.vue +++ b/src/components/Map/streetSpace.vue @@ -23,7 +23,7 @@ // 数据id location: { type: Array, - default: () => [114.45370037156442, 30.525710664701975], + // default: () => [114.45370037156442, 30.525710664701975], }, }); const { proxy } = getCurrentInstance(); @@ -49,11 +49,14 @@ //根据中心点查找poi const searchPoiByLonlat = async () => { AllData.poiImages = []; + let poiData = await axios({ url: `/bdApi/baiduservice/placeSearch`, method: "GET", params: { - location: `${AllData.poiCircle[1]},${AllData.poiCircle[0]}`, + location: `${parseFloat(AllData.poiCircle[1].toFixed(6))},${parseFloat( + AllData.poiCircle[0].toFixed(6) + )}`, radius: 1000, query: "公交站$商场$著名景点$学校", }, diff --git a/src/components/Map/streetSpace.vue b/src/components/Map/streetSpace.vue index 40824b5..6924ac2 100644 --- a/src/components/Map/streetSpace.vue +++ b/src/components/Map/streetSpace.vue @@ -23,7 +23,7 @@ // 数据id location: { type: Array, - default: () => [114.45370037156442, 30.525710664701975], + // default: () => [114.45370037156442, 30.525710664701975], }, }); const { proxy } = getCurrentInstance(); @@ -49,11 +49,14 @@ //根据中心点查找poi const searchPoiByLonlat = async () => { AllData.poiImages = []; + let poiData = await axios({ url: `/bdApi/baiduservice/placeSearch`, method: "GET", params: { - location: `${AllData.poiCircle[1]},${AllData.poiCircle[0]}`, + location: `${parseFloat(AllData.poiCircle[1].toFixed(6))},${parseFloat( + AllData.poiCircle[0].toFixed(6) + )}`, radius: 1000, query: "公交站$商场$著名景点$学校", }, diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/components/MonBarChartsLeft2.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/components/MonBarChartsLeft2.vue index 0bfd2ac..dd65a8b 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/components/MonBarChartsLeft2.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/components/MonBarChartsLeft2.vue @@ -237,16 +237,17 @@ }, itemStyle: { borderRadius: [10, 0, 0, 10], - color: new proxy.echarts.graphic.LinearGradient(0, 0, 1, 1, [ - { - offset: 0, - color: "RGBA(0, 0, 0, 0.6)", - }, - { - offset: 1, - color: "RGBA(0, 0, 0, 1)", - }, - ]), + color: "#1e7dff", + // new proxy.echarts.graphic.LinearGradient(0, 0, 1, 1, [ + // { + // offset: 0, + // color: "RGBA(0, 0, 0, 0.6)", + // }, + // { + // offset: 1, + // color: "RGBA(0, 0, 0, 1)", + // }, + // ]), }, data: props.echartData.data1, }, @@ -260,20 +261,21 @@ label: { show: true, formatter: "{c} h", - color: "black", + color: "white", }, itemStyle: { borderRadius: [0, 10, 10, 0], - color: new proxy.echarts.graphic.LinearGradient(0, 0, 1, 1, [ - { - offset: 0, - color: "rgba(255, 255, 255, 1)", - }, - { - offset: 1, - color: "rgba(255, 255, 255, 0.6)", - }, - ]), + color: "#23ffed", + // new proxy.echarts.graphic.LinearGradient(0, 0, 1, 1, [ + // { + // offset: 0, + // color: "rgba(255, 255, 255, 1)", + // }, + // { + // offset: 1, + // color: "rgba(255, 255, 255, 0.6)", + // }, + // ]), }, data: props.echartData.data2, }, diff --git a/src/components/Map/streetSpace.vue b/src/components/Map/streetSpace.vue index 40824b5..6924ac2 100644 --- a/src/components/Map/streetSpace.vue +++ b/src/components/Map/streetSpace.vue @@ -23,7 +23,7 @@ // 数据id location: { type: Array, - default: () => [114.45370037156442, 30.525710664701975], + // default: () => [114.45370037156442, 30.525710664701975], }, }); const { proxy } = getCurrentInstance(); @@ -49,11 +49,14 @@ //根据中心点查找poi const searchPoiByLonlat = async () => { AllData.poiImages = []; + let poiData = await axios({ url: `/bdApi/baiduservice/placeSearch`, method: "GET", params: { - location: `${AllData.poiCircle[1]},${AllData.poiCircle[0]}`, + location: `${parseFloat(AllData.poiCircle[1].toFixed(6))},${parseFloat( + AllData.poiCircle[0].toFixed(6) + )}`, radius: 1000, query: "公交站$商场$著名景点$学校", }, diff --git a/src/views/pictureOnMap/page/MonitoringAnalysis/components/MonBarChartsLeft2.vue b/src/views/pictureOnMap/page/MonitoringAnalysis/components/MonBarChartsLeft2.vue index 0bfd2ac..dd65a8b 100644 --- a/src/views/pictureOnMap/page/MonitoringAnalysis/components/MonBarChartsLeft2.vue +++ b/src/views/pictureOnMap/page/MonitoringAnalysis/components/MonBarChartsLeft2.vue @@ -237,16 +237,17 @@ }, itemStyle: { borderRadius: [10, 0, 0, 10], - color: new proxy.echarts.graphic.LinearGradient(0, 0, 1, 1, [ - { - offset: 0, - color: "RGBA(0, 0, 0, 0.6)", - }, - { - offset: 1, - color: "RGBA(0, 0, 0, 1)", - }, - ]), + color: "#1e7dff", + // new proxy.echarts.graphic.LinearGradient(0, 0, 1, 1, [ + // { + // offset: 0, + // color: "RGBA(0, 0, 0, 0.6)", + // }, + // { + // offset: 1, + // color: "RGBA(0, 0, 0, 1)", + // }, + // ]), }, data: props.echartData.data1, }, @@ -260,20 +261,21 @@ label: { show: true, formatter: "{c} h", - color: "black", + color: "white", }, itemStyle: { borderRadius: [0, 10, 10, 0], - color: new proxy.echarts.graphic.LinearGradient(0, 0, 1, 1, [ - { - offset: 0, - color: "rgba(255, 255, 255, 1)", - }, - { - offset: 1, - color: "rgba(255, 255, 255, 0.6)", - }, - ]), + color: "#23ffed", + // new proxy.echarts.graphic.LinearGradient(0, 0, 1, 1, [ + // { + // offset: 0, + // color: "rgba(255, 255, 255, 1)", + // }, + // { + // offset: 1, + // color: "rgba(255, 255, 255, 0.6)", + // }, + // ]), }, data: props.echartData.data2, }, diff --git a/vite.config.js b/vite.config.js index c5c2346..02ad574 100644 --- a/vite.config.js +++ b/vite.config.js @@ -5,10 +5,10 @@ import autoprefixer from 'autoprefixer'; const Timestamp = new Date().getTime(); //随机时间戳 -// let ipLink = 'https://server1.wh-nf.cn:8201/prod-api'; +let ipLink = 'https://server1.wh-nf.cn:8201/prod-api'; // let ipLink = 'http://192.168.16.135:9100'; // let ipLink = 'http://192.168.16.124:9100'; -let ipLink = 'http://192.168.20.43:9100'; +// let ipLink = 'http://192.168.20.43:9100'; /* */ // https://vitejs.dev/config/ export default defineConfig(({ mode, command }) => {