diff --git a/webui/src/components/ParameterForm.vue b/webui/src/components/ParameterForm.vue index 8a9dadb..8d9d466 100644 --- a/webui/src/components/ParameterForm.vue +++ b/webui/src/components/ParameterForm.vue @@ -199,7 +199,15 @@ -
+ +
+ +
+
(null) const logRef = ref | null>(null) const fileInput = ref(null) +// 雷电流概率密度系数设置开关 +const showIpCoefficients = ref(false) const voltageOptions = [ '110kV', '220kV', '330kV', '500kV', '750kV','1000kV', @@ -410,6 +420,18 @@ watch( { immediate: true } ) +// 监听雷电流概率密度系数开关 +watch( + showIpCoefficients, + (show) => { + if (!show) { + // 关闭时重置为 -1(使用标准参数) + params.advance.Ip_a = -1 + params.advance.Ip_b = -1 + } + } +) + // 雷暴日与地闪密度相互转换,公式:ng = 0.023 * td^3 // 标志位避免循环更新 let isUpdatingFromWatch = false