diff --git a/webui/src/components/ParameterForm.vue b/webui/src/components/ParameterForm.vue
index b6796da..d46c2b0 100644
--- a/webui/src/components/ParameterForm.vue
+++ b/webui/src/components/ParameterForm.vue
@@ -105,7 +105,7 @@
- 导、地线挂点垂直距离 (m) - 第一个值为地线挂点高度
+ 导、地线挂点垂直坐标 (m)
@@ -118,10 +118,10 @@
/>
-
+
-
+
@@ -129,7 +129,7 @@
- 导、地线水平坐标 (m)
+ 导、地线挂点水平坐标 (m)
@@ -142,10 +142,10 @@
/>
-
+
-
+
@@ -357,25 +357,29 @@ const voltageOptions = [
'±500kV', '±660kV', '±800kV', '±1100kV'
]
-// 数组操作函数
+// 数组操作函数(最多3条导线,即数组最多4个元素:1地线+3导线)
const addHArm = () => {
- const last = params.parameter.h_arm[params.parameter.h_arm.length - 1] || 100
- params.parameter.h_arm.push(last - 20)
+ if (params.parameter.h_arm.length < 4) {
+ const last = params.parameter.h_arm[params.parameter.h_arm.length - 1] || 100
+ params.parameter.h_arm.push(last - 20)
+ }
}
const removeHArm = () => {
- if (params.parameter.h_arm.length > 1) {
+ if (params.parameter.h_arm.length > 2) {
params.parameter.h_arm.pop()
}
}
const addGcX = () => {
- const last = params.parameter.gc_x[params.parameter.gc_x.length - 1] || 10
- params.parameter.gc_x.push(last)
+ if (params.parameter.gc_x.length < 4) {
+ const last = params.parameter.gc_x[params.parameter.gc_x.length - 1] || 10
+ params.parameter.gc_x.push(last)
+ }
}
const removeGcX = () => {
- if (params.parameter.gc_x.length > 1) {
+ if (params.parameter.gc_x.length > 2) {
params.parameter.gc_x.pop()
}
}