Files
AJ-Report/report-ui/src/api/dict-data.js
yanzili b22d8d095e 登录
2021-06-24 15:07:35 +08:00

55 lines
1.1 KiB
JavaScript

/*
* @Author: zyk
* @Date: 2020-07-13 15:13:17
* @Last Modified by: zyk
* @Last Modified time: 2020-12-15 15:34:34
*/
import request from '@/utils/request'
// 数据字典和基础数据查询的相关接口
/**
* 数据字典多类型编码查询接口
* type参数 类型 String
* type参数 格式 'type'
*/
export function getDictList (type) {
return request({
url: `/gaeaDict/select/${type}`,
method: 'get',
})
}
export function getDictCodes (project) {
return request({
url: `/gaeaDict/selectAll/${project}`,
method: 'get',
})
}
/**
* 数据字典多类型编码查询接口
* typeList参数 类型 Array
* typeList参数 格式 ['type1','type2',...]
*/
export function getMultipleDictList (typeList) {
const types = typeList + ''
return request({
url: `/v1/dict/types`,
method: 'get',
params: { types },
})
}
/**
* 主数据编码查询接口
* typeList参数 类型 Array
* typeList参数 格式 ['type1','type2',...]
*/
export function getBaseDataList (typeList) {
const types = typeList + ''
return request({
url: `/v1/master/types`,
method: 'get',
params: { types },
})
}