Commit 3bff1cba by 李少勇

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

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