ResIpsubnet.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <div class="res-container d-flex justify-content-center">
  3. <div class="res res-ipsubnet">
  4. <p class="desc">{{ $t('network.topology.start') }}:{{ network.guest_ip_start }}</p>
  5. <p class="desc">{{ $t('network.topology.end') }}:{{ network.guest_ip_end }}</p>
  6. <a-tooltip placement="top" :get-popup-container="getPopupContainer">
  7. <template slot="title">
  8. <p class="title">{{ $t('common_228') }}</p>
  9. <p>{{ $t('common.name') }}:{{ network.name }}</p>
  10. <p>{{ $t('common.status') }}:{{ $t('status.network.' + network.status) }}</p>
  11. </template>
  12. <icon type="res-network" />
  13. <span class="name text-truncate">{{ network.name }}</span>
  14. </a-tooltip>
  15. </div>
  16. </div>
  17. </template>
  18. <script>
  19. import ResMixin from '@Network/sections/Topology/ResMixin'
  20. export default {
  21. name: 'ResIpsubnet',
  22. mixins: [ResMixin],
  23. props: {
  24. dataSource: Object,
  25. },
  26. data () {
  27. return {}
  28. },
  29. computed: {
  30. network () {
  31. return this.dataSource || {}
  32. },
  33. },
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. // @import "@Network/sections/Topology/index.scss";
  38. </style>