diff --git a/src/views/inspection/inspectiontasks.vue b/src/views/inspection/inspectiontasks.vue index 6eef7af..4e9626e 100644 --- a/src/views/inspection/inspectiontasks.vue +++ b/src/views/inspection/inspectiontasks.vue @@ -506,10 +506,8 @@ loading(); }); } else { - this.$message({ - type: "warning", - message: "请输入必要信息!" - }); + console.log('error submit!!'); + return false; } }); diff --git a/src/views/spares/material.vue b/src/views/spares/material.vue index b44be35..b5d81ab 100644 --- a/src/views/spares/material.vue +++ b/src/views/spares/material.vue @@ -561,10 +561,8 @@ loading(); }); } else { - this.$message({ - type: "warning", - message: "请输入必要信息!" - }); + console.log('error submit!!'); + return false; } }); }, @@ -589,10 +587,8 @@ loading(); }); } else { - this.$message({ - type: "warning", - message: "请输入必要信息!" - }); + console.log('error submit!!'); + return false; } }); },