index.js 640 Bytes
Newer Older
陈浩玮's avatar
yonghu  
陈浩玮 committed
1
import { request, METHOD, formatObj } from '@/utils';
2
export * from './menu';
水落(YangLei)'s avatar
水落(YangLei) committed
3
export * from './system';
水落(YangLei)'s avatar
水落(YangLei) committed
4
export * from './task';
水落(YangLei)'s avatar
水落(YangLei) committed
5 6 7 8

export function getUserDetailInfoApi() {
    return request('/api/v1/detail', METHOD.GET);
}
陈浩玮's avatar
yonghu  
陈浩玮 committed
9 10 11 12 13 14 15 16 17 18 19 20
export const getStaticParam = async staticKey => {
    const res = await request('/api/v1/parameters/business/multi/list', METHOD.GET, {
        queryList: staticKey,
    });
    const curData = res.find(i => i.key === staticKey);
    const newData = await formatObj(curData.businessParameterList || [], {
        value: 'paramValue',
        label: 'paramName',
        key: 'paramId',
    });
    return newData;
};