zhaoxiaoqiang1
2026-01-04 f1d30d03186c79ca2cbcfe60d6d2ce7d73fba97b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * @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 }
    }
  })
}