index.vue 601 B

1234567891011121314151617181920212223242526
  1. <template>
  2. <div>
  3. <page-header :title="$t('compute.text_105')" :tabs="cloudEnvOptions" :current-tab.sync="cloudEnv" />
  4. <page-body>
  5. <secgroup-list :id="listId" :cloudEnv="cloudEnv" />
  6. </page-body>
  7. </div>
  8. </template>
  9. <script>
  10. import { getCloudEnvOptions } from '@/utils/common/hypervisor'
  11. import SecgroupList from './components/List'
  12. export default {
  13. name: 'SecgroupIndex',
  14. components: {
  15. SecgroupList,
  16. },
  17. data () {
  18. return {
  19. listId: 'SecgroupList',
  20. cloudEnvOptions: getCloudEnvOptions('security_group_brands'),
  21. cloudEnv: '',
  22. }
  23. },
  24. }
  25. </script>