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

feat:

优化
parent 341695fa
...@@ -148,6 +148,7 @@ const Submit = async () => { ...@@ -148,6 +148,7 @@ const Submit = async () => {
...table_form_ref.value?.form, ...table_form_ref.value?.form,
}; };
} }
ElMessage.error("有必填项没有填写");
return; return;
}; };
// 监听是否是编辑,是则插入原数据 // 监听是否是编辑,是则插入原数据
......
...@@ -186,6 +186,7 @@ const Submit = async () => { ...@@ -186,6 +186,7 @@ const Submit = async () => {
manual_distribution_form: manual_distribution_form.value?.form || {}, manual_distribution_form: manual_distribution_form.value?.form || {},
}; };
} }
ElMessage.error("有必填项没有填写");
return; return;
}; };
watch( watch(
......
...@@ -320,6 +320,7 @@ const changeWarningThresholdTo = (index) => { ...@@ -320,6 +320,7 @@ const changeWarningThresholdTo = (index) => {
} }
}); });
} catch (e) { } catch (e) {
ElMessage.error(`该范围已被设置`);
state.form.ruleRows[index].to = ""; state.form.ruleRows[index].to = "";
} }
}; };
......
...@@ -260,7 +260,6 @@ const inputNum = (index, key) => { ...@@ -260,7 +260,6 @@ const inputNum = (index, key) => {
.replace(/(\d)\-/g, "$1"); //过滤处于非开头的负号 .replace(/(\d)\-/g, "$1"); //过滤处于非开头的负号
}; };
const changeWarningThresholdTo = (index) => { const changeWarningThresholdTo = (index) => {
console.log(1);
let { down, up } = limit.value; let { down, up } = limit.value;
let { from, to } = state.form.ruleRows[index]; let { from, to } = state.form.ruleRows[index];
if (to !== "" && from !== "" && from > +to) { 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