2
wangjuncheng
2025-04-14 55f950b56d94154fab0f807a417df2202aaae499
src/views/left/KGSimOption/RealTimeSimulation.vue
@@ -31,7 +31,7 @@
    </div>
    <div class="buttons">
      <el-button type="primary" @click="openSaveDialog">保存方案</el-button>
      <el-button type="success" @click="startSimulation">开始模拟</el-button>
      <el-button type="success" @click="startPlay">开始模拟</el-button>
      <el-button type="success" @click="futurePredictions">未来预测</el-button>
    </div>
@@ -65,7 +65,17 @@
<script setup>
import { ref, watch, defineProps, computed } from 'vue';
import { ElMessage } from 'element-plus';
import { initeWaterPrimitiveView } from "@/utils/water";
const emit = defineEmits(["start", "end"]);
function endPlay() {
  emit("end");
}
function startPlay() {
    initeWaterPrimitiveView();
    emit("start");
}
// 工具函数:深拷贝并设置默认选中状态
function deepCloneAndSetSelected(data) {
  const newData = {};