From ed8dc2858fb68fc01834562adca19bec0165e9f8 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Tue, 13 Aug 2024 17:57:13 +0800 Subject: [PATCH] =?UTF-8?q?feat(xpack):=20=E8=A1=80=E7=BC=98=E5=88=86?= =?UTF-8?q?=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/package.json | 1 + core/core-frontend/src/api/relation/index.ts | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 core/core-frontend/src/api/relation/index.ts 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}` + }) +}