From c3c850708e451ddbf8f39f8dd94925abfe397189 Mon Sep 17 00:00:00 2001 From: junjun Date: Thu, 8 May 2025 18:05:05 +0800 Subject: [PATCH] feat: datasource ui --- frontend/src/style.less | 7 ------- frontend/src/views/ds/form.vue | 8 ++++++++ frontend/src/views/ds/index.vue | 20 ++++++++++++++++---- 3 files changed, 24 insertions(+), 11 deletions(-) diff --git a/frontend/src/style.less b/frontend/src/style.less index eba0560f..915d8297 100644 --- a/frontend/src/style.less +++ b/frontend/src/style.less @@ -66,13 +66,6 @@ button { cursor: pointer; transition: border-color 0.25s; } -button:hover { - border-color: #646cff; -} -button:focus, -button:focus-visible { - outline: 4px auto -webkit-focus-ring-color; -} .card { padding: 2em; diff --git a/frontend/src/views/ds/form.vue b/frontend/src/views/ds/form.vue index e776f9ef..5b2d8484 100644 --- a/frontend/src/views/ds/form.vue +++ b/frontend/src/views/ds/form.vue @@ -49,6 +49,7 @@ import { ref } from 'vue' import { datasourceApi } from '@/api/datasource' import { encrypted, decrypted } from './js/aes' +import { ElMessage } from 'element-plus' const emit = defineEmits(['refresh']) @@ -141,6 +142,13 @@ const check = () => { })) datasourceApi.check(form.value).then((res: any) => { console.log(res) + if(res) { + ElMessage({ + message: 'Connect success', + type: 'success', + showClose: true + }) + } }) } diff --git a/frontend/src/views/ds/index.vue b/frontend/src/views/ds/index.vue index a7aaa8f3..442d806c 100644 --- a/frontend/src/views/ds/index.vue +++ b/frontend/src/views/ds/index.vue @@ -3,10 +3,12 @@