微调
This commit is contained in:
@@ -126,11 +126,20 @@ const validateInput = (index: number, field: string) => {
|
||||
if (index === 1) {
|
||||
if (field === 'famp') {
|
||||
if (value < 0) {
|
||||
if(valueCode=== 'Absolute') {
|
||||
ElMessage.warning("电流不能低于0A")
|
||||
}else{
|
||||
ElMessage.warning("电流不能低于0%")
|
||||
}
|
||||
form.value[index][field] = 0;
|
||||
} else if (value > 20) {
|
||||
if(valueCode=== 'Absolute') {
|
||||
ElMessage.warning("电流不能高于20A")
|
||||
form.value[index][field] = 20;
|
||||
}else if(value > 200){
|
||||
ElMessage.warning("电流不能高于200%")
|
||||
form.value[index][field] = 200;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user