3636 </div >
3737 </div >
3838 <div class =" form" >
39+ <div class =" form__item" ref =" newCidrList" >
40+ <tooltip-label :title =" $t('label.cidrlist')" bold :tooltip =" createLoadBalancerRuleParams.cidrlist.description" :tooltip-placement =" 'right'" />
41+ <a-input v-model:value =" newRule.cidrlist" ></a-input >
42+ </div >
3943 <div class =" form__item" >
4044 <div class =" form__label" >{{ $t('label.algorithm') }}</div >
4145 <a-select
114118 :pagination =" false"
115119 :rowSelection =" {selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
116120 :rowKey =" record => record.id" >
121+ <template #cidrlist =" { record } " >
122+ <span style =" white-space : pre-line " > {{ record.cidrlist.replaceAll(" ", "\n") }}</span >
123+ </template >
117124 <template #algorithm =" { record } " >
118125 {{ returnAlgorithmName(record.algorithm) }}
119126 </template >
@@ -532,14 +539,16 @@ import Status from '@/components/widgets/Status'
532539import TooltipButton from ' @/components/widgets/TooltipButton'
533540import BulkActionView from ' @/components/view/BulkActionView'
534541import eventBus from ' @/config/eventBus'
542+ import TooltipLabel from ' @/components/widgets/TooltipLabel'
535543
536544export default {
537545 name: ' LoadBalancing' ,
538546 mixins: [mixinForm],
539547 components: {
540548 Status,
541549 TooltipButton,
542- BulkActionView
550+ BulkActionView,
551+ TooltipLabel
543552 },
544553 props: {
545554 resource: {
@@ -586,7 +595,8 @@ export default {
586595 publicport: ' ' ,
587596 protocol: ' tcp' ,
588597 virtualmachineid: [],
589- vmguestip: []
598+ vmguestip: [],
599+ cidrlist: ' '
590600 },
591601 addVmModalVisible: false ,
592602 addVmModalLoading: false ,
@@ -609,6 +619,10 @@ export default {
609619 title: this .$t (' label.privateport' ),
610620 dataIndex: ' privateport'
611621 },
622+ {
623+ title: this .$t (' label.cidrlist' ),
624+ slots: { customRender: ' cidrlist' }
625+ },
612626 {
613627 title: this .$t (' label.algorithm' ),
614628 slots: { customRender: ' algorithm' }
@@ -684,6 +698,9 @@ export default {
684698 return this .selectedRowKeys .length > 0
685699 }
686700 },
701+ beforeCreate () {
702+ this .createLoadBalancerRuleParams = this .$getApiParams (' createLoadBalancerRule' )
703+ },
687704 created () {
688705 this .initForm ()
689706 this .fetchData ()
@@ -1403,7 +1420,8 @@ export default {
14031420 name: this .newRule .name ,
14041421 privateport: this .newRule .privateport ,
14051422 protocol: this .newRule .protocol ,
1406- publicport: this .newRule .publicport
1423+ publicport: this .newRule .publicport ,
1424+ cidrlist: this .newRule .cidrlist
14071425 }).then (response => {
14081426 this .addVmModalVisible = false
14091427 this .handleAssignToLBRule (response .createloadbalancerruleresponse .id )
0 commit comments