putFeed-constants.js 2.2 KB

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