Skip to content

Commit 8968f68

Browse files
committed
feat: export
1 parent f7cf79d commit 8968f68

File tree

5 files changed

+1
-68
lines changed

5 files changed

+1
-68
lines changed

backend/apps/api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from apps.system.api import login, user, aimodel
44
from apps.settings.api import terminology
5-
from apps.datasource.api import datasource, export
5+
from apps.datasource.api import datasource
66
from apps.chat.api import chat
77
from apps.dashboard.api import dashboard_api
88

@@ -12,6 +12,5 @@
1212
api_router.include_router(aimodel.router)
1313
api_router.include_router(terminology.router)
1414
api_router.include_router(datasource.router)
15-
api_router.include_router(export.router)
1615
api_router.include_router(chat.router)
1716
api_router.include_router(dashboard_api.router)

backend/apps/datasource/api/export.py

Lines changed: 0 additions & 49 deletions
This file was deleted.

backend/pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ dependencies = [
3535
"oracledb (>=3.1.1,<4.0.0)",
3636
"pyyaml (>=6.0.2,<7.0.0)",
3737
"fastapi-mcp (>=0.3.4,<0.4.0)",
38-
"selenium (>=4.33.0,<5.0.0)",
39-
"pillow (>=11.2.1,<12.0.0)",
4038
]
4139
[[tool.uv.index]]
4240
url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple"

frontend/src/api/datasource.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@ export const datasourceApi = {
1919
saveTable: (data: any) => request.post('/datasource/editTable', data),
2020
saveField: (data: any) => request.post('/datasource/editField', data),
2121
getDs: (id: number) => request.post(`/datasource/get/${id}`),
22-
exportFromServer: () => request.get('/export/png'),
2322
}

frontend/src/views/ds/index.vue

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
@click="editDs(undefined)"
2626
>{{ t('ds.add') }}</el-button
2727
>
28-
<el-button class="border-radius_8" type="primary" :icon="IconOpeAdd" @click="exportPng"
29-
>export</el-button
30-
>
3128
</div>
3229

3330
<div class="connections-container">
@@ -78,17 +75,6 @@ const allDsList = ref<any>([]) // all ds list
7875
const router = useRouter()
7976
const loading = ref(false)
8077
81-
const exportPng = () => {
82-
datasourceApi
83-
.exportFromServer()
84-
.then(() => {
85-
console.log('export success')
86-
})
87-
.catch((e) => {
88-
console.log(e)
89-
})
90-
}
91-
9278
function searchHandle() {
9379
if (searchValue.value) {
9480
dsList.value = JSON.parse(JSON.stringify(allDsList.value)).filter((item: any) => {

0 commit comments

Comments
 (0)