From 93cbb8dc8a0959986229dc3be573bac25899acbb Mon Sep 17 00:00:00 2001
From: Austin <1344583166@qq.com>
Date: Wed, 4 Sep 2024 09:47:56 +0800
Subject: [PATCH] =?UTF-8?q?fix(frontend):=20dbha=E5=88=87=E6=8D=A2?=
=?UTF-8?q?=E5=88=87=E6=8D=A2=E4=BA=8B=E4=BB=B6=E6=97=A5=E5=BF=97=E7=AA=97?=
=?UTF-8?q?=E5=8F=A3=E9=AB=98=E5=BA=A6=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?=
=?UTF-8?q?=20#6653?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
dbm-ui/frontend/src/components/apply-items/BusinessItems.vue | 2 +-
dbm-ui/frontend/src/views/dbha-switch-events/list/Index.vue | 4 ++--
.../list/components/SwtichEventDetatils.vue | 3 ++-
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/dbm-ui/frontend/src/components/apply-items/BusinessItems.vue b/dbm-ui/frontend/src/components/apply-items/BusinessItems.vue
index de27da0e7e..7446e96c40 100644
--- a/dbm-ui/frontend/src/components/apply-items/BusinessItems.vue
+++ b/dbm-ui/frontend/src/components/apply-items/BusinessItems.vue
@@ -113,7 +113,7 @@
},
{
validator: (val: string) => {
- if (hasEnglishName.value) {
+ if (hasEnglishName.value || val === '') {
return true;
}
return !bizList.value!.find((item) => item.english_name === val);
diff --git a/dbm-ui/frontend/src/views/dbha-switch-events/list/Index.vue b/dbm-ui/frontend/src/views/dbha-switch-events/list/Index.vue
index b767f1412c..1984168fb1 100644
--- a/dbm-ui/frontend/src/views/dbha-switch-events/list/Index.vue
+++ b/dbm-ui/frontend/src/views/dbha-switch-events/list/Index.vue
@@ -18,7 +18,7 @@
v-model="filterDateRang"
append-to-body
clearable
- :placeholder="$t('请选择')"
+ :placeholder="t('请选择')"
style="width: 340px"
type="datetimerange"
@change="fetchTableData" />
@@ -56,7 +56,7 @@
- {{ $t('总耗时') }}:
+ {{ t('总耗时') }}:
{{ logState.data.cost_time }}
diff --git a/dbm-ui/frontend/src/views/dbha-switch-events/list/components/SwtichEventDetatils.vue b/dbm-ui/frontend/src/views/dbha-switch-events/list/components/SwtichEventDetatils.vue
index f08bb98a9f..e46079aca8 100644
--- a/dbm-ui/frontend/src/views/dbha-switch-events/list/components/SwtichEventDetatils.vue
+++ b/dbm-ui/frontend/src/views/dbha-switch-events/list/components/SwtichEventDetatils.vue
@@ -87,7 +87,8 @@