[improvement][headless-fe] Revamped the interaction for semantic modeling routing and successfully implemented the switching between dimension and dataset management. (#1934)

Co-authored-by: tristanliu <tristanliu@tencent.com>
This commit is contained in:
Jun Zhang
2024-11-30 20:03:41 +08:00
committed by GitHub
parent 593597fe26
commit 82c63a7f22
42 changed files with 1889 additions and 997 deletions

View File

@@ -50,9 +50,6 @@ export function getDimensionList(data: any): Promise<any> {
...(modelId ? { modelIds: [modelId] } : {}),
},
};
if (getRunningEnv() === 'chat') {
return request.post(`${process.env.CHAT_API_BASE_URL}conf/dimension/page`, queryParams);
}
return request.post(`${process.env.API_BASE_URL}dimension/queryDimension`, queryParams);
}
@@ -628,6 +625,12 @@ export function getDataSetList(domainId: number): Promise<any> {
});
}
export function getDataSetDetail(id: number): Promise<any> {
return request(`${process.env.API_BASE_URL}dataSet/${id}`, {
method: 'GET',
});
}
export function createView(data: any): Promise<any> {
return request(`${process.env.API_BASE_URL}dataSet`, {
method: 'POST',