guonan
2025-04-18 75c5c3a056f8d8db2021c466f19e19ff4492c49b
src/views/mnfz.vue
@@ -7,6 +7,7 @@
    @is-playing="isPlaying"
    :waterSimulateParams="waterSimulateParams"
    @playbackFinished="playbackFinished"
    @end="endSimulate"
  />
  <DebuffDetail
    v-if="showDebuffDetail"
@@ -17,7 +18,7 @@
</template>
<script setup>
import { ref, onMounted, onUnmounted } from "vue";
import { ref, onMounted, onUnmounted, provide } from "vue";
import TimeLine from "@/components/menu/TimeLine.vue";
import Left from "./left/Left.vue";
import echartInfo from "@/components/monifangzhen/echartInfo.vue";
@@ -33,6 +34,12 @@
const showDebuffTable = ref(false);
const isDynamicMode = ref(false);
const isFinish = ref(true);
// 提供方法给所有子组件
provide("simulateActions", {
  startSimulate,
  endSimulate,
});
function startSimulate(form) {
  // console.log("form", form);
@@ -54,7 +61,11 @@
  const list = MaxInfluenceAreaList.value;
  list.forEach((item, index) => {
    const geosjon = geomToGeoJSON(item.geom);
    Cesium.GeoJsonDataSource.load(geosjon).then((dataSource) => {
    Cesium.GeoJsonDataSource.load(geosjon, {
      stroke: Cesium.Color.RED, // 边框颜色
      strokeWidth: 2, // 边框宽度
      fill: Cesium.Color.RED.withAlpha(0.5), // 填充颜色(带透明度)
    }).then((dataSource) => {
      viewer.dataSources.add(dataSource);
      dataSources.push(dataSource);
    });
@@ -73,6 +84,7 @@
    checkedKeys.value = ["避险点"];
    showDebuffDetail.value = true;
    getTimeMarkers();
  }
}
function openDetail() {