From 00251d1cbe82d81e3f1ad4d8954aeaeac8c1b73f Mon Sep 17 00:00:00 2001 From: limengnan <420004014@qq.com> Date: Wed, 7 May 2025 18:24:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E9=9B=86?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/service/dataset/index.vue | 1 + .../application/service/datasource/index.vue | 23 ++++--------------- .../viewsnew/application/service/header.vue | 2 +- 3 files changed, 6 insertions(+), 20 deletions(-) diff --git a/core/core-frontend/src/viewsnew/application/service/dataset/index.vue b/core/core-frontend/src/viewsnew/application/service/dataset/index.vue index fec095f..e24f625 100644 --- a/core/core-frontend/src/viewsnew/application/service/dataset/index.vue +++ b/core/core-frontend/src/viewsnew/application/service/dataset/index.vue @@ -90,6 +90,7 @@ onMounted(() => { if (route.query.id) { applicationId.value = route.query.id findApplicationById(applicationId.value).then(res => { + res.data.data.typename = '数据集' projectInfo.value = res.data.data }) }else{ diff --git a/core/core-frontend/src/viewsnew/application/service/datasource/index.vue b/core/core-frontend/src/viewsnew/application/service/datasource/index.vue index 177e42b..69a0abb 100644 --- a/core/core-frontend/src/viewsnew/application/service/datasource/index.vue +++ b/core/core-frontend/src/viewsnew/application/service/datasource/index.vue @@ -93,7 +93,7 @@ import { iconDatasourceMap } from '@/components/icon-group/datasource-list' import { querySymmetricKey } from '@/api/login' import { symmetricDecrypt } from '@/utils/encryption' import { isFreeFolder } from '@/utils/utils' -const applicationId =ref("") +const applicationId:any =ref("") const projectInfo:any =ref({}) const route = useRoute() const interactiveStore = interactiveStoreWithOut() @@ -1033,6 +1033,7 @@ onMounted(() => { if (route.query.id) { applicationId.value = route.query.id findApplicationById(applicationId.value).then(res => { + res.data.data.typename = '数据源' projectInfo.value = res.data.data }) }else{ @@ -1106,27 +1107,11 @@ const getMenuList = (val: boolean) => {
- {{ t('datasource.datasource') }} +
- - - - - + @click="createDatasource()">
diff --git a/core/core-frontend/src/viewsnew/application/service/header.vue b/core/core-frontend/src/viewsnew/application/service/header.vue index 32f0256..0910b53 100644 --- a/core/core-frontend/src/viewsnew/application/service/header.vue +++ b/core/core-frontend/src/viewsnew/application/service/header.vue @@ -25,7 +25,7 @@ onMounted(()=>{
-
{{projectInfo.name }}
+
{{projectInfo.name }} - {{ projectInfo.typename }}