Skip to content

Commit eb7d520

Browse files
JustaCattthLinx
authored andcommitted
fix(frontend): riak删掉节点、redis部署count问题处理 #9917
# Reviewed, transaction id: 39163
1 parent b84b42a commit eb7d520

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

dbm-ui/frontend/src/views/db-manage/redis/apply/ApplyRedis.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@
853853
backend_group: {
854854
...details.resource_spec.backend_group,
855855
...regionAndDisasterParams,
856-
count: specInfo.machine_pair,
856+
count: Number(specInfo.machine_pair),
857857
spec_info: specInfo,
858858
},
859859
proxy: {

dbm-ui/frontend/src/views/db-manage/riak/list/components/components/DeleteNodes.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,14 @@
144144
details: {
145145
bk_cloud_id: props.data.bk_cloud_id,
146146
cluster_id: props.data.id,
147-
old_nodes: selectedList.map((nodeItem: RiakNodeModel) => ({
148-
bk_biz_id: currentBizId,
149-
bk_cloud_id: nodeItem.bk_cloud_id,
150-
bk_host_id: nodeItem.bk_host_id,
151-
ip: nodeItem.ip,
152-
})),
147+
old_nodes: {
148+
riak: selectedList.map((nodeItem: RiakNodeModel) => ({
149+
bk_biz_id: currentBizId,
150+
bk_cloud_id: nodeItem.bk_cloud_id,
151+
bk_host_id: nodeItem.bk_host_id,
152+
ip: nodeItem.ip,
153+
})),
154+
},
153155
},
154156
ticket_type: TicketTypes.RIAK_CLUSTER_SCALE_IN,
155157
}).then((createTicketResult) => {

0 commit comments

Comments
 (0)