修改冀北现场问题

This commit is contained in:
GGJ
2025-12-14 12:47:53 +08:00
parent ff2b9db7b8
commit 0b61c4b7ba
55 changed files with 2679 additions and 951 deletions

View File

@@ -4,14 +4,19 @@
<DatePicker ref="datePickerRef" style="display: none" theCurrentTime />
<el-form :inline="true" :model="form" class="demo-form-inline">
<el-form-item>
<Area ref="areaRef" :show-all-levels="false" v-model="form.orgNo" style="width: 100px"
@changeValue="changeValue" />
<Area
ref="areaRef"
:show-all-levels="false"
v-model="form.orgNo"
style="width: 100px"
@changeValue="changeValue"
/>
</el-form-item>
<el-form-item>
<!-- <el-form-item>
<el-select v-model="form.isUpToGrid" style="width: 100px" @change="info">
<el-option v-for="item in options" :key="item.id" :label="item.name" :value="item.id" />
</el-select>
</el-form-item>
</el-form-item> -->
<el-form-item>
<div class="Icon" @click="reset">
<Icon name="fa fa-refresh" />
@@ -21,13 +26,19 @@
</div>
<!-- 地图 -->
<Map v-if="VITE_FLAG" ref="mapRef" @changeValue="changeValue" :lineInfo="lineInfo" @drop="drop"
@show="infoShow" />
<Map
v-if="VITE_FLAG"
ref="mapRef"
@changeValue="changeValue"
:lineInfo="lineInfo"
@drop="drop"
@show="infoShow"
/>
<div v-show="lineInfo">
<!-- 省级 -->
<div v-show="control == 1">
<mapL ref="mapLRef" class="mapL" @LookMap="LookMap" @GridDiagram="GridDiagram" />
<mapR ref="mapRRef" class="mapR" />
<mapR ref="mapRRef" class="mapR" @changeHeat="changeHeat" />
</div>
<!-- 市级 -->
<!-- <div v-show="control == 4"> -->
@@ -102,6 +113,15 @@ const changeValue = (e: any) => {
info()
}
// 热力图开关
const changeHeat = (e: boolean) => {
console.log("🚀 ~ changeHeat ~ e:", e)
mapRef.value.changeHeat(e)
if(e){
mapRef.value.flyTo({ coordinate: [116.84428600000001, 40.57707185292256] }, 6.409267680647425)
}
}
//点击监测点详情
const drop = (id: string) => {
lineInfo.value = false
@@ -178,6 +198,7 @@ const info = () => {
form.value.type = datePickerRef.value.interval
VITE_FLAG ? mapRef.value.grids(form.value) : ''
VITE_FLAG ? mapRef.value.addMarkers() : ''
if (control.value == 1) {
mapLRef.value.info(form.value)
mapRRef.value.info(form.value)
@@ -254,7 +275,7 @@ onMounted(() => {
.mapR {
position: absolute;
top: 10px;
// z-index: 1;
z-index: 1;
right: 10px;
}