| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <el-button @click="endSimulate" style="margin-top: 26px;margin-left: 30px;margin-right: 10px;">结束模拟</el-button> |
| | | <el-button @click="handleBack" style="margin-top: 26px;margin-left: 30px;margin-right: 10px;">结束模拟</el-button> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import dayjs from "dayjs"; |
| | | import { createWaterPrimitive, destoryWaterPrimitive } from "@/utils/water"; |
| | | import { getRainfall } from "@/api/index"; |
| | | import { EventBus } from "@/eventBus"; // 引入事件总线 |
| | | import { ElMessage } from 'element-plus' |
| | | |
| | | |
| | | const props = defineProps({ |
| | | waterSimulateParams: { |
| | |
| | | }, delay); |
| | | }); |
| | | const { startSimulate, endSimulate } = inject("simulateActions"); |
| | | // 返回按钮点击事件 |
| | | function handleBack() { |
| | | ElMessage({ |
| | | message: '模拟进程正在关闭中...', |
| | | type: 'success', |
| | | }) |
| | | endSimulate(); |
| | | EventBus.emit("hide-schemeInfo"); |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |