ContentInfo.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <div class="h-desc-bg mb-2">
  3. <h5 class="h-title">{{$t('cloudenv.text_244')}}<em>{{$t('cloudenv.text_245', [params.data.length])}}</em>{{$t('cloudenv.text_246')}}</h5>
  4. <div class="pl-4 pr-4 pb-2">
  5. <a-row>
  6. <a-col :span="24">
  7. <dialog-table :data="params.data" :columns="columns" />
  8. </a-col>
  9. </a-row>
  10. </div>
  11. </div>
  12. </template>
  13. <script>
  14. import {
  15. getAccessUrlTableColumn,
  16. getBalanceTableColumn,
  17. getGuestCountTableColumn,
  18. getHostCountTableColumn,
  19. } from '@Cloudenv/views/cloudaccount/utils/columns'
  20. import {
  21. getBrandTableColumn,
  22. getStatusTableColumn,
  23. getEnabledTableColumn,
  24. getNameDescriptionTableColumn,
  25. getCopyWithContentTableColumn,
  26. } from '@/utils/common/tableColumn'
  27. export default {
  28. name: 'ContentInfo',
  29. props: {
  30. params: {
  31. type: Object,
  32. },
  33. },
  34. computed: {
  35. columns () {
  36. return [
  37. getNameDescriptionTableColumn({
  38. hideField: true,
  39. edit: false,
  40. editDesc: false,
  41. slotCallback: row => {
  42. return (
  43. <side-page-trigger>{ row.name }</side-page-trigger>
  44. )
  45. },
  46. }),
  47. getAccessUrlTableColumn(),
  48. getEnabledTableColumn(),
  49. getStatusTableColumn({ statusModule: 'cloudaccount' }),
  50. getStatusTableColumn({ statusModule: 'cloudaccountHealthStatus', title: this.$t('cloudenv.text_93'), field: 'health_status', minWidth: 90 }),
  51. getGuestCountTableColumn(),
  52. getBalanceTableColumn(),
  53. getHostCountTableColumn(),
  54. getCopyWithContentTableColumn({ field: 'account', title: this.$t('cloudenv.text_94') }),
  55. getBrandTableColumn(),
  56. ]
  57. },
  58. },
  59. }
  60. </script>
  61. <style lang="less" scoped>
  62. .h-title{
  63. font-size: 16px;
  64. padding: 10px 0;
  65. margin-left: 21px;
  66. font-weight: normal;
  67. }
  68. .h-title em{
  69. font-style: normal;
  70. color: #1890ff;
  71. }
  72. .h-desc-bg{
  73. background: rgba(245, 245, 243, 0.4)
  74. }
  75. </style>