|
|
|
@ -65,3 +65,18 @@ export const getIndexType = ({ paramName, systemCode }): Promise<IResponse> => {
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 查询指标集类型树形结构 */
|
|
|
|
|
export const getIndexSetTreeApi = async () => {
|
|
|
|
|
const res = await request.post({
|
|
|
|
|
url: '/RepIndexSet/spi/dataset/RepIndexSet/IndexSetTree',
|
|
|
|
|
});
|
|
|
|
|
if (res?.body?.menutree?.length > 0) {
|
|
|
|
|
const data = res.body.menutree
|
|
|
|
|
return data.sort((a:AppCustomRouteRecordRaw, b:AppCustomRouteRecordRaw) => {
|
|
|
|
|
return a?.props?.sort && b?.props?.sort ? a.props.sort - b.props.sort : 0
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
return [];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|