工单报备按钮加防重复点击1
This commit is contained in:
@ -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(){//取消
|
||||
|
Reference in New Issue
Block a user