| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <template>
- <base-side-page
- @cancel="cancelSidePage"
- :title="$t('network.ssh-proxy.endpoints')"
- icon="res-ssh-proxy"
- :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"
- :id="listId"
- :res-id="detailData.id"
- :data="detailData"
- :getParams="getParams"
- :on-manager="onManager"
- :columns="columns"
- @side-page-trigger-handle="sidePageTriggerHandle"
- @init-side-page-tab="initSidePageTab"
- @refresh="refresh"
- @single-refresh="singleRefresh"
- @tab-change="handleTabChange" />
- </base-side-page>
- </template>
- <script>
- import SidePageMixin from '@/mixins/sidePage'
- import WindowsMixin from '@/mixins/windows'
- import Actions from '@/components/PageList/Actions'
- import SingleActionsMixin from '../mixins/singleActions'
- import ColumnsMixin from '../mixins/columns'
- import SshProxyDetail from './Detail'
- import SshProxyScopeSidePage from './Scope'
- export default {
- name: 'SshProxySidePage',
- components: {
- SshProxyDetail,
- SshProxyScopeSidePage,
- Actions,
- },
- mixins: [SidePageMixin, WindowsMixin, ColumnsMixin, SingleActionsMixin],
- data () {
- return {
- detailTabs: [
- { label: this.$t('network.text_67'), key: 'SshProxy-detail' },
- { label: this.$t('network.ssh-proxy.scope'), key: 'SshProxy-scope-side-page' },
- { label: this.$t('network.text_150'), key: 'event-drawer' },
- ],
- }
- },
- computed: {
- getParams () {
- return {
- proxy_endpoint: this.detailData.id,
- }
- },
- listId () {
- switch (this.params.windowData.currentTab) {
- case 'SshProxy-scope-side-page':
- return 'SshProxyScopeSidePage'
- default:
- return ''
- }
- },
- },
- }
- </script>
|