Bez popisu

dailyCallDurationDetail.html 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>日通话时长统计</title>
  7. <!--[if lt IE 9]>
  8. <meta http-equiv="refresh" content="0;ie.html" />
  9. <![endif]-->
  10. <link rel="stylesheet" href="js/select2/css/select2.min.css" />
  11. <script src="../Script/Common/huayi.load.js"></script>
  12. <script src="../Script/Common/huayi.config.js"></script>
  13. <link rel="stylesheet" href="../js/layui-v2.5.5/layui/css/layui.css" />
  14. <link rel="stylesheet" href="../css/init.css" />
  15. <style>
  16. .zxt-top {
  17. background: #f3f3f4;
  18. height: 60px;
  19. padding: 10px 20px;
  20. }
  21. .topCon {
  22. float: right;
  23. margin-right: 45px;
  24. }
  25. .zxt-content {
  26. width: 95%;
  27. margin: 0 auto;
  28. }
  29. </style>
  30. </head>
  31. <body class="gray-bg" style="background: #fefefe;">
  32. <div class="zxtable">
  33. <div class="zxt-content">
  34. <table class="layui-hide" id="t_callTotal" lay-filter="layuitableTotal"></table>
  35. </div>
  36. </div>
  37. <script src="../js/layui-v2.5.5/layui/layui.js"></script>
  38. <script src="../js/select2/js/select2.min.js"></script>
  39. <script>
  40. var token = $.cookie("token");
  41. var time = helper.request.queryString("time");
  42. $(function() {
  43. getTableDataList(); //获取表格数据
  44. })
  45. //修改时间格式
  46. function formatTime() {
  47. var year = time.substring(0, 4);
  48. var month = time.substring(4, 6);
  49. var day = time.substring(6, 8);
  50. var getDate = year + '-' + month + '-' + day;
  51. return getDate;
  52. }
  53. //加载表格
  54. function getTableDataList() {
  55. var loadindex = layer.load();
  56. layui.use('table', function() {
  57. var table = layui.table;
  58. //方法级渲染
  59. table.render({
  60. elem: '#t_callTotal',
  61. url: huayi.config.callcenter_url + "DaysTalkTime/GetDaysTalkCall",
  62. method: 'get', //如果无需自定义HTTP类型,可不加该参数
  63. skin: 'row', //line (行边框风格) row (列边框风格) nob (无边框风格)
  64. even: true, //开启隔行背景
  65. size: 'lg', //sm,lg尺寸的表格
  66. where: {
  67. token: token,
  68. stime: formatTime(),
  69. endtime: formatTime(),
  70. }, //如果无需传递额外参数,可不加该参数
  71. //request: {}, //如果无需自定义请求参数,可不加该参数
  72. response: {
  73. statusName: 'state', //数据状态的字段名称,默认:code
  74. statusCode: 'success', //成功的状态码,默认:0
  75. msgName: 'message', //状态信息的字段名称,默认:msg
  76. //countName: 'total', //数据总数的字段名称,默认:count
  77. //dataName: 'rows', //数据列表的字段名称,默认:data
  78. }, //如果无需自定义数据响应名称,可不加该参数
  79. cols: [
  80. [{
  81. field: '坐席',
  82. title: '坐席',
  83. align: 'center',
  84. }, {
  85. field: '呼入次数',
  86. title: '呼入次数',
  87. align: 'center',
  88. width: '',
  89. },
  90. {
  91. field: '呼入时长',
  92. title: '呼入时长',
  93. align: 'center',
  94. width: '',
  95. },
  96. {
  97. field: '呼出次数',
  98. title: '呼出次数',
  99. align: 'center',
  100. width: '',
  101. },
  102. {
  103. field: '呼出时长',
  104. title: '呼出时长',
  105. align: 'center',
  106. width: '',
  107. },
  108. {
  109. field: '呼出未接通次数',
  110. title: '呼出未接通次数',
  111. align: 'center',
  112. width: '',
  113. },
  114. {
  115. field: '振铃时长',
  116. title: '振铃时长',
  117. align: 'center',
  118. width: '',
  119. },
  120. {
  121. field: '通话总时长',
  122. title: '通话总时长',
  123. align: 'center',
  124. templet: '<div><span class="color_73926">{{d.通话总时长}}</span></div>',
  125. width: '',
  126. },
  127. {
  128. field: '平均通话总时长',
  129. title: '平均通话总时长',
  130. align: 'center',
  131. templet: '<div><span class="color_73926">{{d.平均通话总时长}}</span></div>',
  132. width: '',
  133. },
  134. ]
  135. ],
  136. height: 'full-150',
  137. done:function(){
  138. layer.close(loadindex);
  139. }
  140. });
  141. });
  142. }
  143. </script>
  144. </body>
  145. </html>