Skip to content

Commit 10922e7

Browse files
fix LB form selection
1 parent 574367b commit 10922e7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ui/src/views/compute/wizard/LoadBalancerSelection.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
:rowKey="record => record.id"
3131
:pagination="false"
3232
:rowSelection="rowSelection"
33+
:customRow="onClickRow"
3334
size="middle"
3435
:scroll="{ y: 225 }">
3536
<template #headerCell="{ column }">
@@ -197,6 +198,14 @@ export default {
197198
this.options.page = page
198199
this.options.pageSize = pageSize
199200
this.$emit('handle-search-filter', this.options)
201+
},
202+
onClickRow (record) {
203+
return {
204+
onClick: () => {
205+
this.selectedRowKeys = [record.id]
206+
this.$emit('select-load-balancer-item', record.id)
207+
}
208+
}
200209
}
201210
}
202211
}

0 commit comments

Comments
 (0)