Detail.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <detail
  3. :on-manager="onManager"
  4. :data="data"
  5. :base-info="baseInfo"
  6. :extra-info="extraInfo"
  7. :hidden-keys="['status']" />
  8. </template>
  9. <script>
  10. import {
  11. isPublicTableColumn,
  12. } from '@/utils/common/tableColumn'
  13. export default {
  14. name: 'LbcertDetail',
  15. props: {
  16. data: {
  17. type: Object,
  18. required: true,
  19. },
  20. onManager: {
  21. type: Function,
  22. required: true,
  23. },
  24. },
  25. data () {
  26. return {
  27. baseInfo: [
  28. isPublicTableColumn(),
  29. {
  30. field: 'fingerprint',
  31. title: this.$t('network.text_332'),
  32. showOverflow: 'ellipsis',
  33. width: '120px',
  34. slots: {
  35. default: ({ row, cellValue }, h) => {
  36. const ret = [<list-body-cell-wrap row={ row } field="fingerprint" />]
  37. return ret
  38. },
  39. },
  40. },
  41. {
  42. field: 'common_name',
  43. title: this.$t('network.text_318'),
  44. },
  45. {
  46. field: 'not_after',
  47. title: this.$t('network.text_319'),
  48. },
  49. ],
  50. extraInfo: [],
  51. }
  52. },
  53. }
  54. </script>
  55. <style scoped lang="less">
  56. @import '~@/styles/less/theme';
  57. .status-dot {
  58. width: 8px;
  59. height: 8px;
  60. border-radius: 50%;
  61. position: relative;
  62. display: inline-flex;
  63. }
  64. .success {
  65. background-color: @success-color;
  66. }
  67. .danger {
  68. background-color: @error-color;
  69. }
  70. .info {
  71. background-color: @normal-color;
  72. }
  73. .warning {
  74. background-color: @warning-color;
  75. }
  76. </style>