Commit c882a894 by wangzhihui

fixed

1 parent 8c2890d6
......@@ -4,7 +4,7 @@
<div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset">
<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>
</GLCombiForm>
<div class="statistics">
......@@ -115,13 +115,13 @@
</div>
</template>
<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>
<tempalte slot="balance">
<div class="channelMoney">
可用余额:
<span class="price">{{ this.payForm.balance || '-' }}</span>
<template v-if="this.payForm.balance != '-'">元</template>
<span class="price">{{ this.payForm.balance || '-'}}</span>
<template v-if="this.payForm.balance">元</template>
</div>
</tempalte>
<template slot="captcha">
......@@ -636,6 +636,7 @@ export default {
merchantList: [],
auditStatusStatusList: auditStatusStatusList,
channelList: [],
channelPayList:[],
withdrawalTypeList: withdrawalTypeList,
modeTypeList: modeTypeList,
sourceList: sourceList,
......@@ -801,6 +802,11 @@ export default {
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) {
return this[formData].findIndex(item => item.name == name) || 0
},
......@@ -1256,6 +1262,7 @@ export default {
this.payFormData[this.findFormAttrId('payFormData', 'channel')].isHide = true
this.payFormData[this.findFormAttrId('payFormData', 'channelProvider')].isHide = true
this.payFormData[this.findFormAttrId('payFormData', 'channelList')].isHide = false
this.getPayChannelTree()
} else {
this.getChannel()
this.payFormData[this.findFormAttrId('payFormData', 'channel')].isHide = false
......@@ -1323,7 +1330,7 @@ export default {
if (res) {
this.payForm.balance = res
} 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!