| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <template>
- <base-side-page
- @cancel="cancelSidePage"
- :title="$t('k8s.text_377')"
- icon="res-k8s-rbacclusterrolebinding"
- :res-name="detailData.name"
- :current-tab="params.windowData.currentTab"
- :tabs="detailTabs"
- :loaded="loaded"
- @tab-change="handleTabChange">
- <template v-slot:actions>
- <actions
- :options="singleActions"
- :row="detailData"
- button-type="link"
- button-size="small" />
- </template>
- <component
- :is="params.windowData.currentTab"
- :data="detailData"
- resource="rbacclusterrolebindings"
- :serverColumns="columns"
- :id="listId"
- :res-id="data.id"
- :getParams="getParams"
- :on-manager="onManager"
- @refresh="refresh"
- @single-refresh="singleRefresh"
- @tab-change="handleTabChange" />
- </base-side-page>
- </template>
- <script>
- import SingleActionsMixin from '../mixins/singleActions'
- import ColumnsMixin from '../mixins/columns'
- import Detail from './Detail'
- import SourceInformationSidepage from '@K8S/sections/SourceInformationSidepage'
- import SidePageMixin from '@/mixins/sidePage'
- import WindowsMixin from '@/mixins/windows'
- import Actions from '@/components/PageList/Actions'
- export default {
- name: 'K8SRbacclusterrolebindingSidePage',
- components: {
- Actions,
- Detail,
- SourceInformationSidepage,
- },
- mixins: [SidePageMixin, WindowsMixin, ColumnsMixin, SingleActionsMixin],
- data () {
- return {
- detailTabs: [
- { label: this.$t('k8s.text_217'), key: 'detail' },
- { label: this.$t('k8s.text_219'), key: 'source-information-sidepage' },
- { label: this.$t('compute.text_240'), key: 'event-drawer' },
- ],
- }
- },
- computed: {
- getParams () {
- return null
- },
- listId () {
- switch (this.params.windowData.currentTab) {
- case 'event-drawer':
- return 'EventListForK8SRbacclusterrolebindingSidePage'
- default:
- return ''
- }
- },
- },
- }
- </script>
|