/* * @Author: Pengjiantian * @Date: 2020-07-01 09:50:06 * @Last Modified by: Pengjiantian * @Last Modified time: 2020-07-03 10:56:00 */ import ApiModel from '@/utils/core/apiModel' // 资金单元-贷款机构清单 const formList = [ { type: 'select', label: '账户类型', value: '', name: 'accountTypeDesc', options: [], attrs: ['filterable', 'clearable', 'collapse-tags'], rules: [{ required: true }] }, { type: 'input', label: '账户名称', value: '', name: 'accountName', rules: [{ required: true }] }, { type: 'input', label: '账户号码', value: '', name: 'accountNo', rules: [{ required: true }] } ] const tableList = [ { label: '账户类型', prop: 'accountTypeDesc', attrs: { width: 'auto' } }, { label: '账户名称', prop: 'accountName', attrs: { width: 'auto' } }, { label: '账户号码', prop: 'accountNo', attrs: { width: 'auto' } }, { prop: 'action', label: '操作管理', attrs: { // width: '260px', fixed: 'right' }, type: 'buttons' } ] export default options => { // 接口地址: required const api = 'server/queryLoanrepaymentsAccountList' return new ApiModel({ api, formList, tableList, request(body) { return this.post(body) } }) }