putFeed-constants.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. const table = {
  2. columns: [
  3. {
  4. title: 'feed id',
  5. align: 'center',
  6. dataIndex: 'feedId'
  7. },
  8. {
  9. title: 'finderUin',
  10. align: 'center',
  11. dataIndex: 'finderUin'
  12. },
  13. {
  14. title: '视频',
  15. align: 'center',
  16. dataIndex: 'link',
  17. scopedSlots: { customRender: 'video' }
  18. },
  19. {
  20. title: '文案',
  21. align: 'center',
  22. dataIndex: 'desc',
  23. scopedSlots: { customRender: 'summary' }
  24. },
  25. {
  26. title: '开始时间',
  27. align: 'center',
  28. dataIndex: 'sendTime',
  29. scopedSlots: { customRender: 'createTime' }
  30. },
  31. {
  32. title: '状态',
  33. align: 'center',
  34. dataIndex: 'status'
  35. },
  36. {
  37. title: '曝光',
  38. align: 'center',
  39. dataIndex: 'exposureCount'
  40. },
  41. {
  42. title: '点赞',
  43. align: 'center',
  44. dataIndex: 'likeCount'
  45. },
  46. {
  47. title: '点赞率',
  48. align: 'center',
  49. dataIndex: 'likeCount'
  50. },
  51. {
  52. title: '关注率',
  53. align: 'center',
  54. dataIndex: 'likeCount'
  55. },
  56. {
  57. title: '完播率',
  58. align: 'center',
  59. dataIndex: 'playCount'
  60. },
  61. {
  62. title: '投放等级',
  63. align: 'center',
  64. dataIndex: 'putLevel'
  65. },
  66. {
  67. title: '投放量级',
  68. align: 'center',
  69. dataIndex: 'putCountLevel'
  70. },
  71. {
  72. title: '流量标签',
  73. align: 'center',
  74. dataIndex: 'putTag'
  75. },
  76. {
  77. title: '性别',
  78. align: 'center',
  79. dataIndex: 'putGender'
  80. },
  81. {
  82. title: '城市',
  83. align: 'center',
  84. dataIndex: 'putTag'
  85. },
  86. {
  87. title: '年龄',
  88. align: 'center',
  89. dataIndex: 'putAge'
  90. },
  91. {
  92. title: '申请人',
  93. align: 'center',
  94. dataIndex: 'putUser'
  95. }
  96. ]
  97. }
  98. // 表格里面的列key value
  99. const filters = {
  100. statusFilter (status) {
  101. const statusMap = {
  102. 0: '未投放',
  103. 1: '投放中'
  104. }
  105. return statusMap[status]
  106. },
  107. statusTypeFilter (status) {
  108. const statusMap = {
  109. 0: 'error',
  110. 1: 'success',
  111. 2: 'success'
  112. }
  113. return statusMap[status]
  114. }
  115. }
  116. export { table, filters }