Commit 1cde7a4b authored by 许珑标's avatar 许珑标

付款账户下拉框组件增加账号类型选择

parent 94171084
<!-- @author zhengjie -->
<template>
<div>
<el-select v-model="value" placeholder="请选择" @change="selected">
<el-select v-model="value" placeholder="请选择" @change="selected" clearable>
<el-option-group
v-for="group in payAccList"
:key="group.label"
......@@ -21,7 +21,7 @@
import { listAllAccInfo } from '@/api/business/accInfo'
export default {
name: 'AccSelect',
props: ['defaultVal'],
props: ['defaultVal', 'bindType'],
data() {
return {
value: '',
......@@ -36,7 +36,11 @@ export default {
},
methods: {
getPayAccList() {
listAllAccInfo().then(resp => {
let params = {}
if (this.bindType) {
params.bindType = this.bindType
}
listAllAccInfo(params).then(resp => {
if (resp.code == 200) {
let bindA = []
let bindB = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment