/*
|
* @Author: lixiong
|
* @Date: 2019-08-21 14:35:07
|
* @Last Modified by: lixiong
|
* @Last Modified time: 2019-08-21 17:33:06
|
*/
|
|
/**
|
* 当前流程阶段下拉列表
|
*/
|
|
import ApiModel from '@/utils/core/apiModel'
|
// 如果该接口需要访问贷前的接口,则需要引入getEnvInfo方法
|
import { getEnvInfo } from '@/utils/utils'
|
// 贷后调用贷前是需要
|
const { ctsApiPrefix } = getEnvInfo()
|
|
export default options => {
|
// 接口地址,required
|
const api = 'server/qryDimensionList'
|
|
return new ApiModel({
|
baseConf: {
|
// 调用产品管理接口
|
apiPrefix: ctsApiPrefix
|
},
|
api,
|
request(params) {
|
return this.post(params)
|
},
|
computedItem(item) {
|
let { dimensionCode, dimensionsName, ...other } = item
|
return { ...other, label: dimensionsName, value: dimensionCode }
|
}
|
})
|
}
|