| | |
| | | |
| | | <!-- 历史模拟 --> |
| | | <div class="history-simulation-wrapper"> |
| | | <el-radio-group v-model="selectedSimulation" style="margin-bottom: 10px;"> |
| | | <el-radio-group v-model="selectedSimulation" style="margin-bottom: 10px"> |
| | | <el-radio label="历史模拟">历史模拟</el-radio> |
| | | <el-radio label="实时模拟">实时模拟</el-radio> |
| | | <el-radio label="预测模拟">预测模拟</el-radio> |
| | | </el-radio-group> |
| | | <div v-if="selectedSimulation === '历史模拟'"> |
| | | <HistorySimulation :selectedArea="selectedArea"/> |
| | | <HistorySimulation |
| | | :selectedArea="selectedArea" |
| | | @start="start" |
| | | @end="end" |
| | | /> |
| | | </div> |
| | | <div v-if="selectedSimulation === '实时模拟'"> |
| | | <RealTimeSimulation :selectedArea="selectedArea" /> |
| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { ref, computed } from 'vue'; |
| | | import HistorySimulation from './KGSimOption/HistorySimulation.vue'; |
| | | import PredictiveSimulation from './KGSimOption/PredictiveSimulation.vue'; |
| | | import RealTimeSimulation from './KGSimOption/RealTimeSimulation.vue'; |
| | | import { ref, computed } from "vue"; |
| | | import HistorySimulation from "./KGSimOption/HistorySimulation.vue"; |
| | | import PredictiveSimulation from "./KGSimOption/PredictiveSimulation.vue"; |
| | | import RealTimeSimulation from "./KGSimOption/RealTimeSimulation.vue"; |
| | | |
| | | const selectedSimulation = ref('历史模拟'); |
| | | const selectedArea = ref('孙胡沟'); |
| | | const emit = defineEmits(["start", "end"]); |
| | | |
| | | function end() { |
| | | emit("end"); |
| | | } |
| | | |
| | | function start() { |
| | | // initeWaterPrimitiveView(); |
| | | emit("start"); |
| | | } |
| | | |
| | | const selectedSimulation = ref("历史模拟"); |
| | | const selectedArea = ref("孙胡沟"); |
| | | const earesOptions = [ |
| | | { value: "孙胡沟", label: "孙胡沟" }, |
| | | { value: "鱼水洞后沟", label: "鱼水洞后沟" }, |
| | |
| | | ]; |
| | | |
| | | // 动态过滤选项 |
| | | const searchQuery = ref(''); |
| | | const searchQuery = ref(""); |
| | | const filteredOptions = computed(() => { |
| | | return earesOptions.filter(option => |
| | | return earesOptions.filter((option) => |
| | | option.label.toLowerCase().includes(searchQuery.value.toLowerCase()) |
| | | ); |
| | | }); |
| | |
| | | }; |
| | | |
| | | const handleStart = () => { |
| | | console.log('开始按钮被点击'); |
| | | console.log("开始按钮被点击"); |
| | | }; |
| | | |
| | | const handleAdd = () => { |
| | | console.log('加载按钮被点击'); |
| | | console.log("加载按钮被点击"); |
| | | }; |
| | | </script> |
| | | |