工单报备按钮加防重复点击1

This commit is contained in:
2023-08-23 10:59:22 +08:00
parent eb7e1da368
commit 552453203b

View File

@ -105,6 +105,8 @@ export default {
this.states=e
},
async submitBtn(){
this.$toast(1111)
try {
let res = await saveDriver({
driverId:this.id ? this.id : '',
driverName:this.driverName ,
@ -124,8 +126,9 @@ export default {
setTimeout(()=>{
this.$router.back();
},2000)
}else{
this.$toast(res.msg)
}
}catch (e){
this.$toast(JSON.stringify(e), "eeeeeeee")
}
},
cancelBtn(){//取消