Commit c882a894 by wangzhihui

fixed

1 parent 8c2890d6
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset">
<template slot="channel"> <template slot="channel">
<el-cascader :options="baseData.channelList" :props="props" style="width: 100%" v-model="searchForm.channelList" :placeholder="'请选择'" filterable @change="selectAddAttr($event, 'searchForm')"></el-cascader> <el-cascader :options="baseData.channelList" :props="props" style="width: 100%" v-model="searchForm.channelList" :placeholder="'请选择'" filterable @change="selectAddAttr($event, 'searchForm')"></el-cascader>
</template> </template>
</GLCombiForm> </GLCombiForm>
<div class="statistics"> <div class="statistics">
...@@ -115,13 +115,13 @@ ...@@ -115,13 +115,13 @@
</div> </div>
</template> </template>
<template slot="channelHtml"> <template slot="channelHtml">
<el-cascader :options="baseData.channelList" :props="props" style="width: 100%" v-model="payForm.channelList" :placeholder="'请选择'" filterable @change="selectAddAttr($event, 'payForm')"></el-cascader> <el-cascader :options="baseData.channelPayList" :props="props" style="width: 100%" v-model="payForm.channelList" :placeholder="'请选择'" filterable @change="selectAddAttr($event, 'payForm')"></el-cascader>
</template> </template>
<tempalte slot="balance"> <tempalte slot="balance">
<div class="channelMoney"> <div class="channelMoney">
可用余额: 可用余额:
<span class="price">{{ this.payForm.balance || '-' }}</span> <span class="price">{{ this.payForm.balance || '-'}}</span>
<template v-if="this.payForm.balance != '-'">元</template> <template v-if="this.payForm.balance">元</template>
</div> </div>
</tempalte> </tempalte>
<template slot="captcha"> <template slot="captcha">
...@@ -636,6 +636,7 @@ export default { ...@@ -636,6 +636,7 @@ export default {
merchantList: [], merchantList: [],
auditStatusStatusList: auditStatusStatusList, auditStatusStatusList: auditStatusStatusList,
channelList: [], channelList: [],
channelPayList:[],
withdrawalTypeList: withdrawalTypeList, withdrawalTypeList: withdrawalTypeList,
modeTypeList: modeTypeList, modeTypeList: modeTypeList,
sourceList: sourceList, sourceList: sourceList,
...@@ -801,6 +802,11 @@ export default { ...@@ -801,6 +802,11 @@ export default {
this.baseData.channelList = this.removeEmptyChild(res) this.baseData.channelList = this.removeEmptyChild(res)
}) })
}, },
getPayChannelTree() {
this.$apis.withdraw.getChannelTree({ transferType: this.payForm.transferType, mode: this.payForm.mode }).then(res => {
this.baseData.channelPayList = this.removeEmptyChild(res)
})
},
findFormAttrId(formData, name) { findFormAttrId(formData, name) {
return this[formData].findIndex(item => item.name == name) || 0 return this[formData].findIndex(item => item.name == name) || 0
}, },
...@@ -1256,6 +1262,7 @@ export default { ...@@ -1256,6 +1262,7 @@ export default {
this.payFormData[this.findFormAttrId('payFormData', 'channel')].isHide = true this.payFormData[this.findFormAttrId('payFormData', 'channel')].isHide = true
this.payFormData[this.findFormAttrId('payFormData', 'channelProvider')].isHide = true this.payFormData[this.findFormAttrId('payFormData', 'channelProvider')].isHide = true
this.payFormData[this.findFormAttrId('payFormData', 'channelList')].isHide = false this.payFormData[this.findFormAttrId('payFormData', 'channelList')].isHide = false
this.getPayChannelTree()
} else { } else {
this.getChannel() this.getChannel()
this.payFormData[this.findFormAttrId('payFormData', 'channel')].isHide = false this.payFormData[this.findFormAttrId('payFormData', 'channel')].isHide = false
...@@ -1323,7 +1330,7 @@ export default { ...@@ -1323,7 +1330,7 @@ export default {
if (res) { if (res) {
this.payForm.balance = res this.payForm.balance = res
} else { } else {
this.payForm.balance = '-' this.payForm.balance = ''
} }
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!