Detail.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <detail :base-info="baseInfo" :data="data" statusModule="rdsBackup" :extra-info="extraInfo" :onManager="onManager" />
  3. </template>
  4. <script>
  5. // import { sizestr } from '@/utils/utils'
  6. // const BACKUP_TYPE = {
  7. // automated: '自动',
  8. // manual: '手动'
  9. // }
  10. export default {
  11. name: 'RdsBackupSidepageDetail',
  12. props: {
  13. onManager: {
  14. type: Function,
  15. required: true,
  16. },
  17. data: {
  18. type: Object,
  19. required: true,
  20. },
  21. },
  22. data () {
  23. return {
  24. baseInfo: [
  25. ],
  26. extraInfo: [
  27. {
  28. title: this.$t('db.text_225'),
  29. items: [
  30. {
  31. field: 'tenant',
  32. title: this.$t('db.text_226', [this.$t('dictionary.project')]),
  33. },
  34. {
  35. field: 'backup_size_mb',
  36. title: this.$t('db.text_38'),
  37. slots: {
  38. default: ({ row }) => {
  39. return `${row.backup_size_mb}GB`
  40. },
  41. },
  42. },
  43. {
  44. field: 'dbinstance',
  45. title: this.$t('db.text_35'),
  46. },
  47. {
  48. field: 'backup_mode',
  49. title: this.$t('db.text_36'),
  50. },
  51. {
  52. field: 'engine',
  53. title: this.$t('db.text_37'),
  54. },
  55. {
  56. field: 'account',
  57. title: this.$t('db.text_67'),
  58. },
  59. {
  60. field: 'account',
  61. title: this.$t('db.text_227'),
  62. },
  63. {
  64. field: 'brand',
  65. title: this.$t('db.text_51'),
  66. },
  67. {
  68. field: 'region',
  69. title: this.$t('db.text_40'),
  70. },
  71. ],
  72. },
  73. ],
  74. }
  75. },
  76. }
  77. </script>