diff --git a/src/views/zhxxgl/informationManagement.vue b/src/views/zhxxgl/informationManagement.vue index 6e5e882..dbdfc4c 100644 --- a/src/views/zhxxgl/informationManagement.vue +++ b/src/views/zhxxgl/informationManagement.vue @@ -18,6 +18,153 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -42,6 +189,23 @@ // import waterCourse_icon from '@/assets/cesiumMap/legendIcon/combineBengZhan_icon.png'; // import sewageFactory_icon from '@/assets/cesiumMap/legendIcon/sewageFactory_icon.png'; // import pipeMonitor_icon from '@/assets/cesiumMap/legendIcon/pipeMonitor_icon.png'; +const showProblem = ref(false); +const problemDetail = ref({}); + +const rainpumpdeviceCount = ref({}); +const sweagepumpdeviceCount = ref({}); +import { useDict } from '@/utils/dict'; +const { camera_access_type, onlineStatus, faultStatus } = useDict('camera_access_type', 'onlineStatus', 'faultStatus'); + +const dicts = { + camera_access_type, + onlineStatus, + faultStatus, +}; +const findText = (prop, type) => { + const item = dicts[prop].value.find((it) => it.value === type); + return item?.label || ''; +}; const AllData = reactive({ searchV: '', userId: '', @@ -279,7 +443,19 @@ [e.point.x + 10 / 2, e.point.y + 10 / 2], ]) || [] ).filter((i) => i.layer.id)[0]; - console.log('feature---', feature.properties); + problemDetail.value = {}; + showProblem.value = true; + problemDetail.value = feature.properties; + console.log('feature---111', feature.properties); + if ( + feature.properties.type == 'YSBZ' || + feature.properties.type == 'WSBZ' || + feature.properties.type == 'combineBengZhan' + ) { + rainpumpdeviceCount.value = JSON.parse(feature.properties.rainpump); + sweagepumpdeviceCount.value = JSON.parse(feature.properties.sweagepump); + } + //少爷这里加弹窗 }); clearInterval(initeMapTimer);