author-constants.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // 表格列信息
  2. const table = {
  3. columns: [
  4. {
  5. title: 'finderUin',
  6. align: 'center',
  7. dataIndex: 'finderUin',
  8. scopedSlots: { customRender: 'summary' }
  9. },
  10. {
  11. title: '来源渠道',
  12. align: 'center',
  13. dataIndex: 'fromChannelName'
  14. },
  15. {
  16. title: '是否有账外账号',
  17. align: 'center',
  18. dataIndex: 'outSideAccountFlag',
  19. scopedSlots: { customRender: 'status' }
  20. },
  21. {
  22. title: '作者等级',
  23. align: 'center',
  24. dataIndex: 'level'
  25. },
  26. {
  27. title: '作者微信号',
  28. align: 'center',
  29. dataIndex: 'weChatAccount'
  30. },
  31. {
  32. title: '视频账号',
  33. align: 'center',
  34. dataIndex: 'videoAccount'
  35. },
  36. {
  37. title: '作者分类',
  38. align: 'center',
  39. dataIndex: 'categoryName'
  40. },
  41. {
  42. title: '拟定认证信息',
  43. align: 'center',
  44. dataIndex: 'authInfo'
  45. },
  46. {
  47. title: '是否本地作者',
  48. align: 'center',
  49. dataIndex: 'isLocal',
  50. scopedSlots: { customRender: 'status' }
  51. },
  52. {
  53. title: '是否下发流量',
  54. align: 'center',
  55. dataIndex: 'isSend',
  56. scopedSlots: { customRender: 'status' }
  57. },
  58. {
  59. title: '影响力描述',
  60. dataIndex: 'prove',
  61. align: 'center',
  62. scopedSlots: { customRender: 'summary' }
  63. },
  64. {
  65. title: '操作',
  66. dataIndex: 'action',
  67. align: 'center',
  68. fixed: 'right',
  69. width: '250px',
  70. scopedSlots: { customRender: 'action' }
  71. }
  72. ]
  73. }
  74. // 表格里面的列key value
  75. const filters = {
  76. statusFilter (status) {
  77. const statusMap = {
  78. 1: '是',
  79. 2: '否'
  80. }
  81. return statusMap[status]
  82. },
  83. statusTypeFilter (status) {
  84. const statusMap = {
  85. 1: 'error',
  86. 2: 'success'
  87. }
  88. return statusMap[status]
  89. }
  90. }
  91. export { table, filters }