daysTableConfig.tsx 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import { QuestionCircleOutlined } from "@ant-design/icons"
  2. import { Tooltip } from "antd"
  3. import React from "react"
  4. export const daysColumns = () => {
  5. return [
  6. {
  7. title: '日志ID',
  8. dataIndex: 'id',
  9. key: 'id',
  10. align: 'center'
  11. },
  12. {
  13. title: '公众号',
  14. dataIndex: 'mpInfo',
  15. key: 'mpInfo',
  16. align: 'center',
  17. width: 200,
  18. render: (a: number[], b: any) => {
  19. return <div style={{ display: 'flex', alignItems: 'center' }}>
  20. <img src={b?.mpInfo?.headImg || localStorage.bookImg} style={{width: '25px', height: '25px', marginRight: '10px'}}/>
  21. <span>{b?.mpInfo?.nickName}</span>
  22. </div>
  23. }
  24. },
  25. {
  26. title: '客服消息任务ID',
  27. dataIndex: 'kefuMsgStrategyId',
  28. key: 'kefuMsgStrategyId',
  29. align: 'center'
  30. },
  31. {
  32. title: '公众号ID',
  33. dataIndex: 'mpId',
  34. key: 'mpId',
  35. align: 'center'
  36. },
  37. {
  38. title: <span>预计发送人数<Tooltip title="发送时间 48小时内互动过(关注、点击菜单、发消息)的粉丝">
  39. <QuestionCircleOutlined style={{ color: 'red', marginLeft: 2, }} />
  40. </Tooltip></span>,
  41. dataIndex: 'estimateSendCount',
  42. key: 'estimateSendCount',
  43. align: 'center'
  44. },
  45. {
  46. title: <span>实际发送人数<Tooltip title="实际收到了消息的人数">
  47. <QuestionCircleOutlined style={{ color: 'red', marginLeft: 2, }} />
  48. </Tooltip></span>,
  49. dataIndex: 'actualSendCount',
  50. key: 'actualSendCount',
  51. align: 'center'
  52. },
  53. {
  54. title: '任务执行时间',
  55. dataIndex: 'createTime',
  56. key: 'createTime',
  57. align: 'center'
  58. }
  59. ]
  60. }