index.vue 1.0 KB

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