Commit a5f98c87 by 李伟康

commit 提交

1 parent d0120cd2
...@@ -239,8 +239,7 @@ export default { ...@@ -239,8 +239,7 @@ export default {
startDate: '', startDate: '',
endDate: '', endDate: '',
customerTag: '', customerTag: '',
backClass: '', backClass: ''
clickFlag: false
} }
}, },
mounted () { mounted () {
...@@ -292,7 +291,7 @@ export default { ...@@ -292,7 +291,7 @@ export default {
this.customerInfo.arrivalDate = e.detail.value this.customerInfo.arrivalDate = e.detail.value
}, },
async submit () { async submit () {
if (this.check || this.clickFlag) return if (this.check) return
try { try {
this.customerForm.map(e => { this.customerForm.map(e => {
e.error = false e.error = false
...@@ -311,7 +310,6 @@ export default { ...@@ -311,7 +310,6 @@ export default {
}) })
if (customerInfo.id) params.id = customerInfo.id if (customerInfo.id) params.id = customerInfo.id
params.customerTagName = params.customerTagName.replace(/|/g, ',') params.customerTagName = params.customerTagName.replace(/|/g, ',')
this.clickFlag = true
uni.showLoading({ uni.showLoading({
mask: true mask: true
}) })
...@@ -322,7 +320,6 @@ export default { ...@@ -322,7 +320,6 @@ export default {
if (res == '1') { if (res == '1') {
this.$refs.successRef.open() this.$refs.successRef.open()
setTimeout(() => { setTimeout(() => {
this.clickFlag = false
uni.hideLoading() uni.hideLoading()
this.back() this.back()
this.$emit('refresh') this.$emit('refresh')
...@@ -340,11 +337,9 @@ export default { ...@@ -340,11 +337,9 @@ export default {
} }
} }
}) })
this.clickFlag = false
uni.hideLoading() uni.hideLoading()
} }
} else { } else {
this.clickFlag = false
uni.hideLoading() uni.hideLoading()
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!