工单报备按钮加防重复点击1
This commit is contained in:
@ -105,6 +105,8 @@ export default {
|
|||||||
this.states=e
|
this.states=e
|
||||||
},
|
},
|
||||||
async submitBtn(){
|
async submitBtn(){
|
||||||
|
this.$toast(1111)
|
||||||
|
try {
|
||||||
let res = await saveDriver({
|
let res = await saveDriver({
|
||||||
driverId:this.id ? this.id : '',
|
driverId:this.id ? this.id : '',
|
||||||
driverName:this.driverName ,
|
driverName:this.driverName ,
|
||||||
@ -124,8 +126,9 @@ export default {
|
|||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
this.$router.back();
|
this.$router.back();
|
||||||
},2000)
|
},2000)
|
||||||
}else{
|
}
|
||||||
this.$toast(res.msg)
|
}catch (e){
|
||||||
|
this.$toast(JSON.stringify(e), "eeeeeeee")
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
cancelBtn(){//取消
|
cancelBtn(){//取消
|
||||||
|
|||||||
Reference in New Issue
Block a user