説明なし

callTotalStatisticsDayDetail.html 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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 time = helper.request.queryString("time");
  41. var token = $.cookie("token");
  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 + "SwitchedlossCall/GetSwitchedlossCall",
  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. width: '',
  85. },{
  86. field: '呼损次数',
  87. title: '呼损次数',
  88. align: 'center',
  89. }, {
  90. field: '呼损率',
  91. title: '呼损率',
  92. align: 'center',
  93. width: '',
  94. },
  95. {
  96. field: '接通次数',
  97. title: '接通次数',
  98. align: 'center',
  99. width: '',
  100. },
  101. {
  102. field: '接通率',
  103. title: '接通率',
  104. align: 'center',
  105. width: '',
  106. },
  107. ]
  108. ],
  109. height: 'full-150',
  110. done:function(){
  111. layer.close(loadindex);
  112. }
  113. });
  114. });
  115. }
  116. </script>
  117. </body>
  118. </html>