Commit 3bff1cba by 李少勇

修改提交时候不应该报检验成功

parent 38e9cdde
......@@ -5,7 +5,7 @@ export default {
methods: {
// 提交
handleSubmit() {
this.handleCheck().then(async () => {
this.handleCheck(true).then(async () => {
let params = {
...this.model,
gidgrp: {
......@@ -36,7 +36,7 @@ export default {
})
},
// 检核
handleCheck() {
handleCheck(isSubmit) {
return new Promise((resolve) => {
// 前端检验
this.$refs['modelForm'].validate(async (validStatic) => {
......@@ -54,11 +54,13 @@ export default {
if (errorRules && !keysList.length) {
// 清除之前的校验状态
this.$refs['modelForm'].clearValidate();
this.$notify({
title: "成功",
message: "校验成功",
type: "success",
});
if (!isSubmit) {
this.$notify({
title: "成功",
message: "校验成功",
type: "success",
});
}
resolve()
loading.close();
return
......
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