wangjuncheng
2025-04-20 1a452b6708a442915899d2ddf8288e28fd63bfbc
src/views/left/KGSimOption/PredictiveSimulation.vue
@@ -16,6 +16,10 @@
            ></el-option>
          </el-select>
        </div>
        <div class="input-item">
          <label>方案名称:</label>
          <el-input v-model="schemeName" type="text" placeholder="请输入"></el-input>
        </div>
        <div class="input-item" style="margin-bottom: 10px;">
          <label>降雨雨量:</label>
          <el-input v-model="totalRainfall" type="number" placeholder="请输入"></el-input>
@@ -62,6 +66,7 @@
        custom-class="custom-dialog"
      >
        <div class="dialog-content">
        <p><strong>方案名称:</strong>{{ schemeName }}</p>
          <p><strong>所选重点沟:</strong>{{ props.selectedArea }}</p>
          <p><strong>模拟类型:</strong>预测模拟</p>
          <p><strong>预测数据:</strong>{{ selectedForecastDataName }}</p>
@@ -110,6 +115,7 @@
// 数据绑定
const isCollapsed = ref(false); // 控制展开/收起状态
const totalRainfall = ref(50); // 降雨雨量
const schemeName = ref('方案名称'); // 方案名称
const rainfallIntensity = ref(70); // 降雨强度
const rainfallDuration = ref(5); // 预计时长
const selectedForecastData = ref('4'); // 默认选中“自定义参数”
@@ -151,7 +157,7 @@
// 打开保存方案对话框
const openSaveDialog = () => {
  if (!props.selectedArea || !selectedForecastData.value || !totalRainfall.value || !rainfallIntensity.value || !selectedRainfallPatterns.value || !rainfallDuration.value) {
  if (!props.selectedArea || !selectedForecastData.value ||!schemeName.value || !totalRainfall.value || !rainfallIntensity.value || !selectedRainfallPatterns.value || !rainfallDuration.value) {
    ElMessage.warning('请先填写所有必填项');
    return;
  }
@@ -175,6 +181,7 @@
    simulationType: '预测模拟', // 模拟类型
    forecastData: selectedForecastDataName.value, // 预测数据
    totalRainfall: `${totalRainfall.value} mm`, // 降雨雨量
    schemeName: schemeName.value, // 降雨总量
    rainfallIntensity: `${rainfallIntensity.value} mm/h`, // 降雨强度
    rainfallPattern: selectedRainfallPatternsName.value, // 降雨模式
    rainfallDuration: `${rainfallDuration.value} h`, // 预计时长