wangjuncheng
2025-04-15 8792be67cf5791a4a3afc2f72fd8d7cfc3cff353
change
已修改7个文件
17 ■■■■■ 文件已修改
src/components/menu/TimeLine.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/monifangzhen/schemeCard.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/store/simulation.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/left/KGSimOption/HistorySimulation.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/left/KGSimOption/PredictiveSimulation.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/left/KGSimOption/RealTimeSimulation.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mnfz.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/menu/TimeLine.vue
@@ -1,6 +1,7 @@
<template>
  <div class="timeline-container">
    <div class="controls">
    <!-- <div @click="endSimulate">结束模拟</div> -->
      <div class="control-btn" @click="skipBackward">
        <img
          src="@/assets/img/timeline/left.png"
@@ -52,6 +53,7 @@
          :style="{ left: progressPercentage + '%' }"
        ></div>
        <div class="time-markers">
          <div
            v-for="(time, index) in timeMarkers"
            :key="index"
@@ -74,6 +76,7 @@
  watch,
  defineProps,
  onBeforeUnmount,
  inject
} from "vue";
import dayjs from "dayjs";
import { createWaterPrimitive, destoryWaterPrimitive } from "@/utils/water";
@@ -295,6 +298,8 @@
    destoryWaterPrimitive();
  }, delay);
});
const { startSimulate, endSimulate } = inject("simulateActions");
</script>
<style scoped>
src/components/monifangzhen/schemeCard.vue
@@ -13,7 +13,8 @@
      <div class="cardMenu">
        <div style="float: right; margin-top: 3px">
          <el-button size="small" @click="setSchemClick(item)">方案详情</el-button>
          <el-button size="small" @click="startPlay(item)" :disabled="item.taskStatus !== 2">进入模拟</el-button>
          <el-button size="small" @click="startPlay(item)">进入模拟</el-button>
          <!--  :disabled="item.taskStatus !== 2" -->
        </div>
      </div>
    </el-card>
src/store/simulation.js
@@ -47,8 +47,6 @@
    // 方案相关
    const setSchemCard = (data) => {
        schemCard.value = data
        console.log(schemCard,'aaaaaaaaaaaaaa');
    }
    // 添加单个方案数据
src/views/left/KGSimOption/HistorySimulation.vue
@@ -167,7 +167,7 @@
    area: props.selectedArea, // 区域
    name: selectedRainfallName.value, // 方案名称
    createTime: new Date().toISOString(), // 创建时间
    taskStatus: 0, // 初始状态为未开始
    taskStatus: 1, // 初始状态为未开始
    totalRainfall: totalRainfall.value, // 降雨总量
    rainfallIntensity: rainfallIntensity.value, // 降雨强度
    rainfallDuration: rainfallDuration.value, // 降雨时长
src/views/left/KGSimOption/PredictiveSimulation.vue
@@ -171,7 +171,7 @@
    area: props.selectedArea, // 区域
    name: selectedForecastDataName.value, // 方案名称(预测数据类型)
    createTime: new Date().toISOString(), // 创建时间
    taskStatus: 0, // 初始状态为未开始
    taskStatus: 1, // 初始状态为未开始
    simulationType: '预测模拟', // 模拟类型
    forecastData: selectedForecastDataName.value, // 预测数据
    totalRainfall: `${totalRainfall.value} mm`, // 降雨雨量
src/views/left/KGSimOption/RealTimeSimulation.vue
@@ -221,7 +221,7 @@
    area: props.selectedArea, // 区域
    name: selectedRainfallName.value, // 方案名称(雨量数据类型)
    createTime: new Date().toISOString(), // 创建时间
    taskStatus: 0, // 初始状态为未开始
    taskStatus:1, // 初始状态为未开始
    rainfallType: selectedRainfallName.value, // 雨量数据类型
    devices: selectedDevices.value.map((item) => item.name), // 设备信息
  };
src/views/mnfz.vue
@@ -7,6 +7,7 @@
    @is-playing="isPlaying"
    :waterSimulateParams="waterSimulateParams"
    @playbackFinished="playbackFinished"
    @end="endSimulate"
  />
  <DebuffDetail
    v-if="showDebuffDetail"