/** * @description 获取Dimension相关的表单浮层 */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** 点击的Dimensionid */ dimId: number; /** 业务板块id */ bizUnitId: number; } export const init = new defs.TreeNodeBO(); export async function request(params = {}) { return Request({ url: '/api/dip/graph/dimGraph/formLayer/{dimId}', params, method: 'get', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'GET', url: getUrl('/api/dip/graph/dimGraph/formLayer/{dimId}', params, 'GET'), params, init, }; }; }