From 8c786a246cce3b31614777356d80e140c29464b5 Mon Sep 17 00:00:00 2001 From: Austin <1344583166@qq.com> Date: Fri, 20 Sep 2024 11:34:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E9=9B=86=E7=BE=A4=E5=90=AF?= =?UTF-8?q?=E7=94=A8=E6=8C=89=E9=92=AE=E4=BA=A4=E4=BA=92=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20#7032?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbm-ui/frontend/src/services/model/hdfs/hdfs.ts | 4 ++++ dbm-ui/frontend/src/services/model/pulsar/pulsar.ts | 4 ++++ .../db-manage/elastic-search/list/components/list/Index.vue | 1 + .../src/views/db-manage/hdfs/list/components/list/Index.vue | 1 + .../src/views/db-manage/pulsar/list/components/list/Index.vue | 1 + .../src/views/db-manage/redis/list/components/list/Index.vue | 2 +- 6 files changed, 12 insertions(+), 1 deletion(-) diff --git a/dbm-ui/frontend/src/services/model/hdfs/hdfs.ts b/dbm-ui/frontend/src/services/model/hdfs/hdfs.ts index c99cbffcd6..1b85fe6462 100644 --- a/dbm-ui/frontend/src/services/model/hdfs/hdfs.ts +++ b/dbm-ui/frontend/src/services/model/hdfs/hdfs.ts @@ -261,4 +261,8 @@ export default class Hdfs { return payload; } + + get isStarting() { + return Boolean(this.operations.find((item) => item.ticket_type === Hdfs.HDFS_ENABLE)); + } } diff --git a/dbm-ui/frontend/src/services/model/pulsar/pulsar.ts b/dbm-ui/frontend/src/services/model/pulsar/pulsar.ts index c6615ca357..b846e799fb 100644 --- a/dbm-ui/frontend/src/services/model/pulsar/pulsar.ts +++ b/dbm-ui/frontend/src/services/model/pulsar/pulsar.ts @@ -265,4 +265,8 @@ export default class Pulsar { return payload; } + + get isStarting() { + return Boolean(this.operations.find((item) => item.ticket_type === Pulsar.PULSAR_ENABLE)); + } } diff --git a/dbm-ui/frontend/src/views/db-manage/elastic-search/list/components/list/Index.vue b/dbm-ui/frontend/src/views/db-manage/elastic-search/list/components/list/Index.vue index 0e1bb5f866..e39758e125 100644 --- a/dbm-ui/frontend/src/views/db-manage/elastic-search/list/components/list/Index.vue +++ b/dbm-ui/frontend/src/views/db-manage/elastic-search/list/components/list/Index.vue @@ -684,6 +684,7 @@ handleSwitchRedis(TicketTypes.REDIS_PROXY_OPEN, data)}> { t('启用') }