/** * 分级更新列表 */ import ApiModel from '@/utils/core/apiModel'; // 表单信息 const formList = [ { type: 'date', label: '定级月份', value: [], name: 'rankmonth', names: ['rankmonthmin', 'rankmonthmax'], attrs: [{type: 'monthrange'}] }, { type: 'input', label: '批次备注', value: '', name: 'batchremark' }, { type: 'input', label: '申请人', value: '', name: 'username' } ]; // 表格信息 const tableList = [ { label: '批次号', prop: 'batchno', // attrs: { width: 'auto' } }, { label: '定级月份', prop: 'rankmonth', attrs: { width: 'auto' } }, { label: '批次备注', prop: 'batchremark', attrs: { width: 'auto' } }, { label: '笔数', prop: 'applycount', attrs: { width: 'auto' } }, { label: '状态', prop: 'statusDesc', // attrs: { width: 'auto' } }, { label: '申请人', prop: 'userName', // attrs: { width: 'auto' } }, { label: '申请时间', prop: 'applydate', // attrs: { width: 'auto' } }, { label: '完成时间', prop: 'finishdate', // attrs: { width: 'auto' } }, { prop: 'action', label: '操作管理', attrs: { // width: '260px', fixed: 'right' }, type: 'buttons' } ]; export default options => { // 接口地址,required const api = 'server/queryClassUpdateList'; return new ApiModel({ api, formList, tableList, request(params) { return this.post(params); } }); };