Commit 0ceda97b authored by 张耀's avatar 张耀

feat:

优化
parent 341695fa
......@@ -148,6 +148,7 @@ const Submit = async () => {
...table_form_ref.value?.form,
};
}
ElMessage.error("有必填项没有填写");
return;
};
// 监听是否是编辑,是则插入原数据
......
......@@ -186,6 +186,7 @@ const Submit = async () => {
manual_distribution_form: manual_distribution_form.value?.form || {},
};
}
ElMessage.error("有必填项没有填写");
return;
};
watch(
......
......@@ -320,6 +320,7 @@ const changeWarningThresholdTo = (index) => {
}
});
} catch (e) {
ElMessage.error(`该范围已被设置`);
state.form.ruleRows[index].to = "";
}
};
......
......@@ -260,7 +260,6 @@ const inputNum = (index, key) => {
.replace(/(\d)\-/g, "$1"); //过滤处于非开头的负号
};
const changeWarningThresholdTo = (index) => {
console.log(1);
let { down, up } = limit.value;
let { from, to } = state.form.ruleRows[index];
if (to !== "" && from !== "" && from > +to) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment