/* * @Author: Pengjiantian * @Date: 2020-06-29 10:08:42 * @Last Modified by: Pengjiantian * @Last Modified time: 2020-07-14 10:19:05 */ import ApiModel from '@/utils/core/apiModel' // 业务约束-自主扣款支持银行清单 const formList = [ { type: 'select', label: '银行编号', value: '', name: 'bankNo', options: [], attrs: ['filterable', 'clearable', 'collapse-tags'], rules: [{ required: true }] }, { type: 'input', label: '银行名称', value: '', name: 'bankName', attrs: ['readonly'] }, { type: 'input', label: '单笔限额', value: '', name: 'singleLimit', isMoney: true, rules: [{ required: true }] } ] const tableList = [ { label: '银行编号', prop: 'bankNo', attrs: { width: 'auto' } }, { label: '银行名称', prop: 'bankName', attrs: { width: 'auto' } }, { label: '单笔限额', prop: 'singleLimit', isMoney: true, attrs: { width: 'auto' } }, { prop: 'action', label: '操作管理', attrs: { // width: '260px', fixed: 'right' }, type: 'buttons' } ] export default options => { // 接口地址: required const api = 'server/loanChannelPaymentBankList' return new ApiModel({ api, formList, tableList, request(body) { return this.post(body) } }) }