Policyassignments.vue 824 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <page-list
  3. :list="list"
  4. :columns="columns" />
  5. </template>
  6. <script>
  7. import {
  8. getCopyWithContentTableColumn,
  9. } from '@/utils/common/tableColumn'
  10. import WindowsMixin from '@/mixins/windows'
  11. export default {
  12. name: 'PolicyassignmentsList',
  13. mixins: [WindowsMixin],
  14. props: {
  15. resId: String,
  16. data: {
  17. type: Object,
  18. required: true,
  19. },
  20. },
  21. data () {
  22. return {
  23. list: this.$list.createList(this, {
  24. resource: 'policy_assignments',
  25. getParams: {
  26. policydefinition: this.resId,
  27. details: true,
  28. },
  29. filterOptions: {},
  30. }),
  31. columns: [
  32. getCopyWithContentTableColumn({ field: 'project_domain', title: this.$t('cloudenv.text_95') }),
  33. ],
  34. }
  35. },
  36. created () {
  37. this.list.fetchData()
  38. },
  39. }
  40. </script>