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 2db04c84e8..162300f226 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 @@ -590,9 +590,10 @@ if (capacityNeed.value > 0) { isTableLoading.value = true; const clusterType = props.data?.clusterType ?? ClusterTypes.TWEMPROXY_REDIS_INSTANCE; + const machineType = clusterType === ClusterTypes.PREDIXY_REDIS_CLUSTER ? ClusterTypes.PREDIXY_REDIS_CLUSTER : specClusterMachineMap[clusterType]; const params = { spec_cluster_type: 'redis', - spec_machine_type: specClusterMachineMap[clusterType], + spec_machine_type: machineType, shard_num: props.data.shardNum === 0 ? undefined : props.data.shardNum, capacity: capacityNeed.value, future_capacity: capacityNeed.value, diff --git a/dbm-ui/frontend/src/views/db-manage/redis/common/cluster-deploy-plan/Index.vue b/dbm-ui/frontend/src/views/db-manage/redis/common/cluster-deploy-plan/Index.vue index 0a01188723..6625aafbee 100644 --- a/dbm-ui/frontend/src/views/db-manage/redis/common/cluster-deploy-plan/Index.vue +++ b/dbm-ui/frontend/src/views/db-manage/redis/common/cluster-deploy-plan/Index.vue @@ -426,9 +426,10 @@ if (specInfo.capacityNeed > 0 && specInfo.capacityFutureNeed > 0) { isTableLoading.value = true; const clusterType = props.data?.clusterType ?? ClusterTypes.TWEMPROXY_REDIS_INSTANCE; + const machineType = clusterType === ClusterTypes.PREDIXY_REDIS_CLUSTER ? ClusterTypes.PREDIXY_REDIS_CLUSTER : specClusterMachineMap[clusterType]; const params = { spec_cluster_type: 'redis', - spec_machine_type: specClusterMachineMap[clusterType], + spec_machine_type: machineType, shard_num: props.data.shardNum === 0 ? undefined : props.data.shardNum, capacity: specInfo.capacityNeed, future_capacity: specInfo.capacityNeed <= specInfo.capacityFutureNeed ? specInfo.capacityFutureNeed : specInfo.capacityNeed,