index.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <base-side-page
  3. @cancel="cancelSidePage"
  4. :title="$t('dictionary.policy')"
  5. icon="res-policy"
  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 :is="params.windowData.currentTab" :res-id="data.id" :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 Actions from '@/components/PageList/Actions'
  22. import ColumnsMixin from '../mixins/columns'
  23. import SingleActionsMixin from '../mixins/singleActions'
  24. import PolicyDetail from './Detail'
  25. export default {
  26. name: 'PolicySidePage',
  27. components: {
  28. PolicyDetail,
  29. Actions,
  30. },
  31. mixins: [SidePageMixin, WindowsMixin, ColumnsMixin, SingleActionsMixin],
  32. data () {
  33. return {
  34. detailTabs: [
  35. { label: this.$t('system.text_159'), key: 'policy-detail' },
  36. { label: this.$t('system.text_17'), key: 'event-drawer' },
  37. ],
  38. }
  39. },
  40. computed: {
  41. getParams () {
  42. return null
  43. },
  44. },
  45. }
  46. </script>