From 11cef93fa041289db9fafd4cb654b20d53cb2c51 Mon Sep 17 00:00:00 2001
From: guonan <guonan201020@163.com>
Date: 星期三, 23 四月 2025 11:30:03 +0800
Subject: [PATCH] 新建方案

---
 src/views/left/KGSimOption/PredictiveSimulation.vue |   44 +-------------------------------------------
 1 files changed, 1 insertions(+), 43 deletions(-)

diff --git a/src/views/left/KGSimOption/PredictiveSimulation.vue b/src/views/left/KGSimOption/PredictiveSimulation.vue
index f51cb67..adf5c24 100644
--- a/src/views/left/KGSimOption/PredictiveSimulation.vue
+++ b/src/views/left/KGSimOption/PredictiveSimulation.vue
@@ -185,13 +185,12 @@
 const toggleDetails = () => {
   isCollapsed.value = !isCollapsed.value;
 };
-// const simStore = SimAPIStore();
 
 // 鎵撳紑淇濆瓨鏂规瀵硅瘽妗�
 const openSaveDialog = async () => {
   const forms = {
     name: schemeName.value,
-    eares: props.selectedArea,
+    geom: props.selectedArea,
     type: 1,
     rainfall: totalRainfall.value,
     duration: rainfallDuration.value,
@@ -199,21 +198,7 @@
     mode: selectedRainfallPatterns.value,
     prediction: selectedForecastDataName.value,
   };
-  console.log(forms, "forms");
   await simStore.addSimCheme(forms);
-  // if (
-  //   !props.selectedArea ||
-  //   !selectedForecastData.value ||
-  //   !schemeName.value ||
-  //   !totalRainfall.value ||
-  //   !rainfallIntensity.value ||
-  //   !selectedRainfallPatterns.value ||
-  //   !rainfallDuration.value
-  // ) {
-  //   ElMessage.warning("璇峰厛濉啓鎵�鏈夊繀濉」");
-  //   return;
-  // }
-  // saveDialogVisible.value = true;
 };
 
 // 鍏抽棴淇濆瓨鏂规瀵硅瘽妗�
@@ -221,33 +206,6 @@
   saveDialogVisible.value = false;
 };
 
-// 纭淇濆瓨
-const confirmSave = () => {
-  // 鏋勯�犳柊鐨勬柟妗堝璞�
-  const newScheme = {
-    id: Date.now().toString(), // 鍞竴 ID
-    area: props.selectedArea, // 鍖哄煙
-    name: selectedForecastDataName.value, // 鏂规鍚嶇О锛堥娴嬫暟鎹被鍨嬶級
-    createTime: new Date().toISOString(), // 鍒涘缓鏃堕棿
-    taskStatus: 1, // 鍒濆鐘舵�佷负鏈紑濮�
-    simulationType: "棰勬祴妯℃嫙", // 妯℃嫙绫诲瀷
-    forecastData: selectedForecastDataName.value, // 棰勬祴鏁版嵁
-    totalRainfall: `${totalRainfall.value} mm`, // 闄嶉洦闆ㄩ噺
-    schemeName: schemeName.value, // 闄嶉洦鎬婚噺
-    rainfallIntensity: `${rainfallIntensity.value} mm/h`, // 闄嶉洦寮哄害
-    rainfallPattern: selectedRainfallPatternsName.value, // 闄嶉洦妯″紡
-    rainfallDuration: `${rainfallDuration.value} h`, // 棰勮鏃堕暱
-  };
-
-  // 璋冪敤 Store 鐨勬柟娉曟坊鍔犳柟妗�
-  simStore.addSchemCard(newScheme);
-
-  console.log("淇濆瓨鏂规鎴愬姛", newScheme);
-  ElMessage.success("鏂规宸蹭繚瀛�");
-
-  // 鍏抽棴瀵硅瘽妗�
-  saveDialogVisible.value = false;
-};
 
 // 鎵撳紑鏂规
 const openPlan = () => {

--
Gitblit v1.9.3