mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 21:21:44 +00:00
35 lines
618 B
Vue
35 lines
618 B
Vue
<script>
|
|
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../config/harvester';
|
|
|
|
export default {
|
|
name: 'HarvesterVFsNum',
|
|
|
|
props: {
|
|
row: {
|
|
type: Object,
|
|
required: true
|
|
},
|
|
},
|
|
|
|
computed: {
|
|
to() {
|
|
return {
|
|
name: `${ HARVESTER_PRODUCT }-c-cluster-resource`,
|
|
params: { cluster: this.$store.getters['clusterId'], resource: this.row.childDevice },
|
|
query: { parentSriov: this.row.id }
|
|
};
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<div class="vfs-num">
|
|
<router-link
|
|
:to="to"
|
|
>
|
|
{{ row.numVFs }}
|
|
</router-link>
|
|
</div>
|
|
</template>
|