代办事项审核bug修复

This commit is contained in:
2023-08-23 19:39:52 +08:00
parent bb0b66f178
commit 9ca429cbf2
4 changed files with 11 additions and 11 deletions

View File

@ -105,9 +105,9 @@ export default {
this.states=e
},
async submitBtn(){
if (this.driverName || this.driverPhone || this.identityCardNumber || this.drivingModel || this.states){
this.$toast('必填字段未填写')
}else{
// if (this.driverName || this.driverPhone || this.identityCardNumber || this.drivingModel || this.states){
// this.$toast('必填字段未填写')
// }else{
await saveDriver({
driverId:this.id ? this.id : '',
driverName:this.driverName ,
@ -126,7 +126,7 @@ export default {
setTimeout(()=>{
this.$router.back();
},2000)
}
// }
},
cancelBtn(){//取消
this.$router.back()

View File

@ -126,8 +126,7 @@ export default {
<style scoped lang="scss">
@import "@/styles/mixin.scss";
.wrap {
width: 100%;
height: 100%;
@include wh(100%,100%);
background-color: #F4F5F7;
overflow-y: auto;
}
@ -185,5 +184,6 @@ export default {
}
.btn{
margin-left: 24px;
margin-top: 30px;
}
</style>

View File

@ -158,9 +158,9 @@ export default {
this.$router.back()
},
async submitBtn(){
if(this.carNum || this.selectedOption || this.isJoin){
this.$toast('必填字段未填写')
}else{
// if(this.carNum || this.selectedOption || this.isJoin){
// this.$toast('必填字段未填写')
// }else{
await saveVehicle({
vehicleId:this.id ? this.id : '',
plateNumber:this.carNum ? this.carNum :'',
@ -177,7 +177,7 @@ export default {
this.$router.back();
},2000)
}
},
// },
},
components:{
CellGroup,