AdwebSite.data.ts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. import { BasicColumn } from '/src/components/Table';
  2. import moment from 'moment';
  3. //列表数据
  4. export const columns: BasicColumn[] = [
  5. {
  6. title: '站点code',
  7. align: 'left',
  8. dataIndex: 'code',
  9. width: '130px',
  10. },
  11. {
  12. title: '客户名',
  13. align: 'left',
  14. dataIndex: 'uid_dictText',
  15. width: '160px',
  16. },
  17. {
  18. title: '渠道商',
  19. align: 'left',
  20. dataIndex: 'channelProviderName',
  21. customRender: function ({ text }) {
  22. if (text) {
  23. return text;
  24. } else {
  25. return '--';
  26. }
  27. },
  28. },
  29. {
  30. title: '站点名称',
  31. align: 'left',
  32. dataIndex: 'name',
  33. },
  34. {
  35. title: '站点域名',
  36. align: 'left',
  37. dataIndex: 'domain',
  38. width: '360px',
  39. },
  40. {
  41. title: '订阅套餐',
  42. align: 'left',
  43. dataIndex: 'subscribePlan',
  44. },
  45. {
  46. title: '当前状态',
  47. align: 'left',
  48. dataIndex: 'status_dictText',
  49. },
  50. {
  51. title: '建站状态',
  52. align: 'left',
  53. dataIndex: 'siteCurrentStep',
  54. },
  55. {
  56. title: '建站进度',
  57. align: 'left',
  58. dataIndex: 'completeProcess',
  59. },
  60. {
  61. title: '创建时间',
  62. align: 'left',
  63. dataIndex: 'ctime',
  64. },
  65. {
  66. title: '预计发布时间',
  67. align: 'left',
  68. dataIndex: 'publishTime',
  69. customRender: function ({ text, record }) {
  70. return moment(record.ctime).add(1, 'month').format('YYYY-MM-DD');
  71. },
  72. },
  73. {
  74. title: '实际发布时间',
  75. align: 'left',
  76. dataIndex: 'issueTime',
  77. customRender: function ({ text, record }) {
  78. return !text ? '-' : text.length > 16 ? text.substr(0, 16) : text;
  79. },
  80. },
  81. {
  82. title: '到期时间',
  83. align: 'left',
  84. dataIndex: 'etime',
  85. },
  86. ];
  87. // 高级查询数据
  88. export const superQuerySchema = {
  89. uid: { title: '用户ID,与用户表关联', order: 0, view: 'sel_user', type: 'string' },
  90. code: {
  91. title: '站点code,生成6位长度随机码,取值范围[a-z0-9],保证系统唯一',
  92. order: 1,
  93. view: 'text',
  94. type: 'string',
  95. },
  96. name: { title: '站点名称', order: 2, view: 'text', type: 'string' },
  97. domain: { title: '站点域名', order: 3, view: 'text', type: 'string' },
  98. status: {
  99. title: '当前状态:0:已删除;1:正常;2:未发布 3:拉取测试站点中 ;4:发布正式站点中 ;5:拉取异常',
  100. order: 4,
  101. view: 'number',
  102. type: 'number',
  103. },
  104. etime: { title: '到期时间,默认为ctime+1年', order: 5, view: 'datetime', type: 'string' },
  105. };