From 3022afadf7bf3fb7dc8be3e38fa50f3a4bb7e074 Mon Sep 17 00:00:00 2001 From: Feynman Date: Fri, 12 Jun 2026 16:34:10 +0800 Subject: [PATCH 1/3] feat: update UserOperation component to use script setup and improve rendering logic; adjust UserNotification styles for better layout --- .../views/notification/UserNotification.vue | 2 +- .../src/views/notification/UserOperation.vue | 173 +++++++++++++++--- 2 files changed, 146 insertions(+), 29 deletions(-) diff --git a/apps/daas/src/views/notification/UserNotification.vue b/apps/daas/src/views/notification/UserNotification.vue index bcd5e89fb..a198aa45d 100644 --- a/apps/daas/src/views/notification/UserNotification.vue +++ b/apps/daas/src/views/notification/UserNotification.vue @@ -219,7 +219,7 @@ export default { display: flex; justify-content: space-between; align-items: center; - line-height: 50px; + min-height: 50px; border-bottom: 1px solid var(--border-light); font-size: var(--font-base-title); color: #202d40; diff --git a/apps/daas/src/views/notification/UserOperation.vue b/apps/daas/src/views/notification/UserOperation.vue index d0e360805..1be03552f 100644 --- a/apps/daas/src/views/notification/UserOperation.vue +++ b/apps/daas/src/views/notification/UserOperation.vue @@ -1,36 +1,153 @@ - - + +function openSource() { + if (!canOpenSource.value) return + + const route = router.resolve({ + name: sourceRouteName.value, + params: { + id: sourceId.value, + }, + }) + + window.open(route.href, '_blank') +} + + + From feb763242b3d27187bfa10d3aa52210fa9b4c3e6 Mon Sep 17 00:00:00 2001 From: Feynman Date: Fri, 12 Jun 2026 17:49:23 +0800 Subject: [PATCH 2/3] style: update NotificationPopover and UserNotification components for improved styling; modify UserOperation component for better layout and rendering logic --- .../src/views/notification/NotificationPopover.vue | 2 +- .../src/views/notification/UserNotification.vue | 4 ++-- apps/daas/src/views/notification/UserOperation.vue | 8 ++------ .../business/src/views/connections/DatabaseForm.vue | 13 ++++++++++--- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/apps/daas/src/views/notification/NotificationPopover.vue b/apps/daas/src/views/notification/NotificationPopover.vue index 96d28ba56..27c92b5cf 100644 --- a/apps/daas/src/views/notification/NotificationPopover.vue +++ b/apps/daas/src/views/notification/NotificationPopover.vue @@ -503,7 +503,7 @@ export default { border-radius: 50%; } &:hover { - background-color: #ecf5ff; + background-color: var(--el-fill-color-light); } &:last-child { border: none; diff --git a/apps/daas/src/views/notification/UserNotification.vue b/apps/daas/src/views/notification/UserNotification.vue index a198aa45d..0edb2bdf1 100644 --- a/apps/daas/src/views/notification/UserNotification.vue +++ b/apps/daas/src/views/notification/UserNotification.vue @@ -150,9 +150,9 @@ export default {
diff --git a/packages/business/src/views/connections/DatabaseForm.vue b/packages/business/src/views/connections/DatabaseForm.vue index 16f8f3d90..5b071d86a 100644 --- a/packages/business/src/views/connections/DatabaseForm.vue +++ b/packages/business/src/views/connections/DatabaseForm.vue @@ -375,8 +375,16 @@ export default { }, async getPdkForm() { const pdkHash = this.$route.query?.pdkHash - const data = await fetchDatabaseTypeByPdkHash(pdkHash) const id = this.id || this.$route.params.id + + if (id) { + await this.getPdkData(id) + } + + const data = await fetchDatabaseTypeByPdkHash( + pdkHash || this.model.pdkHash, + ) + this.pdkOptions = data || {} if ( @@ -1286,7 +1294,6 @@ export default { } if (id) { - await this.getPdkData(id) // 开启了共享挖掘 const { shareCdcEnable, shareCDCExternalStorageId } = this.model if (shareCdcEnable && shareCDCExternalStorageId) { @@ -1688,7 +1695,7 @@ export default {
+ + + refresh +
  • @@ -207,8 +211,7 @@ export default { display: flex; align-items: center; .search-item { - margin-right: 15px; - width: 200px; + width: 300px; } } .list {