From 361eafedaef48d0be18ede65434c3df8d2acc46c Mon Sep 17 00:00:00 2001 From: kanzihuang Date: Sun, 15 Oct 2023 10:36:01 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E6=89=A7=E8=A1=8C=20SQL=20=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E6=97=B6=E6=98=BE=E7=A4=BA=E6=89=A7=E8=A1=8C=E8=BF=9B?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mayfly_go_web/src/common/sockets.ts | 2 +- .../progress-notify/progress-notify.ts | 2 +- .../progress-notify/progress-notify.vue | 2 +- server/internal/db/api/db.go | 37 +++++++++++++++---- .../internal/db/domain/entity/db_type_test.go | 10 ++--- 5 files changed, 36 insertions(+), 17 deletions(-) diff --git a/mayfly_go_web/src/common/sockets.ts b/mayfly_go_web/src/common/sockets.ts index db61ca91..aa1dc4a6 100644 --- a/mayfly_go_web/src/common/sockets.ts +++ b/mayfly_go_web/src/common/sockets.ts @@ -45,7 +45,7 @@ export default { notification: undefined, } } - progress.props.progress.sqlFileName = content.sqlFileName + progress.props.progress.title = content.title progress.props.progress.executedStatements = content.executedStatements if (!notifyMap.has(id)) { const vNodeMessage = createVNode( diff --git a/mayfly_go_web/src/components/progress-notify/progress-notify.ts b/mayfly_go_web/src/components/progress-notify/progress-notify.ts index 48e93572..0a7b3861 100644 --- a/mayfly_go_web/src/components/progress-notify/progress-notify.ts +++ b/mayfly_go_web/src/components/progress-notify/progress-notify.ts @@ -1,7 +1,7 @@ export const buildProgressProps = (): any => { return { progress: { - sqlFileName: { + title: { type: String, }, executedStatements: { diff --git a/mayfly_go_web/src/components/progress-notify/progress-notify.vue b/mayfly_go_web/src/components/progress-notify/progress-notify.vue index e366ae72..a0dcf230 100644 --- a/mayfly_go_web/src/components/progress-notify/progress-notify.vue +++ b/mayfly_go_web/src/components/progress-notify/progress-notify.vue @@ -1,5 +1,5 @@