| | |
| | | <div class="input-item"> |
| | | <label>历史雨情:</label> |
| | | <el-select v-model="rainfallHistory" placeholder="请选择" popper-class="mySelectStyle"> |
| | | <el-option v-for="item in HistoricalRainData" :key="item.id" :label="item.name" :value="item.id"></el-option> |
| | | <el-option v-for="item in HistoricalRainData" :key="item.id" :label="item.name" |
| | | :value="item.id"></el-option> |
| | | </el-select> |
| | | </div> |
| | | </div> |
| | |
| | | </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> |
| | | </div> |
| | | |
| | | <!-- 保存方案对话框 --> |
| | | <el-dialog |
| | | v-model="saveDialogVisible" |
| | | title="保存方案" |
| | | width="50%" |
| | | :before-close="handleClose" |
| | | custom-class="custom-dialog" |
| | | > |
| | | <el-dialog v-model="saveDialogVisible" title="保存方案" width="50%" :before-close="handleClose" |
| | | custom-class="custom-dialog"> |
| | | <div class="dialog-content"> |
| | | <p><strong>所选重点沟:</strong>{{ props.selectedArea }}</p> |
| | | <p><strong>模拟类型:</strong>历史模拟</p> |
| | |
| | | <script setup> |
| | | import { ref, 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"); |
| | | } |
| | | // 定义 Props |
| | | const props = defineProps({ |
| | | selectedArea: { |
| | |
| | | |
| | | /* 自定义 Dialog 的 z-index */ |
| | | .custom-dialog { |
| | | z-index: 3000 !important; /* 确保对话框覆盖其他元素 */ |
| | | z-index: 3000 !important; |
| | | /* 确保对话框覆盖其他元素 */ |
| | | } |
| | | </style> |