Detail.vue 944 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <detail
  3. :on-manager="onManager"
  4. :data="data"
  5. :base-info="baseInfo" />
  6. </template>
  7. <script>
  8. import { getCopyWithContentTableColumn, getPublicScopeTableColumn } from '@/utils/common/tableColumn'
  9. export default {
  10. name: 'KeyPairDetail',
  11. props: {
  12. data: {
  13. type: Object,
  14. required: true,
  15. },
  16. onManager: {
  17. type: Function,
  18. required: true,
  19. },
  20. },
  21. data () {
  22. return {
  23. baseInfo: [
  24. getPublicScopeTableColumn({
  25. vm: this,
  26. resource: 'keypairs',
  27. }),
  28. getCopyWithContentTableColumn({
  29. field: 'fingerprint',
  30. title: this.$t('compute.text_726'),
  31. }),
  32. {
  33. field: 'scheme',
  34. title: this.$t('compute.text_175'),
  35. },
  36. {
  37. field: 'linked_guest_count',
  38. title: this.$t('compute.text_699', [this.$t('dictionary.server')]),
  39. },
  40. ],
  41. }
  42. },
  43. }
  44. </script>