Commit 77df31f6 by wangzhihui

修复取消样式

1 parent cf957e42
...@@ -1441,6 +1441,7 @@ export default { ...@@ -1441,6 +1441,7 @@ export default {
balance: '' balance: ''
} }
this.isCodeDisabled = false this.isCodeDisabled = false
this.payFormData[this.findFormAttrId('payFormData', 'admin')].optionList = []
clearInterval(this.timer) clearInterval(this.timer)
this.timer = null this.timer = null
this.$refs.withdrawRef.clearMutiSelect() this.$refs.withdrawRef.clearMutiSelect()
......
...@@ -96,6 +96,7 @@ export default { ...@@ -96,6 +96,7 @@ export default {
optionsName: 'adminList', optionsName: 'adminList',
optionId: 'adminId', optionId: 'adminId',
optionLabel: 'adminName', optionLabel: 'adminName',
optionList: [],
changeAttr: val => { changeAttr: val => {
this.payForm.phone = val this.payForm.phone = val
this.isCodeDisabled = false this.isCodeDisabled = false
...@@ -351,6 +352,8 @@ export default { ...@@ -351,6 +352,8 @@ export default {
remark: '' remark: ''
} }
this.isCodeDisabled = false this.isCodeDisabled = false
this.baseData.adminList =[]
this.payFormData[this.findFormAttrId('payFormData', 'approverId')].optionList = []
clearInterval(this.timer) clearInterval(this.timer)
this.timer = null this.timer = null
this.$emit('cancelPay') this.$emit('cancelPay')
...@@ -358,7 +361,9 @@ export default { ...@@ -358,7 +361,9 @@ export default {
this.$refs.payFormRef.$refs.payChildRef.resetFields() this.$refs.payFormRef.$refs.payChildRef.resetFields()
} }
}, },
findFormAttrId(formData, name) {
return this[formData].findIndex(item => item.name == name) || 0
},
getCode() { getCode() {
if (this.isCodeDisabled) return if (this.isCodeDisabled) return
if (!this.timer) { if (!this.timer) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!