Compare commits

..

No commits in common. "125c2c9a00887a3db908f2099f5ac0055b399c2f" and "079de81427409c6faf0e32eb9708403ec3abb743" have entirely different histories.

2 changed files with 29 additions and 34 deletions

View File

@ -127,10 +127,8 @@ export default {
this.$parent.activeName = 'List' this.$parent.activeName = 'List'
}, },
sendMessage() { sendMessage() {
this.$refs.form.validate((valid) => { this.$refs.form.validate(valid => {
if (!valid) { if (valid) {
return false
}
requestFN( requestFN(
'/vehiclemessage/auditChronicallyCar', '/vehiclemessage/auditChronicallyCar',
{ {
@ -145,6 +143,9 @@ export default {
}).catch((e) => { }).catch((e) => {
this.loading = false this.loading = false
}) })
} else {
return false
}
}) })
} }
} }

View File

@ -129,10 +129,6 @@ export default {
this.$parent.activeName = 'List' this.$parent.activeName = 'List'
}, },
sendMessage() { sendMessage() {
this.$refs.form.validate((valid) => {
if (!valid) {
return false
}
requestFN( requestFN(
'/vehiclemessage/qyAudit', '/vehiclemessage/qyAudit',
{ {
@ -143,12 +139,10 @@ export default {
} }
).then((data) => { ).then((data) => {
this.visible = false this.visible = false
this.handleClose()
this.$emit('refresh', '') this.$emit('refresh', '')
}).catch((e) => { }).catch((e) => {
this.loading = false this.loading = false
}) })
})
} }
} }
} }