index.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <base-side-page
  3. @cancel="cancelSidePage"
  4. :title="$t('dictionary.identity_provider')"
  5. icon="res-idp"
  6. :res-name="detailData.name"
  7. :actions="params.actions"
  8. :current-tab="params.windowData.currentTab"
  9. :tabs="detailTabs"
  10. :loaded="loaded"
  11. @tab-change="handleTabChange">
  12. <template v-slot:actions>
  13. <actions :options="singleActions" :row="detailData" button-type="link" button-size="small" />
  14. </template>
  15. <component v-if="data.id" :is="params.windowData.currentTab" :id="listId" :res-id="data.id" :resource="resource" :data="detailData" :onManager="onManager" :getParams="getParams" />
  16. </base-side-page>
  17. </template>
  18. <script>
  19. import SidePageMixin from '@/mixins/sidePage'
  20. import WindowsMixin from '@/mixins/windows'
  21. import JumpTo from '@/mixins/jumper'
  22. import Actions from '@/components/PageList/Actions'
  23. import ColumnsMixin from '../mixins/columns'
  24. import SingleActionsMixin from '../mixins/singleActions'
  25. import IDPDetail from './Detail'
  26. export default {
  27. name: 'IDPSidePage',
  28. components: {
  29. 'idp-detail': IDPDetail,
  30. Actions,
  31. },
  32. mixins: [WindowsMixin, SidePageMixin, ColumnsMixin, JumpTo, SingleActionsMixin],
  33. data () {
  34. return {
  35. detailTabs: [
  36. { label: this.$t('system.text_159'), key: 'idp-detail' },
  37. { label: this.$t('system.text_17'), key: 'event-drawer' },
  38. ],
  39. }
  40. },
  41. computed: {
  42. getParams () {
  43. return null
  44. },
  45. listId () {
  46. switch (this.params.windowData.currentTab) {
  47. case 'event-drawer':
  48. return 'EventListForIDPSidePage'
  49. default:
  50. return ''
  51. }
  52. },
  53. },
  54. }
  55. </script>