From 2f28bf0c1391edba70e4f3475ade5fce3edb39b1 Mon Sep 17 00:00:00 2001 From: chenwenchang <479999519@qq.com> Date: Thu, 12 Dec 2024 18:32:17 +0800 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20=E5=B7=A5=E5=85=B7=E7=AE=B1?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=B5=84=E6=BA=90=E6=B1=A0=E5=8D=8F=E8=AE=AE?= =?UTF-8?q?=E5=8F=98=E6=9B=B4=5Fmysql=E6=B7=BB=E5=8A=A0proxy=20#8076?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/editable-table/Column.vue | 3 - .../components/editable-table/edit/Input.vue | 8 +- .../components/resource-host-owner/Index.vue | 4 +- .../resource-host-selector/Index.vue | 10 +- .../db-manage/mysql/MYSQL_ADD_SLAVE/Index.vue | 49 ++++-- .../components/RenderCluster.vue | 157 +++++++----------- .../MYSQL_ADD_SLAVE/components/RenderHost.vue | 81 ++++++--- 7 files changed, 161 insertions(+), 151 deletions(-) diff --git a/dbm-ui/frontend/src/components/editable-table/Column.vue b/dbm-ui/frontend/src/components/editable-table/Column.vue index cde685b4a5..013024d774 100644 --- a/dbm-ui/frontend/src/components/editable-table/Column.vue +++ b/dbm-ui/frontend/src/components/editable-table/Column.vue @@ -487,10 +487,7 @@ .bk-editable-table-field-cell { position: relative; - display: flex; height: 100%; - min-height: 40px; - align-items: center; } .bk-editable-table-column-error { diff --git a/dbm-ui/frontend/src/components/editable-table/edit/Input.vue b/dbm-ui/frontend/src/components/editable-table/edit/Input.vue index 2af3ccac51..7cf5986115 100644 --- a/dbm-ui/frontend/src/components/editable-table/edit/Input.vue +++ b/dbm-ui/frontend/src/components/editable-table/edit/Input.vue @@ -54,11 +54,9 @@ }); const handleBlur = async () => { - const result = await columnContext?.validate('blur'); - if (result) { - columnContext?.blur(); - emits('blur'); - } + columnContext?.validate('blur'); + columnContext?.blur(); + emits('blur'); }; const handleFocus = () => { diff --git a/dbm-ui/frontend/src/components/resource-host-owner/Index.vue b/dbm-ui/frontend/src/components/resource-host-owner/Index.vue index 2aa7905f2e..cef6b883fb 100644 --- a/dbm-ui/frontend/src/components/resource-host-owner/Index.vue +++ b/dbm-ui/frontend/src/components/resource-host-owner/Index.vue @@ -28,8 +28,8 @@ const { t } = useI18n(); - const isForBiz = computed(() => props.data.for_biz.bk_biz_id); - const isForDb = computed(() => props.data.resource_type && props.data.resource_type !== 'PUBLIC'); + const isForBiz = computed(() => props.data?.for_biz.bk_biz_id); + const isForDb = computed(() => props.data?.resource_type && props.data.resource_type !== 'PUBLIC');