| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>坐席接听满意度统计</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
- <link href="../css/reportCommon/Search.css" rel="stylesheet">
- <link href="../css/reportCommon/common.css" rel="stylesheet">
- <link href="../css/WorkOrder/Search.css" rel="stylesheet">
- <link rel="stylesheet" href="../css/bootstrap-select.css" />
- <link href="../css/init.css" rel="stylesheet" />
- <script src="../css/laydate/laydate.js"></script>
- <script src="../js/bootstrap-select.js"></script>
- <script src="../My97DatePicker/WdatePicker.js"></script>
- <style>
- .seach-box ul {
- overflow: inherit;
- }
- </style>
- </head>
- <body class="gray-bg">
- <div class="wrapper wrapper-content animated fadeInRight">
- <div class="daoHang clearfix">
- <div class="dhLeft">
- <sapn>
- <i class="syIcon"></i>位置:
- <a href="javaScript:;" id="ReIndex">首页</a>>
- <a href="javaScript:;">报表管理</a>>
- <a href="" class="nowPosition">坐席接听满意度统计</a>
- </sapn>
- </div>
- <div class="dhRight">
- <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
- </div>
- </div>
- <div class="Content_box">
- <!--待处理/-->
- <div class="complain Shows">
- <div class="th-box">
- <div class="th-bar">
- <div class="seach-box">
- <ul>
- <li>
- 创建时间:
- <input class="photo x-color inputs laydate-icon" type="text" id="startTimes" autocomplete="off" />-
- <input class="photo x-color inputs laydate-icon" type="text" id="endTimes" autocomplete="off" />
- </li>
-
- <li style="width: 300px;">
- <div style="width: 100px">选择坐席:</div>
- <select id="userGroup" name="select" class="selectpicker show-tick form-control" com style="width: 150px;" data-live-search="true">
- <option value="">请选择坐席</option>
- </select>
- </li>
- <li style="width: 300px;">
- <div style="width: 100px">选择坐席:</div>
- <select id="ZX" name="select" class="selectpicker show-tick form-control" com style="width: 150px;" data-live-search="true">
- <option value="">请选择坐席</option>
- </select>
- </li>
- <li>
- <a class="sc_btn btns db" style="padding: 7px 10px;">搜索</a>
- <a class="sc_btn btns export">导出</a>
- </li>
- <li><span class="text-danger"
- style="padding-left: 10px;line-height: 30px;">默认显示当前月的信息</span></li>
- </ul>
- </div>
- </div>
- </div>
- <div style="width: 100%;padding: 10px;">
- <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams"
- data-pagination="true">
- <thead>
- <tr>
- <th data-field="" data-formatter="serialNumber" data-align="center">序号</th>
- <th data-field="username" data-align="center">坐席姓名</th>
- <th data-field="count" data-align="center">接听量</th>
- <th data-field="satisfiedcount" data-align="center">满意量</th>
- <th data-field="normalcount" data-align="center">一般量</th>
- <th data-field="notsatisfiedcount" data-align="center">不满意总量</th>
- <th data-field="satisfiedrate" data-align="center">满意度</th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
- </div>
- </div>
- <script src="../js/reportCommon/common.js"></script>
- <script>
-
- $(document).ready(function () {
- laydate.skin('blue');
- laydate({
- elem: '#startTimes',
- event: 'focus',
- istime: true,
- format: 'YYYY-MM-DD hh:mm:ss'
- });
- laydate({
- elem: '#endTimes',
- event: 'focus',
- istime: true,
- format: 'YYYY-MM-DD hh:mm:ss'
- });
- ZX($("#ZX"));
- // userGroup($("#userGroup"));
-
- initTable();
- })
- function initTable() {
- $.ajax({
- url: huayi.config.callcenter_url + 'TalkTime/GetUserSatisfied',
- type: 'get',
- data: {
- start: $("#startTimes").val(),
- end: $("#endTimes").val(),
- usercode: $("#ZX").val(),
- token: $.cookie("token")
- },
- dataType: "json",
- async: true,
- success: function (returnValue) {
- //异步获取数据
- var resultData1 = returnValue.data.UserSatisfiedReport;
- $('#workorderlist').bootstrapTable('load', resultData1);
- }
- });
- $('#workorderlist').bootstrapTable('destroy').bootstrapTable({
- striped: true
- });
- }
- //序号
- function serialNumber(val, row, index) {
- return index + 1;
- }
- //代办搜索
- $(".db").click(function () {
- initTable();
- })
- //导出
- $('.export').click(function () {
- dcexcel(this);
- })
- function dcexcel(obj) {
- var url = huayi.config.callcenter_url + "TalkTime/GetUserSatisfied?token=" + $.cookie("token");
- url += "&start=" + $("#startTimes").val() + "&end=" + $("#endTimes").val() + "&isExport=true";
- obj.href = url;
- }
- </script>
- </body>
- </html>
|