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