index.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <base-side-page
  3. @cancel="cancelSidePage"
  4. :title="$t('network.ssh-proxy.endpoints')"
  5. icon="res-cluster"
  6. :res-name="detailData.name"
  7. :current-tab="params.windowData.currentTab"
  8. :tabs="detailTabs"
  9. :loaded="loaded"
  10. @tab-change="handleTabChange">
  11. <template v-slot:actions>
  12. <actions :options="singleActions" :row="detailData" button-type="link" button-size="small" />
  13. </template>
  14. <component
  15. :is="params.windowData.currentTab"
  16. :id="listId"
  17. :res-id="detailData.id"
  18. :data="detailData"
  19. :getParams="getParams"
  20. :on-manager="onManager"
  21. :columns="columns"
  22. @side-page-trigger-handle="sidePageTriggerHandle"
  23. @init-side-page-tab="initSidePageTab"
  24. @refresh="refresh"
  25. @single-refresh="singleRefresh"
  26. @tab-change="handleTabChange" />
  27. </base-side-page>
  28. </template>
  29. <script>
  30. import SingleActionsMixin from '../mixins/singleActions'
  31. import ColumnsMixin from '../mixins/columns'
  32. import SshProxyMatchDetail from './Detail'
  33. import SidePageMixin from '@/mixins/sidePage'
  34. import WindowsMixin from '@/mixins/windows'
  35. import Actions from '@/components/PageList/Actions'
  36. export default {
  37. name: 'SshProxyMatchSidePage',
  38. components: {
  39. SshProxyMatchDetail,
  40. Actions,
  41. },
  42. mixins: [SidePageMixin, WindowsMixin, ColumnsMixin, SingleActionsMixin],
  43. data () {
  44. return {
  45. detailTabs: [
  46. { label: this.$t('network.text_67'), key: 'SshProxyMatch-detail' },
  47. { label: this.$t('network.text_150'), key: 'event-drawer' },
  48. ],
  49. }
  50. },
  51. computed: {
  52. getParams () {
  53. return {
  54. cluster: this.detailData.id,
  55. }
  56. },
  57. listId () {
  58. return ''
  59. },
  60. },
  61. }
  62. </script>