hookehuyr

fix 处理保存时错误提示问题

...@@ -1907,8 +1907,8 @@ export default { ...@@ -1907,8 +1907,8 @@ export default {
1907 } 1907 }
1908 }) 1908 })
1909 }); 1909 });
1910 - return;
1911 } 1910 }
1911 + return result.length;
1912 } 1912 }
1913 const saveData = async () => { 1913 const saveData = async () => {
1914 // 清空错误提示 1914 // 清空错误提示
...@@ -1926,8 +1926,9 @@ export default { ...@@ -1926,8 +1926,9 @@ export default {
1926 // TAG: 检查节点是否完整 1926 // TAG: 检查节点是否完整
1927 const checkResult = await checkAllFlowNodePropertyAPI({ flow_id: +flow_id }) 1927 const checkResult = await checkAllFlowNodePropertyAPI({ flow_id: +flow_id })
1928 if (checkResult.code) { 1928 if (checkResult.code) {
1929 - noticeError(checkResult); 1929 + if (noticeError(checkResult)) {
1930 - return; 1930 + return;
1931 + }
1931 } else { 1932 } else {
1932 // 保存流程图结构 1933 // 保存流程图结构
1933 saveFlowData(); 1934 saveFlowData();
...@@ -1943,8 +1944,9 @@ export default { ...@@ -1943,8 +1944,9 @@ export default {
1943 // 检查点击节点后通过了,但是还有未通过的节点没有点击时 1944 // 检查点击节点后通过了,但是还有未通过的节点没有点击时
1944 const checkResult = await checkAllFlowNodePropertyAPI({ flow_id: +flow_id }) 1945 const checkResult = await checkAllFlowNodePropertyAPI({ flow_id: +flow_id })
1945 if (checkResult.code) { 1946 if (checkResult.code) {
1946 - noticeError(checkResult); 1947 + if (noticeError(checkResult)) {
1947 - return; 1948 + return;
1949 + }
1948 } 1950 }
1949 1951
1950 ElMessageBox.confirm( 1952 ElMessageBox.confirm(
......