From 606c37ffaf820493ad198a32d20afbd942a5a437 Mon Sep 17 00:00:00 2001
From: chenwenchang <479999519@qq.com>
Date: Mon, 23 Sep 2024 11:39:42 +0800
Subject: [PATCH] =?UTF-8?q?feat(frontend):=20=E9=9B=86=E7=BE=A4=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=E5=B1=95=E7=A4=BA=E4=BC=98=E5=8C=96=20#6834?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../mysql/ha-cluster-list/components/List.vue | 15 ++-
.../components/RenderEntries.vue | 104 ++++++++++++++++++
2 files changed, 111 insertions(+), 8 deletions(-)
create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/ha-cluster-list/components/RenderEntries.vue
diff --git a/dbm-ui/frontend/src/views/db-manage/mysql/ha-cluster-list/components/List.vue b/dbm-ui/frontend/src/views/db-manage/mysql/ha-cluster-list/components/List.vue
index 4e294d9a8e..346f62941c 100644
--- a/dbm-ui/frontend/src/views/db-manage/mysql/ha-cluster-list/components/List.vue
+++ b/dbm-ui/frontend/src/views/db-manage/mysql/ha-cluster-list/components/List.vue
@@ -173,6 +173,8 @@
isRecentDays,
} from '@utils';
+ import RenderEntries from './RenderEntries.vue';
+
interface ColumnData {
cell: string,
data: TendbhaModel
@@ -533,11 +535,9 @@
{t('从访问入口')}
),
- render: ({ data }: ColumnData) => data.slaveEntryList.length === 0 ? '--' : data.slaveEntryList.map((item, index) => (
-
- {{
- default: () => item,
- append: () => index === 0 && (
+ render: ({ data }: ColumnData) =>
+ {{
+ append: ({ index }: { index: number }) => index === 0 && (
<>
>)
- }}
-
- ))
+ }}
+
},
{
label: 'Proxy',
diff --git a/dbm-ui/frontend/src/views/db-manage/mysql/ha-cluster-list/components/RenderEntries.vue b/dbm-ui/frontend/src/views/db-manage/mysql/ha-cluster-list/components/RenderEntries.vue
new file mode 100644
index 0000000000..c7a6cea7f4
--- /dev/null
+++ b/dbm-ui/frontend/src/views/db-manage/mysql/ha-cluster-list/components/RenderEntries.vue
@@ -0,0 +1,104 @@
+
+
+
+
+
+
+