/*
|
* @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'
|
import { getEnvInfo } from '@/utils/utils'
|
|
export default options => {
|
// 接口地址,required
|
const api = 'web-front/qryDropDownOptionBatch'
|
const { productApiPrefix } = getEnvInfo()
|
|
return new ApiModel({
|
baseConf: {
|
// 调用产品管理接口
|
apiPrefix: productApiPrefix
|
},
|
api,
|
request(params) {
|
return this.post(params)
|
},
|
computedItem(item) {
|
let {label, ...other} = item
|
return { ...other, name: label }
|
}
|
})
|
}
|