+
@@ -26,36 +32,36 @@
import { ref, reactive, toRefs, onMounted } from 'vue';
// 顶部信息展示
-import QL_WD from '@/assets/images/Sponge_screen/QiaoLiang/QL_WD.png';
-import QL_SD from '@/assets/images/Sponge_screen/QiaoLiang/QL_SD.png';
-import QL_FS from '@/assets/images/Sponge_screen/QiaoLiang/QL_FS.png';
-import QL_FL from '@/assets/images/Sponge_screen/QiaoLiang/QL_FL.png';
+import QL_WD from "@/assets/images/Sponge_screen/QiaoLiang/QL_WD.png";
+import QL_SD from "@/assets/images/Sponge_screen/QiaoLiang/QL_SD.png";
+import QL_FS from "@/assets/images/Sponge_screen/QiaoLiang/QL_FS.png";
+import QL_FL from "@/assets/images/Sponge_screen/QiaoLiang/QL_FL.png";
const AllData = reactive({
// 顶部信息展示
TopInfoData: [
{
icon: QL_WD,
- font: '温度',
- num: '16',
- unit: '℃',
+ font: "温度",
+ num: "16",
+ unit: "℃",
},
{
icon: QL_SD,
- font: '湿度',
- num: '32',
- unit: '%',
+ font: "湿度",
+ num: "32",
+ unit: "%",
},
{
icon: QL_FS,
- font: '风速',
- num: '5.2',
- unit: 'm/s',
+ font: "风速",
+ num: "5.2",
+ unit: "m/s",
},
{
icon: QL_FL,
- font: '风力',
- num: '4',
- unit: '级',
+ font: "风力",
+ num: "4",
+ unit: "级",
},
],
});
@@ -84,7 +90,11 @@
position: absolute;
left: 10px;
top: 70px;
- background: linear-gradient(0deg, rgba(0, 43, 67, 0.8) 0%, rgba(0, 69, 108, 0.8) 100%);
+ background: linear-gradient(
+ 0deg,
+ rgba(0, 43, 67, 0.8) 0%,
+ rgba(0, 69, 108, 0.8) 100%
+ );
border-radius: 6px;
border: 1px solid #47eef3;
box-sizing: border-box;
@@ -97,7 +107,11 @@
position: absolute;
right: 10px;
top: 70px;
- background: linear-gradient(0deg, rgba(0, 43, 67, 0.8) 0%, rgba(0, 69, 108, 0.8) 100%);
+ background: linear-gradient(
+ 0deg,
+ rgba(0, 43, 67, 0.8) 0%,
+ rgba(0, 69, 108, 0.8) 100%
+ );
border-radius: 6px;
border: 1px solid #47eef3;
box-sizing: border-box;
@@ -173,7 +187,8 @@
.Box_header {
width: 100%;
height: 43px;
- background: url('@/assets/images/Sponge_screen/Box_HeaderBackground.png') no-repeat center;
+ background: url("@/assets/images/Sponge_screen/Box_HeaderBackground.png") no-repeat
+ center;
background-size: cover;
font-family: PangMenZhengDao;
font-weight: 400;
diff --git a/src/views/oneMap/components/mapboxPopup.vue b/src/views/oneMap/components/mapboxPopup.vue
index b5b6e5f..b3ce617 100644
--- a/src/views/oneMap/components/mapboxPopup.vue
+++ b/src/views/oneMap/components/mapboxPopup.vue
@@ -289,6 +289,7 @@
dataList: {},
popupShow: false,
dateTime: [proxy.moment(new Date()).subtract(7, 'days').format('YYYY-MM-DD'), proxy.moment().format('YYYY-MM-DD')],
+ streetPosition: null,
});
const dataOption = ref([]);
const selectData = ref([]);
@@ -469,7 +470,14 @@
};
//街景弹框点击事件
const showStreetLayer = () => {
- console.log('少爷在这里加~~~~~~~~~');
+ let data = {
+ title: '街景',
+ comIDs: ['streetscape'],
+ };
+ bus.emit('publicDialog', data);
+ setTimeout(() => {
+ bus.emit('streetPosition', allData.streetPosition);
+ }, 200);
};
onMounted(() => {
bus.on('closeCesiumPopup', () => {
@@ -480,6 +488,7 @@
});
bus.on('popupcontent', params => {
console.log('popup接收地图标注点值---111', params);
+ allData.streetPosition = params.point;
allData.dataList = params.popupInfo;
let pipePopupDiv = document.getElementById('cesiumPopupID');
diff --git a/src/views/oneMap/index.vue b/src/views/oneMap/index.vue
index ce08424..64cfe29 100644
--- a/src/views/oneMap/index.vue
+++ b/src/views/oneMap/index.vue
@@ -175,8 +175,7 @@
import AC_ZHHM from '@/assets/images/Sponge_screen/menu/AC_ZHHM.png';
// 引用地图
import OneMap from './map/newfiberMapBox.vue';
-// 引用街景地图
-import PanoramaMap from '@/views/oneMap/map/PanoramaMap.vue';
+
// 引用王家坪大桥BIm
import WangJiaPingBIM from './BIM/WangJiaPIng.vue';
// 引用隧道BIm
@@ -619,114 +618,6 @@
const handleMouseLeave = item => {
AllData.ErJiMenuShowID = null;
};
-
-// async function urlToFile(url, fileName) {
-// // 使用 fetch 获取图片并转换为 Blob
-// const response = await fetch(url);
-// const blob = await response.blob();
-// // 将 Blob 转换为 File 对象
-// const file = new File([blob], fileName, { type: blob.type });
-// return file;
-// }
-
-// const createCanvas = (id)=>{
-// let canvas = document.createElement("canvas");
-// canvas.id = "canvas"+id;
-// canvas.style.display = 'none';
-// document.body.append(canvas);
-// return canvas;
-// }
-
-// const createPlot = async (e,canvas)=>{
-// var tif = await GeoTIFF.fromArrayBuffer( e.target.result);
-// var tifImg = await tif.getImage();
-// var readRasters = await tifImg.readRasters();
-// plot == null &&(plot = new plotty.plot({canvas, data: readRasters[0], width: tifImg.getWidth(), height: tifImg.getHeight(), domain: [0, 256], colorScale: "mycolorscale"}));
-// plot.setData(readRasters[0],tifImg.getWidth(),tifImg.getHeight());
-// plot.render();
-// }
-
-// const createCanvasLayer = (canvasId,i,bbox)=>{
-// bbox = [[bbox[0],bbox[3]],[bbox[2],bbox[3]],[bbox[2],bbox[1]],[bbox[0],bbox[1]]];
-// newfiberMapbox.map.addSource('canvas-source'+i, {
-// type: 'canvas',
-// canvas: canvasId ,
-// coordinates: bbox,
-// animate: true
-// });
-
-// newfiberMapbox.map.addLayer({
-// id: 'canvas-layer'+i,
-// type: 'raster',
-// source: 'canvas-source'+i
-// });
-// newfiberMapbox.map.moveLayer('canvas-layer'+i);
-// }
-
-// const plotInit =(colorScale=colorScale)=>{
-// const minVal = colorScale[0].value;
-// const maxVal = colorScale[colorScale.length -1].value;
-// let color = colorScale.filter(i => Number(i.value) / maxVal <= 1);
-// if(color[color.length-1].value / maxVal < 1) color.push({value:maxVal,color:colorScale[color.length].color});
-// plotty.addColorScale("mycolorscale",color.map(i => i.color), color.map(i => (i.value / maxVal).toFixed(5)));
-// }
-
-// let colorScale = [
-// {value: "0", color: "rgba(7, 213, 118, 0)"},
-// {value: "0.1", color: "rgba(7, 213, 118, 0)"},
-// {value: "5", color: "rgba(7, 213, 118, 1)"},
-// {value: "15", color: "rgba(38, 129, 240,1)"},
-// {value: "30", color: "rgba(247, 223, 56, 1)"},
-// {value: "70", color: "rgba(230, 85, 41, 1)"},
-// {value: "140", color: "rgba(255, 26, 26, 1)"},
-// ]
-// let imageFiles = [];
-// let canvas = [];
-// let plot = null;
-// const initRainImage = async ()=>{
-// const images = [
-// "http://192.168.16.133:9994/tif/0819_0.tif",
-// "http://192.168.16.133:9994/tif/0819_1.tif",
-// "http://192.168.16.133:9994/tif/0819_2.tif",
-// "http://192.168.16.133:9994/tif/0819_3.tif",
-// "http://192.168.16.133:9994/tif/0819_4.tif",
-// "http://192.168.16.133:9994/tif/0819_5.tif",
-// "http://192.168.16.133:9994/tif/0819_6.tif",
-// "http://192.168.16.133:9994/tif/0819_7.tif",
-// "http://192.168.16.133:9994/tif/0819_8.tif",
-// "http://192.168.16.133:9994/tif/0819_9.tif",
-// "http://192.168.16.133:9994/tif/0819_10.tif",
-// "http://192.168.16.133:9994/tif/0819_11.tif",
-// "http://192.168.16.133:9994/tif/0819_12.tif",
-// "http://192.168.16.133:9994/tif/0819_13.tif",
-// "http://192.168.16.133:9994/tif/0819_14.tif",
-// "http://192.168.16.133:9994/tif/0819_15.tif",
-// "http://192.168.16.133:9994/tif/0819_16.tif",
-// "http://192.168.16.133:9994/tif/0819_17.tif",
-// "http://192.168.16.133:9994/tif/0819_18.tif",
-// "http://192.168.16.133:9994/tif/0819_19.tif",
-// "http://192.168.16.133:9994/tif/0819_20.tif",
-// "http://192.168.16.133:9994/tif/0819_21.tif",
-// "http://192.168.16.133:9994/tif/0819_22.tif",
-// "http://192.168.16.133:9994/tif/0819_23.tif",
-// ];
-// imageFiles = await Promise.all(images.map(url => urlToFile(url,_.last(_.split(url,"/")))));
-
-// canvas = createCanvas(0);
-// plotInit(colorScale);
-// createCanvasLayer(canvas.id,0,[109.36903069276376,36.53005543707354,109.62694602722712,36.7105574823517]);
-// let i = 0;
-// let interval = setInterval(()=>{
-// if(i >= imageFiles.length) i = 0;
-// setRainImage(i++);
-// },1000)
-// }
-
-// const setRainImage = (index) => {
-// var reader = new FileReader();
-// reader.onload = e => createPlot(e,canvas);
-// reader.readAsArrayBuffer(imageFiles[index]);
-// }
diff --git a/src/views/DialogTabs/DialogConfig.js b/src/views/DialogTabs/DialogConfig.js
index 2cf0f09..3af85d0 100644
--- a/src/views/DialogTabs/DialogConfig.js
+++ b/src/views/DialogTabs/DialogConfig.js
@@ -63,6 +63,11 @@
content: markRaw(res_components['RQ_Warning']),
name: 'RQ_Warning',
},
+ {
+ title: '街景',
+ content: markRaw(res_components['streetscape']),
+ name: 'streetscape',
+ },
],
};
diff --git a/src/views/DialogTabs/component/streetscape.vue b/src/views/DialogTabs/component/streetscape.vue
new file mode 100644
index 0000000..2db4a7d
--- /dev/null
+++ b/src/views/DialogTabs/component/streetscape.vue
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
diff --git a/src/views/oneMap/FloodStuationReview/xqRightBox.vue b/src/views/oneMap/FloodStuationReview/xqRightBox.vue
index ac9fbaf..6f70234 100644
--- a/src/views/oneMap/FloodStuationReview/xqRightBox.vue
+++ b/src/views/oneMap/FloodStuationReview/xqRightBox.vue
@@ -90,7 +90,13 @@