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

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

parent 94171084
<!-- @author zhengjie --> <!-- @author zhengjie -->
<template> <template>
<div> <div>
<el-select v-model="value" placeholder="请选择" @change="selected"> <el-select v-model="value" placeholder="请选择" @change="selected" clearable>
<el-option-group <el-option-group
v-for="group in payAccList" v-for="group in payAccList"
:key="group.label" :key="group.label"
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
import { listAllAccInfo } from '@/api/business/accInfo' import { listAllAccInfo } from '@/api/business/accInfo'
export default { export default {
name: 'AccSelect', name: 'AccSelect',
props: ['defaultVal'], props: ['defaultVal', 'bindType'],
data() { data() {
return { return {
value: '', value: '',
...@@ -36,7 +36,11 @@ export default { ...@@ -36,7 +36,11 @@ export default {
}, },
methods: { methods: {
getPayAccList() { getPayAccList() {
listAllAccInfo().then(resp => { let params = {}
if (this.bindType) {
params.bindType = this.bindType
}
listAllAccInfo(params).then(resp => {
if (resp.code == 200) { if (resp.code == 200) {
let bindA = [] let bindA = []
let bindB = [] 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