You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

table.js 3.7 KiB

2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. export default {
  2. ReceivingRecordsIndex: {
  3. border: true,
  4. index: false,
  5. height: 572,
  6. indexLabel: "序号",
  7. stripe: true,
  8. menuAlign: "center",
  9. menuWidth: 146,
  10. menu: true,
  11. align: "left",
  12. refreshBtn: false,
  13. searchSize: "mini",
  14. searchMenuSpan: 9,
  15. delBtn: false,
  16. addBtn: false,
  17. editBtn: false,
  18. viewBtn: false,
  19. size: "small",
  20. column: [
  21. {
  22. sortable: true,
  23. label: '接待开始时间',
  24. prop: 'createTime',
  25. overHidden: true,
  26. },
  27. {
  28. label: "顾问",
  29. prop: "agentName",
  30. },
  31. {
  32. label: "客户",
  33. prop: "name",
  34. },
  35. {
  36. label: "到访次数",
  37. prop: "visitRecord",
  38. },
  39. {
  40. sortable: true,
  41. label: "录音时长",
  42. prop: "mm",
  43. },
  44. {
  45. label: "录音类型",
  46. prop: "recording",
  47. formatter: data => {
  48. return data.recording == 0 ? "没有录音" : data.recording == 1 ? "部分录音" : '完整录音'
  49. }
  50. },
  51. {
  52. label: "标记顾问",
  53. prop: "markAdvisor",
  54. formatter: data => {
  55. return data.markAdvisor == 0 ? "未标记" : '已标记'
  56. }
  57. },
  58. {
  59. sortable: true,
  60. label: "挖掘执行率",
  61. prop: "wordFraction",
  62. formatter: data => {
  63. return (data.wordFraction||0) + '%'
  64. }
  65. },
  66. {
  67. label: "无效接待原因",
  68. prop: "invalidReason",
  69. formatter: data => {
  70. let str = ''
  71. switch (data.invalidReason) {
  72. case 1 :
  73. str = '没电指派无录音'
  74. break;
  75. case 2 :
  76. str = '离线指派无录音'
  77. break;
  78. case 3 :
  79. str = '系统测试误操作'
  80. break;
  81. case 4 :
  82. str = '非接访场景录音'
  83. break;
  84. case 5 :
  85. str = '其它'
  86. break;
  87. case 6 :
  88. str = '离线'
  89. break;
  90. case 7 :
  91. str = '无设备'
  92. break;
  93. default :
  94. break;
  95. }
  96. return str
  97. }
  98. },
  99. {
  100. label: "销讲业务",
  101. prop: "marketingBusinessName",
  102. },
  103. {
  104. sortable: true,
  105. label: "挖掘成功率",
  106. prop: "wordFinishFraction",
  107. formatter: data => {
  108. return (data.wordFinishFraction||0) + '%'
  109. }
  110. },
  111. {
  112. sortable: true,
  113. label: "执行率",
  114. prop: "fraction",
  115. formatter: data => {
  116. return `${data.fraction || 0}%`
  117. }
  118. },
  119. {
  120. sortable: true,
  121. label: "接待标识",
  122. prop: "validInvalidName",
  123. },
  124. ]
  125. }
  126. }