Commit f1820f13 authored by chenshouchao's avatar chenshouchao

feat: 保存自定义批算子时校验提示文案优化

parent f921c2b3
...@@ -139,17 +139,19 @@ const CustomOperator = observer((props: IProps) => { ...@@ -139,17 +139,19 @@ const CustomOperator = observer((props: IProps) => {
console.log("targetArr", targetArr); console.log("targetArr", targetArr);
if (!checkHasOneLine([...sourceArr], [...targetArr])) { if (!checkHasOneLine([...sourceArr], [...targetArr])) {
console.log("checkHasOneLine"); console.log("checkHasOneLine");
Message.error("内容校验未通过,请检查!"); Message.error("部分算子没有流程线,请检查流程!");
return; return;
} }
if (!checkIn([...targetArr])) { if (!checkIn([...targetArr])) {
console.log("checkIn"); console.log("checkIn");
Message.error("内容校验未通过,请检查!"); Message.error("每个流程第一步需读取文件/数据集,请检查流程!");
return; return;
} }
if (!checkOut([...sourceArr])) { if (!checkOut([...sourceArr])) {
console.log("checkOut"); console.log("checkOut");
Message.error("内容校验未通过,请检查!"); Message.error(
"每个流程最后一步必须将数据写入为文件/数据集,请检查流程!"
);
return; return;
} }
setSaveFormDialog(true); setSaveFormDialog(true);
......
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