/* * @Author: lixiong * @Date: 2019-08-21 14:35:07 * @Last Modified by: lixiong * @Last Modified time: 2019-09-20 16:39:00 */ /** * 当前流程阶段下拉列表 */ import ApiModel from '@/utils/core/apiModel' import { getEnvInfo } from '@/utils/utils' export default options => { // 接口地址,required const api = 'server/qryDimensionList' const { ctsApiPrefix } = getEnvInfo() return new ApiModel({ baseConf: { // 调用贷前接口 apiPrefix: ctsApiPrefix }, api, request(body) { return this.post(body) }, computedItem(item) { let { dimensionCode, dimensionsName, ...other } = item return { ...other, label: dimensionsName, value: dimensionCode } } }) }