diff --git a/core/core-frontend/package.json b/core/core-frontend/package.json index 4e738dac55..04f6cfcdd2 100644 --- a/core/core-frontend/package.json +++ b/core/core-frontend/package.json @@ -28,6 +28,7 @@ "axios": "^1.3.3", "crypto-js": "^4.1.1", "dayjs": "^1.11.9", + "echarts": "^5.5.1", "element-plus-secondary": "^0.6.1", "element-resize-detector": "^1.2.4", "exceljs": "^4.4.0", diff --git a/core/core-frontend/src/api/relation/index.ts b/core/core-frontend/src/api/relation/index.ts new file mode 100644 index 0000000000..5db9caa340 --- /dev/null +++ b/core/core-frontend/src/api/relation/index.ts @@ -0,0 +1,19 @@ +import request from '@/config/axios' + +export function getDatasourceRelationship(id) { + return request.post({ + url: `/relation/datasource/${id}` + }) +} + +export function getDatasetRelationship(id) { + return request.post({ + url: `/relation/dataset/${id}` + }) +} + +export function getPanelRelationship(id) { + return request.post({ + url: `/relation/dv/${id}` + }) +}