index.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <div>
  3. <page-header
  4. :title="$t('network.text_565')"
  5. :tabs="cloudEnvOptions"
  6. :current-tab.sync="cloudEnv"
  7. isShowResStatusTab
  8. :status-opts="statusOpts"
  9. :status-click-handle="statusClickHandle" />
  10. <page-body>
  11. <network-list
  12. ref="list"
  13. :id="listId"
  14. :cloud-env="cloudEnv"
  15. :cloudEnvOptions="cloudEnvOptions"
  16. :filterParams="filterParams"
  17. statusResKey="network"
  18. @resStatisticsChange="resStatisticsChange" />
  19. </page-body>
  20. </div>
  21. </template>
  22. <script>
  23. import { getCloudEnvOptions } from '@/utils/common/hypervisor'
  24. import ResStatisticsV2Mixin from '@/mixins/resStatisticsV2Mixin'
  25. import KeepAliveMixin from '@/mixins/keepAlive'
  26. import NetworkList from './components/List'
  27. export default {
  28. name: 'NetworkIndex',
  29. components: {
  30. NetworkList,
  31. },
  32. mixins: [ResStatisticsV2Mixin, KeepAliveMixin],
  33. data () {
  34. return {
  35. listId: 'NetworkList',
  36. cloudEnvOptions: getCloudEnvOptions('network_manage_brands'),
  37. cloudEnv: '',
  38. statusNormalList: ['available'],
  39. }
  40. },
  41. }
  42. </script>