index.vue 1011 B

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