|
@@ -79,9 +79,14 @@
|
|
|
@showDetail="menuComTSty"
|
|
@showDetail="menuComTSty"
|
|
|
@backStations="backStations"
|
|
@backStations="backStations"
|
|
|
/> -->
|
|
/> -->
|
|
|
- <weatherView ref="weatherView" :basicGeoJson="basicGeoJson" @coverOnChange="coverOnChange"
|
|
|
|
|
- @resetChangeWind="resetChangeWind" @resetChangeStation="resetChangeStation" />
|
|
|
|
|
- <!-- <timeControl class="timeControl" :mode="controlMode" :viewer="viewer" /> -->
|
|
|
|
|
|
|
+ <weatherView
|
|
|
|
|
+ ref="weatherView"
|
|
|
|
|
+ :basicGeoJson="basicGeoJson"
|
|
|
|
|
+ :showControl="showControl"
|
|
|
|
|
+ @coverOnChange="coverOnChange"
|
|
|
|
|
+ @resetChangeWind="resetChangeWind"
|
|
|
|
|
+ @resetChangeStation="resetChangeStation"
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -142,7 +147,6 @@ import bwshan from "@/assets/windimgs/fanSvg/bwshan.png";
|
|
|
import windHome from "@/components/windHome/index.vue";
|
|
import windHome from "@/components/windHome/index.vue";
|
|
|
import windPro from "@/components/windProDetail/windProblem.vue";
|
|
import windPro from "@/components/windProDetail/windProblem.vue";
|
|
|
import cesiumwindView from "./cesiumComponents/cesiumwindView.vue";
|
|
import cesiumwindView from "./cesiumComponents/cesiumwindView.vue";
|
|
|
-import timeControl from "@/components/timeControl/index.vue";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: "CesiumMap",
|
|
name: "CesiumMap",
|
|
@@ -153,7 +157,7 @@ export default {
|
|
|
windHome,
|
|
windHome,
|
|
|
windPro,
|
|
windPro,
|
|
|
cesiumwindView,
|
|
cesiumwindView,
|
|
|
- timeControl,
|
|
|
|
|
|
|
+
|
|
|
headerView,
|
|
headerView,
|
|
|
weatherView,
|
|
weatherView,
|
|
|
},
|
|
},
|
|
@@ -238,7 +242,8 @@ export default {
|
|
|
showTypeViewer: true,
|
|
showTypeViewer: true,
|
|
|
stationValue: ["Wind", "Fire", "Solar", "Storage"],
|
|
stationValue: ["Wind", "Fire", "Solar", "Storage"],
|
|
|
controlMode: "",
|
|
controlMode: "",
|
|
|
- cityWeather: {}
|
|
|
|
|
|
|
+ cityWeather: {},
|
|
|
|
|
+ showControl: false,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -247,7 +252,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
mounted() {
|
|
|
-
|
|
|
|
|
this.initEventListener();
|
|
this.initEventListener();
|
|
|
this.initCesium();
|
|
this.initCesium();
|
|
|
if (this.showDevInfoBox) {
|
|
if (this.showDevInfoBox) {
|
|
@@ -268,7 +272,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
-
|
|
|
|
|
changeType(value) {
|
|
changeType(value) {
|
|
|
this.stationValue = value;
|
|
this.stationValue = value;
|
|
|
this.allStationentitys.forEach(({ entity, handler }) => {
|
|
this.allStationentitys.forEach(({ entity, handler }) => {
|
|
@@ -302,10 +305,8 @@ export default {
|
|
|
this.controlMode = this.controlMode === "temp" ? "" : "temp";
|
|
this.controlMode = this.controlMode === "temp" ? "" : "temp";
|
|
|
this.switchTemperatureLayerr(val.check);
|
|
this.switchTemperatureLayerr(val.check);
|
|
|
} else {
|
|
} else {
|
|
|
- ElMessage({
|
|
|
|
|
- message: '暂无数据',
|
|
|
|
|
- type: 'warning',
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ console.log(11111111111111111111111111);
|
|
|
|
|
+ this.showControl = !this.showControl;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
test() {
|
|
test() {
|
|
@@ -1663,7 +1664,18 @@ export default {
|
|
|
showAllStation(viewer, station, type) {
|
|
showAllStation(viewer, station, type) {
|
|
|
station.forEach((e, index) => {
|
|
station.forEach((e, index) => {
|
|
|
if (e.energytype === type) {
|
|
if (e.energytype === type) {
|
|
|
- this.showStationFn(viewer, e, index, type ==="Wind" ? fc : type ==="Fire" ? hd : type ==="Storage" ? chu : gf);
|
|
|
|
|
|
|
+ this.showStationFn(
|
|
|
|
|
+ viewer,
|
|
|
|
|
+ e,
|
|
|
|
|
+ index,
|
|
|
|
|
+ type === "Wind"
|
|
|
|
|
+ ? fc
|
|
|
|
|
+ : type === "Fire"
|
|
|
|
|
+ ? hd
|
|
|
|
|
+ : type === "Storage"
|
|
|
|
|
+ ? chu
|
|
|
|
|
+ : gf
|
|
|
|
|
+ );
|
|
|
}
|
|
}
|
|
|
// if (e.energytype === "Wind") {
|
|
// if (e.energytype === "Wind") {
|
|
|
// this.showStationFn(viewer, e, index, fc);
|
|
// this.showStationFn(viewer, e, index, fc);
|