index.vue 1.0 KB

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