|
@@ -9,15 +9,15 @@
|
|
|
<keep-alive>
|
|
<keep-alive>
|
|
|
<MainMap :mapKey="mapName" :url="configUrl" :options="mapOptions" @onload="onMapload" />
|
|
<MainMap :mapKey="mapName" :url="configUrl" :options="mapOptions" @onload="onMapload" />
|
|
|
</keep-alive>
|
|
</keep-alive>
|
|
|
- <LayerListPanel></LayerListPanel>
|
|
|
|
|
- <SandMonitorLeft v-if="this.mainMenu === 'sandMonitor'"></SandMonitorLeft>
|
|
|
|
|
- <SandMonitorRight v-if="this.mainMenu === 'sandMonitor'"></SandMonitorRight>
|
|
|
|
|
- <SafetyInspectionLeft v-if="this.mainMenu === 'safetyInspection'"></SafetyInspectionLeft>
|
|
|
|
|
- <SafetyInspectionRight v-if="this.mainMenu === 'safetyInspection'"></SafetyInspectionRight>
|
|
|
|
|
|
|
+ <LayerListPanel v-if="mapLoaded"></LayerListPanel>
|
|
|
|
|
+ <SandMonitorLeft v-if="mainMenu === 'sandMonitor'"></SandMonitorLeft>
|
|
|
|
|
+ <SandMonitorRight v-if="mainMenu === 'sandMonitor'"></SandMonitorRight>
|
|
|
|
|
+ <SafetyInspectionLeft v-if="mainMenu === 'safetyInspection'"></SafetyInspectionLeft>
|
|
|
|
|
+ <SafetyInspectionRight v-if="mainMenu === 'safetyInspection'"></SafetyInspectionRight>
|
|
|
<AddInspectionTask />
|
|
<AddInspectionTask />
|
|
|
- <ComprehensiveOverview v-if="this.mainMenu === 'comprehensiveOverview'"></ComprehensiveOverview>
|
|
|
|
|
- <HydrologicInfo v-if="this.mainMenu === 'hydrologicInfo'"></HydrologicInfo>
|
|
|
|
|
- <SmartEarlyWarning v-if="this.mainMenu === 'smartEarlyWarning'" />
|
|
|
|
|
|
|
+ <ComprehensiveOverview v-if="mainMenu === 'comprehensiveOverview'"></ComprehensiveOverview>
|
|
|
|
|
+ <HydrologicInfo v-if="mainMenu === 'hydrologicInfo'"></HydrologicInfo>
|
|
|
|
|
+ <SmartEarlyWarning v-if="mainMenu === 'smartEarlyWarning'" />
|
|
|
<WaterStationPopup />
|
|
<WaterStationPopup />
|
|
|
</div>
|
|
</div>
|
|
|
</el-main>
|
|
</el-main>
|
|
@@ -83,16 +83,19 @@ export default {
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
- mainMenu:'',
|
|
|
|
|
|
|
+ mapLoaded: false,
|
|
|
|
|
+ mainMenu: ''
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- created(){
|
|
|
|
|
|
|
+ created() {
|
|
|
this.mainMenu = this.$route.params.menu
|
|
this.mainMenu = this.$route.params.menu
|
|
|
|
|
+ this.mapLoaded = false
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
// 地图加载回调优化
|
|
// 地图加载回调优化
|
|
|
async onMapload(map) {
|
|
async onMapload(map) {
|
|
|
window.map = map
|
|
window.map = map
|
|
|
|
|
+ this.mapLoaded = true
|
|
|
map.hasTerrain = true
|
|
map.hasTerrain = true
|
|
|
this.addWaterSurface(map)
|
|
this.addWaterSurface(map)
|
|
|
},
|
|
},
|
|
@@ -146,4 +149,4 @@ export default {
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
}
|
|
}
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|