index.vue 950 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <div>
  3. <page-header
  4. :title="$t('compute.text_112')"
  5. isShowResStatusTab
  6. :status-opts="statusOpts"
  7. :status-click-handle="statusClickHandle" />
  8. <page-body>
  9. <physicalmachine-list
  10. :getParams="getParams"
  11. :id="listId"
  12. :filterParams="filterParams"
  13. statusResKey="host"
  14. @refresh="refreshHandle"
  15. @resStatisticsChange="resStatisticsChange" />
  16. </page-body>
  17. </div>
  18. </template>
  19. <script>
  20. import ResStatisticsV2Mixin from '@/mixins/resStatisticsV2Mixin'
  21. import PhysicalmachineList from './components/List'
  22. export default {
  23. name: 'PhysicalmachineIndex',
  24. components: {
  25. PhysicalmachineList,
  26. },
  27. mixins: [ResStatisticsV2Mixin],
  28. data () {
  29. return {
  30. listId: 'PhysicalmachineList',
  31. getParams: {
  32. details: true,
  33. baremetal: true,
  34. host_type: 'baremetal',
  35. },
  36. statusNormalList: ['running'],
  37. }
  38. },
  39. }
  40. </script>