mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
ui: Prevent multiple VM selection and list only VMs IP (#5609)
This commit is contained in:
parent
c66f308d38
commit
de6293b6f7
@ -259,7 +259,13 @@
|
||||
</div>
|
||||
|
||||
<div slot="action" slot-scope="text, record" style="text-align: center">
|
||||
<a-radio-group
|
||||
class="radio-group"
|
||||
:key="record.id"
|
||||
v-model="checked"
|
||||
@change="($event) => checked = $event.target.value">
|
||||
<a-radio :value="record.id" @change="e => fetchNics(e)" />
|
||||
</a-radio-group>
|
||||
</div>
|
||||
</a-table>
|
||||
<a-pagination
|
||||
@ -325,6 +331,7 @@ export default {
|
||||
inject: ['parentFetchData', 'parentToggleLoading'],
|
||||
data () {
|
||||
return {
|
||||
checked: true,
|
||||
selectedRowKeys: [],
|
||||
showGroupActionModal: false,
|
||||
selectedItems: [],
|
||||
@ -730,6 +737,7 @@ export default {
|
||||
this.fetchVirtualMachines()
|
||||
},
|
||||
fetchNics (e) {
|
||||
this.nics = []
|
||||
this.addVmModalNicLoading = true
|
||||
this.newRule.virtualmachineid = e.target.value
|
||||
api('listNics', {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user