/** * 选择合作商 */ import ApiModel from '@/utils/core/apiModel' // 表单信息 const formList = [ { type: 'input', label: '合作商名称', value: '', name: 'enterpriseName' }, { type: 'select', label: '项目名称', value: [], name: 'projectNoArray', options: [], attrs: ['filterable', 'multiple', 'clearable', 'collapse-tags'] }, { type: 'select', label: '产品名称', value: [], name: 'productIdArray', options: [], attrs: ['filterable', 'multiple', 'clearable', 'collapse-tags'] }, { type: 'select', label: '产品维度名称', value: [], name: 'dimensionNoArray', options: [], attrs: ['filterable', 'multiple', 'clearable', 'collapse-tags'] } ] // 表格信息 const tableList = [ { label: '合作商名称', prop: 'enterpriseName' }, { label: '项目名称', prop: 'projectName' }, { label: '项目类型', prop: 'projectTypeDesc' }, { label: '产品名称', prop: 'productName' }, { label: '产品维度名称', prop: 'dimensionsName' }, { prop: 'action', label: '操作管理', attrs: { fixed: 'right' }, type: 'links', links: ['选择'] } ] export default options => { // 接口地址,required const api = 'server/optionPartnersInfo' return new ApiModel({ api, formList, tableList, request(params) { return this.post(params) } }) }