index.vue 741 B

1234567891011121314151617181920212223242526272829303132
  1. <template>
  2. <div>
  3. <page-header :title="$t('dictionary.policy')" :tabs="tabs" :current-tab.sync="currentTab" />
  4. <page-body>
  5. <list ref="list" :id="listId" :type="currentTab" />
  6. </page-body>
  7. </div>
  8. </template>
  9. <script>
  10. import KeepAliveMixin from '@/mixins/keepAlive'
  11. import List from './components/List'
  12. export default {
  13. name: 'PolicyIndex',
  14. components: {
  15. List,
  16. },
  17. mixins: [KeepAliveMixin],
  18. data () {
  19. return {
  20. listId: 'PolicyList',
  21. tabs: [
  22. { label: this.$t('policy.list_tabs.all'), key: '' },
  23. { label: this.$t('policy.list_tabs.custom'), key: 'custom' },
  24. { label: this.$t('policy.list_tabs.system'), key: 'system' },
  25. ],
  26. currentTab: '',
  27. }
  28. },
  29. }
  30. </script>