| | |
| | | </div> |
| | | </div> |
| | | <div class="buttons"> |
| | | <el-button type="primary" @click="openSaveDialog">保存方案</el-button> |
| | | <el-button type="success" @click="startPlay">开始模拟</el-button> |
| | | <!-- <el-button type="primary" @click="openSaveDialog">保存方案</el-button> --> |
| | | <el-button type="primary">保存方案</el-button> |
| | | <!-- <el-button type="success" @click="startPlay">开始模拟</el-button> --> |
| | | <el-button type="success">开始模拟</el-button> |
| | | </div> |
| | | |
| | | <!-- 保存方案对话框 --> |
| | |
| | | area: props.selectedArea, // 区域 |
| | | name: selectedRainfallName.value, // 方案名称 |
| | | createTime: new Date().toISOString(), // 创建时间 |
| | | taskStatus: 0, // 初始状态为未开始 |
| | | taskStatus: 1, // 初始状态为未开始 |
| | | totalRainfall: totalRainfall.value, // 降雨总量 |
| | | rainfallIntensity: rainfallIntensity.value, // 降雨强度 |
| | | rainfallDuration: rainfallDuration.value, // 降雨时长 |
| | | }; |
| | | |
| | | simStore.addSchemCardItem(newScheme); |
| | | simStore.addSchemCard(newScheme); |
| | | ElMessage.success("方案已保存"); |
| | | // 关闭对话框 |
| | | saveDialogVisible.value = false; |