/* * @Author: Pengjiantian * @Date: 2020-06-30 16:36:25 * @Last Modified by: Pengjiantian * @Last Modified time: 2020-07-03 09:43:57 */ import ApiModel from '@/utils/core/apiModel' // 资金单元-贷款机构清单 const formList = [ { type: 'select', label: '贷款机构编码', value: '', name: 'orgCode', options: [], attrs: ['filterable', 'clearable', 'collapse-tags'], rules: [{ required: true }] }, { type: 'input', label: '贷款机构名称', value: '', name: 'orgName', attrs: ['readonly'] }, { type: 'input', label: '贷款机构类型', value: '', name: 'orgTypeDesc', attrs: ['readonly'] } ] const tableList = [ { label: '贷款机构编码', prop: 'orgCode', attrs: { width: 'auto' } }, { label: '贷款机构名称', prop: 'orgName', attrs: { width: 'auto' } }, { label: '贷款机构类型', prop: 'orgTypeDesc', attrs: { width: 'auto' } }, { prop: 'action', label: '操作管理', attrs: { // width: '260px', fixed: 'right' }, type: 'buttons' } ] export default options => { // 接口地址: required const api = 'server/queryFundUnitLoanOrgList' return new ApiModel({ api, formList, tableList, request(body) { return this.post(body) } }) }