Commit fc0ba59d by wuwx

创建服务券新增防抖

1 parent febe0a92
......@@ -209,7 +209,7 @@ export default {
}, 1000)
}
return {
clickStatus: false,
timer: Function,
isEdit: false,
showSubmit: true,
disabledDescription: false,
......@@ -403,8 +403,8 @@ export default {
},
submitForm(formName) {
if (this.clickStatus) return
this.clickStatus = true
clearTimeout(this.timer)
this.timer = setTimeout(() => {
this.$refs[formName].validate((valid, errorObj) => {
var merchantval = true
var merchantErrorObj = []
......@@ -429,6 +429,7 @@ export default {
return false
}
})
},500)
},
//创建服务
createService() {
......@@ -508,7 +509,6 @@ export default {
})
.finally(() => {
this.sloading = false
this.clickStatus = false
})
},
//更新服务
......@@ -536,7 +536,6 @@ export default {
})
.finally(() => {
this.sloading = false
this.clickStatus = false
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!