AdwebSite.data.ts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. import { BasicColumn } from '/src/components/Table';
  2. import dayjs from 'dayjs';
  3. import { isSohoeb2b } from '@/views/adweb/site/AdwebSite.api';
  4. //列表数据
  5. export const columns: BasicColumn[] = [
  6. {
  7. title: '站点code',
  8. align: 'left',
  9. dataIndex: 'code',
  10. width: '130px',
  11. },
  12. {
  13. title: '客户名',
  14. align: 'left',
  15. dataIndex: 'uid_dictText',
  16. width: 160,
  17. resizable: true,
  18. },
  19. {
  20. title: '租户',
  21. align: 'left',
  22. dataIndex: 'channelProviderName',
  23. resizable: true,
  24. width: 200,
  25. customRender: function ({ text }) {
  26. if (text) {
  27. return text;
  28. } else {
  29. return '--';
  30. }
  31. },
  32. },
  33. {
  34. title: '站点名称',
  35. align: 'left',
  36. dataIndex: 'name',
  37. width: 280,
  38. resizable: true,
  39. },
  40. {
  41. title: '站点域名',
  42. align: 'left',
  43. dataIndex: 'domain',
  44. width: '360px',
  45. },
  46. {
  47. title: '订阅套餐',
  48. align: 'left',
  49. dataIndex: 'subscribePlan',
  50. },
  51. {
  52. title: '当前状态',
  53. align: 'left',
  54. dataIndex: 'status_dictText',
  55. },
  56. {
  57. title: '建站状态',
  58. align: 'left',
  59. dataIndex: 'siteCurrentStep',
  60. },
  61. {
  62. title: '建站进度',
  63. align: 'left',
  64. dataIndex: 'completeProcess',
  65. },
  66. {
  67. title: '订单url',
  68. align: 'left',
  69. dataIndex: 'orderUrl',
  70. // 针对苏豪租户管理员展示订单url
  71. ifShow: isSohoeb2b({}),
  72. },
  73. {
  74. title: '创建时间',
  75. align: 'left',
  76. dataIndex: 'ctime',
  77. },
  78. {
  79. title: '预计发布时间',
  80. align: 'left',
  81. dataIndex: 'publishTime',
  82. customRender: function ({ text, record }) {
  83. return dayjs(record.ctime).add(1, 'month').format('YYYY-MM-DD');
  84. },
  85. },
  86. {
  87. title: '实际发布时间',
  88. align: 'left',
  89. dataIndex: 'issueTime',
  90. customRender: function ({ text, record }) {
  91. return !text ? '-' : text.length > 16 ? text.substr(0, 16) : text;
  92. },
  93. },
  94. {
  95. title: '到期时间',
  96. align: 'left',
  97. dataIndex: 'etime',
  98. },
  99. ];
  100. // 高级查询数据
  101. export const superQuerySchema = {
  102. uid: { title: '创建人', order: 0, view: 'sel_user', type: 'string' },
  103. code: {
  104. title: '站点code',
  105. order: 1,
  106. view: 'text',
  107. type: 'string',
  108. },
  109. name: { title: '站点名称', order: 2, view: 'text', type: 'string' },
  110. domain: { title: '站点域名', order: 3, view: 'text', type: 'string' },
  111. status: {
  112. title: '当前状态',
  113. order: 4,
  114. view: 'number',
  115. type: 'number',
  116. },
  117. etime: { title: '到期时间,默认为ctime+1年', order: 5, view: 'datetime', type: 'string' },
  118. };