【bug】

1. 货运车辆和长期车辆进港没有表单校验
pet_门口门禁
Shan Ao 2025-02-07 11:02:15 +08:00
parent f9156e4f91
commit 2fa5528e35
2 changed files with 35 additions and 24 deletions

View File

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

View File

@ -129,6 +129,10 @@ 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',
{ {
@ -139,10 +143,12 @@ 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
}) })
})
} }
} }
} }