From b489233bcad057cbc74e2f923543b78bd33fd29f Mon Sep 17 00:00:00 2001 From: 3octaves <873551943@qq.com> Date: Fri, 18 Oct 2024 19:37:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20redis=E9=9B=86=E7=BE=A4?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=87=AA=E5=AE=9A=E4=B9=89=E6=96=B9=E6=A1=88?= =?UTF-8?q?=20#7272?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../redis/clusterShardUpdate.ts | 5 +-- .../redis/clusterTypeUpdate.ts | 5 +-- .../page1/components/ClusterDeployPlan.vue | 16 +++++----- .../page1/components/RenderTargetCapacity.vue | 31 ++++++++++++++----- .../pages/page1/Index.vue | 5 +-- .../page1/components/RenderDeployPlan.vue | 24 +++++++++----- .../pages/page1/components/Row.vue | 6 ++-- .../cluster-type-update/pages/page1/Index.vue | 5 +-- .../page1/components/RenderDeployPlan.vue | 24 +++++++++----- .../pages/page1/components/Row.vue | 6 ++-- .../common/cluster-deploy-plan/Index.vue | 11 ++++--- 11 files changed, 77 insertions(+), 61 deletions(-) diff --git a/dbm-ui/frontend/src/hooks/useTicketCloneInfo/generateCloneData/redis/clusterShardUpdate.ts b/dbm-ui/frontend/src/hooks/useTicketCloneInfo/generateCloneData/redis/clusterShardUpdate.ts index 4c7ea5cc5a..1eaa450928 100644 --- a/dbm-ui/frontend/src/hooks/useTicketCloneInfo/generateCloneData/redis/clusterShardUpdate.ts +++ b/dbm-ui/frontend/src/hooks/useTicketCloneInfo/generateCloneData/redis/clusterShardUpdate.ts @@ -54,6 +54,7 @@ export async function generateRedisClusterShardUpdateCloneData( clusterType: currentClusterInfo.cluster_spec.spec_cluster_type, clusterTypeName: currentClusterInfo.cluster_type_name, currentShardNum: currentClusterInfo.cluster_shard_num, + groupNum: currentClusterInfo.machine_pair_cnt, currentSpecId: currentClusterInfo.cluster_spec.spec_id, dbVersion: item.db_version, specConfig: { @@ -66,10 +67,6 @@ export async function generateRedisClusterShardUpdateCloneData( id: currentClusterInfo.proxy[0].spec_config.id, count: new Set(currentClusterInfo.proxy.map((item) => item.ip)).size, }, - backendGroup: { - id: currentClusterInfo.cluster_spec.spec_id, - count: currentClusterInfo.redis_master.length, - }, }; }); return { diff --git a/dbm-ui/frontend/src/hooks/useTicketCloneInfo/generateCloneData/redis/clusterTypeUpdate.ts b/dbm-ui/frontend/src/hooks/useTicketCloneInfo/generateCloneData/redis/clusterTypeUpdate.ts index 0e2b02470c..b50d95c8a9 100644 --- a/dbm-ui/frontend/src/hooks/useTicketCloneInfo/generateCloneData/redis/clusterTypeUpdate.ts +++ b/dbm-ui/frontend/src/hooks/useTicketCloneInfo/generateCloneData/redis/clusterTypeUpdate.ts @@ -53,6 +53,7 @@ export async function generateRedisClusterTypeUpdateCloneData(ticketData: Ticket currentSepc: `${currentClusterInfo.cluster_capacity}G_${currentClusterInfo.cluster_spec.qps.max}/s${t('(n 分片)', { n: currentClusterInfo.cluster_shard_num })}`, targetClusterType: item.target_cluster_type, currentShardNum: currentClusterInfo.cluster_shard_num, + groupNum: currentClusterInfo.machine_pair_cnt, clusterTypeName: currentClusterInfo.cluster_type_name, currentSpecId: currentClusterInfo.cluster_spec.spec_id, dbVersion: item.db_version, @@ -66,10 +67,6 @@ export async function generateRedisClusterTypeUpdateCloneData(ticketData: Ticket id: currentClusterInfo.proxy[0].spec_config.id, count: new Set(currentClusterInfo.proxy.map((item) => item.ip)).size, }, - backendGroup: { - id: currentClusterInfo.cluster_spec.spec_id, - count: currentClusterInfo.redis_master.length, - }, }; }); return { diff --git a/dbm-ui/frontend/src/views/db-manage/redis/capacity-change/pages/page1/components/ClusterDeployPlan.vue b/dbm-ui/frontend/src/views/db-manage/redis/capacity-change/pages/page1/components/ClusterDeployPlan.vue index c9c217456a..b43ea304b9 100644 --- a/dbm-ui/frontend/src/views/db-manage/redis/capacity-change/pages/page1/components/ClusterDeployPlan.vue +++ b/dbm-ui/frontend/src/views/db-manage/redis/capacity-change/pages/page1/components/ClusterDeployPlan.vue @@ -186,6 +186,7 @@
{{ t('集群部署方案') }}