diff --git a/src/views/index/driverAdd.vue b/src/views/index/driverAdd.vue index 8f37fe74..eae32deb 100644 --- a/src/views/index/driverAdd.vue +++ b/src/views/index/driverAdd.vue @@ -264,6 +264,7 @@ export default { } let bbb=this.driverName.replace(/[^\u4e00-\u9fff]+/g, ''); if( this.drivingLicenceName && aaa != bbb ) { + this.$toast('aaa1',aaa,bbb) this.$toast('身份证信息与驾驶证信息不匹配') } }, @@ -310,6 +311,7 @@ export default { } let bbb = this.drivingLicenceName.replace(/[^\u4e00-\u9fff]+/g, ''); if( this.driverName && bbb != aaa ) { + this.$toast('aaa2',aaa,bbb) this.$toast('身份证信息与驾驶证信息不匹配') } } @@ -333,7 +335,9 @@ export default { } let drivingLicenceName=this.drivingLicenceName.replace(/[^\u4e00-\u9fff]+/g, ''); let driverName=this.driverName.replace(/[^\u4e00-\u9fff]+/g, ''); + if( drivingLicenceName != driverName ) { + this.$toast('aaa3',drivingLicenceName,driverName) this.$toast('身份证信息与驾驶证信息不匹配闫杰') return }