| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>质检结果</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link href="./css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
- <link href="./css/bootstrap.min.css" />
- <link rel="stylesheet" href="./css/boot/bootstrap-table.css" />
- <link href="./css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
- <link href="./css/animate.min.css" rel="stylesheet">
- <link href="./css/style.min862f.css?v=4.1.0" rel="stylesheet">
- <style>
- body {
- font-family: "微软雅黑";
- font-size: 14px;
- }
-
- ul li {
- list-style: none;
- float: left;
- }
-
- .fr {
- float: right;
- }
- /*标头*/
-
- .th-box {
- width: 100%;
- padding: 5px;
- border-bottom: 1px solid #e7eaec;
- }
-
- .th-bar {
- height: 40px;
- }
-
- .sc_btn {
- display: block;
- padding: 7px;
- color: #FFF;
- float: left;
- border-radius: 5px;
- }
-
- .seach-box ul {
- overflow: hidden;
- }
-
- .seach-box ul li {
- margin-right: 5px;
- }
-
- .photo {
- background-color: #FFF;
- background-image: none;
- border: 1px solid #e5e6e7;
- border-radius: 1px;
- color: inherit;
- padding: 6px 12px;
- }
-
- #Select {
- background-color: #FFF;
- background-image: none;
- border: 1px solid #e5e6e7;
- border-radius: 1px;
- color: inherit;
- padding: 6px 12px;
- }
-
- #Select:focus {
- outline: none;
- border-color: #00BFFF;
- }
-
- input:focus {
- outline: none;
- border-color: #00BFFF;
- }
-
- .spiner-example {
- position: absolute;
- top: 50%;
- left: 50%;
- z-index: 111;
- margin-left: -85px;
- margin-top: -100px;
- display: none;
- }
-
- .sk-spinner-three-bounce {
- width: 170px!important;
- }
-
- .sk-spinner p {
- display: inline-block;
- font-size: 18px;
- margin-left: 10px;
- }
-
- #goods tr th {
- text-align: center;
- }
-
- #goods td {
- text-align: center;
- }
-
- .t-shade {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background: rgba(0, 0, 0, 0.48);
- z-index: 10004;
- display: none;
- }
-
- .shade_k {
- z-index: 10005;
- width: 50%;
- margin: 5% auto;
- background-color: #fff;
- box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
- border: 1px solid #23c6c8;
- }
-
- .shade_title {
- padding: 0 80px 0 20px;
- height: 42px;
- line-height: 42px;
- border-bottom: 1px solid #eee;
- font-size: 16px;
- color: #FFFFFF;
- overflow: hidden;
- background-color: #23c6c8;
- border-radius: 2px 2px 0 0;
- position: relative;
- }
-
- .setwin {
- position: absolute;
- right: 15px;
- top: 5px;
- font-size: 20px;
- line-height: initial;
- }
-
- .shade_content {
- height: 500px;
- position: relative;
- padding-bottom: 50px;
- overflow-x: hidden;
- }
-
- .sa_title {
- padding-left: 20px;
- height: 35px;
- line-height: 35px;
- border-bottom: 1px solid #D7D7D7;
- }
-
- .wh_btn {
- width: 80%;
- text-align: center;
- padding-top: 20px;
- margin: 0 auto;
- margin-bottom: 20px;
- }
-
- .wh_btn input {
- padding: 7px 20px;
- color: #FFF;
- border-radius: 5px;
- margin-right: 30px;
- border: 1px solid #999;
- }
-
- .inps {
- width: 167px;
- height: 24px;
- outline: none;
- border: 0;
- border-image-width: 0;
- padding: 0;
- padding-left: 3px;
- }
-
- .inpBox {
- border: 1px solid #e5e6e7;
- height: 27px;
- width: 170px;
- display: inline-block;
- position: relative;
- vertical-align: middle;
- }
-
- .inpBox select {
- width: 100%;
- outline: none;
- border: 0;
- background: transparent;
- padding: 1px;
- }
-
- .cx {
- display: block!important;
- }
- /**/
-
- .form_table {
- width: 100%;
- border: 1px solid #EDECFF;
- }
-
- .form_table td {
- padding: 6px 0 5px 10px;
- text-align: left;
- color: #717171;
- line-height: 200%;
- border-top: 1px dotted #cccccc;
- }
-
- .form_table th {
- padding: 5px 8px 5px 0;
- color: #333;
- font-weight: 700;
- text-align: right;
- background: #f9f9f9;
- border-right: 1px dotted #cccccc;
- border-top: 1px dotted #cccccc;
- }
-
- .play {
- height: 50px;
- width: 100%;
- }
-
- #downlond {
- padding: 0 8px;
- height: 24px;
- line-height: 24px;
- color: #707070;
- border: 1px solid #D7D7D7;
- cursor: pointer;
- vertical-align: middle;
- }
-
- .txtInput {
- margin-right: 5px;
- padding: 0 3px 0 3px;
- height: 22px;
- line-height: 22px;
- background: #FAFAFA;
- border: 1px solid #D7D7D7;
- vertical-align: middle;
- font-size: 12px;
- width: 50px;
- color: blue;
- }
-
- .btnSubmit {
- padding: 0 10px;
- height: 28px;
- line-height: 28px;
- color: #3D80B3;
- font-weight: bold;
- border: 1px solid #AED0EA;
- cursor: pointer;
- vertical-align: middle;
- overflow: hidden;
- }
-
- .foot_btn_box {
- padding: 15px 20px;
- text-align: center;
- }
- .xqlb{
- display: none;
- }
- .gjss{
- display: none;
- }
- </style>
- </head>
- <script src="./js/jquery.min.js"></script>
- <script src="./js/bootstrap.min.js"></script>
- <script src="./js/bootstrap-table.js"></script>
- <script src="./js/bootstrap-table-zh-CN.js"></script>
- <script src="./css/layer/layer.js"></script>
- <script src="My97DatePicker/WdatePicker.js"></script>
- <!--<script src="Script/Common/huayi.load.js"></script>
- <script src="Script/Common/huayi.config.js"></script>-->
-
- <body class="gray-bg">
- <div class="wrapper wrapper-content animated fadeInRight">
- <div class="th-box">
- <div class="th-bar">
- <!--<a class="sc_btn btn-info">批量删除</a>-->
- <div class="seach-box fr">
- <ul>
- <li>电话号码:<input class="photo x-color" type="text" /></li>
- <li>坐席:
- <select name="" id="Select" class="x-color">
- <option value="">全部</option>
-
- </select>
- </li>
- <li>
- <a class="sc_btn btn-info Ss">搜索</a>
- </li>
- <li>
- <a class="sc_btn btn-info Gj">高级搜索</a>
- </li>
- </ul>
- </div>
- </div>
- </div>
- <div style="width: 100%;padding: 10px;">
- <table id="goods" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
- <thead>
- <tr>
- <th data-field="_callnumber">电话号码</th>
- <th data-field="_filepath" data-formatter="setCode">录音质检</th>
- <th data-field="_f_qcstate" data-formatter="quality">是否质检</th>
- <th data-field="_f_qcscore">质检得分</th>
- <th data-field="_calltype" data-formatter="call">呼叫方向</th>
- <th data-field="_callstate" data-formatter="states">呼叫状态</th>
- <th data-field="_usercode">坐席工号</th>
- <th data-field="_username">坐席姓名</th>
- <th data-field="_talkstarttime">通话开始时间</th>
- <th data-field="_talkendtime">通话结束时间</th>
- <th data-field="_talklongtime">通话时长(S)</th>
- <th data-field="_businesstype">按键</th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
- <!--高级搜索/-->
- <div class="t-shade">
- <div class=" shade_k gjss">
- <div class="shade_title">
- <span>高级搜索<srong class="cknum"></srong></span>
- <span class="setwin"><a>x</a></span>
- </div>
- <div class="shade_content" style="height: 300px;">
- <div class="dhxx sa_title">
- <span class="size-14">搜索信息</span>
- </div>
- <div class="dgxx_table size-13">
- <table class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%;">
- <tr>
- <th>电话号码:
- <td>
- <div class="inpBox">
- <input type="text" class="inps " id="phone" />
- </div>
- </td>
- </th>
- <th>坐席:
- <td>
- <div class="inpBox">
- <select name="" id="usercode"></select>
- </div>
- </td>
- </th>
- </tr>
- <tr>
- <th>呼叫方向:
- <td>
- <div class="inpBox">
- <select name="" id="calltype"></select>
- </div>
- </td>
- </th>
- <th>开始时间:
- <td>
- <div class="inpBox">
- <input type="text" class="inps " onfocus="WdatePicker({lang:'zh-cn'})" id="starttime" />
- </div>
- </td>
- </th>
- </tr>
- <tr>
- <th>结束时间:
- <td>
- <div class="inpBox">
- <input type="text" class="inps " onfocus="WdatePicker({lang:'zh-cn'})" id="endtime" />
- </div>
- </td>
- </th>
- </tr>
- </table>
- </div>
- <div class="clearfix wh_btn">
- <input type="button" value="搜索" class=" btn-info Seach" />
- </div>
- </div>
- </div>
- <!--详情列表-->
- <div class=" shade_k xqlb">
- <div class="shade_title">
- <span>录音播放下载及质检<srong class="cknum"></srong></span>
- <span class="setwin"><a>x</a></span>
- </div>
- <div class="shade_content">
- <div class="dgxx_table size-13">
- <table cellspacing="" cellpadding="" class="form_table">
- <tbody>
- <tr>
- <th><span >电话号码:</span></th>
- <td><span class="zj_phone"></span></td>
- <th><span>通话时间:</span></th>
- <td><span class="zj_time">2017/5/3 16:50:05</span></td>
- </tr>
- <tr>
- <th><span>呼叫方向:</span></th>
- <td><span class="zj_calltype">呼出</span></td>
- <th><span>通话时长:</span></th>
- <td><span class="zj_talklongtime"> 278秒</span></td>
- </tr>
- <tr>
- <th><span>坐席工号:</span></th>
- <td><span class="zj_usercode">902</span></td>
- <th><span>坐席姓名:</span></th>
- <td><span class="zj_username">6+541+</span></td>
- </tr>
- <tr>
- <th><span>听取录音:</span></th>
- <td colspan="3">
- <div class="play">
- </div>
- </td>
- </tr>
- <tr>
- <th><span>下载录音:</span></th>
- <td colspan="3">
- <input type="button" value="下载" id="downlond" />
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!--质检详情列表-->
- <div class="divDataItems">
- <table class="table table-bordered text-center table-hover" style="width: 100%;">
- <thead>
- <tr class="thead_title">
- <td colspan="2" style="background-color: #D5EDFE;">分类</td>
- <td style="background-color: #D5EDFE;">指标</td>
- <td style="background-color: #D5EDFE;">分值</td>
- <td style="background-color: #D5EDFE;">评分</td>
- </tr>
- </thead>
- <tbody id="tbody">
- </tbody>
- <tfoot id="tfoot">
-
- </tfoot>
- </table>
- </div>
- </div>
- </div>
- </div>
- <script>
- var zjID;
- var seatlist = [];//坐席列表
- $(function() {
- Finishs();
-
- //获取坐席
- // $.getJSON(huayi.config.callcenter_url + "UserAccount/GetSeatList", { token: $.cookie("token") }, function (result) {
- // if (result.state.toLowerCase() == "success") {
- // seatlist = result.data;
- // bindseat($("#Select"));
- // bindseat($("#usercode"));
- // }
- // });
- //高级搜索s
- $(".Gj").click(function() {
- $(".t-shade").addClass("cx");
- $(".gjss").addClass("cx");
- $(".xqlb").removeClass("cx");
- });
- //关闭弹框
- $(".setwin").click(function() {
- $(".t-shade").removeClass("cx");
- });
- //搜索 验证
- $(".Seach").click(function() {
- var phone = $('#phone').val();
- var usercode = $('#usercode').val();
- var calltype = $('#calltype').val();
- var starttime = $('#starttime').val();
- var endtime = $('#endtime').val();
- if(phone == '' || usercode == '' || calltype == '' || starttime == '' || endtime == '') {
- alert("5646");
- } else {
- Finish();
- }
- });
- });
- /*获取选中行对象*/
- $('#goods').on("click-row.bs.table", function(e, row, ele) {
- $('.success').removeClass('success'); //去除之前选中的行的,选中样式
- $(ele).addClass('success'); //添加当前选中的 success样式用于区别
- console.log(row._callrecordsid);
- $(".t-shade").addClass("cx");
- $(".zj_phone").text(row._callnumber);
- $(".zj_time").text(row._talkstarttime);
- $(".zj_calltype").text("呼入");
- $(".zj_talklongtime").text(row._talklongtime);
- $(".zj_usercode").text(row._usercode);
- $(".zj_username").text(row._username);
- var zjID=row._callrecordsid;
- Xq(zjID);
- });
- /*录音质检*/
- function setCode(val,row) {
- if(val == "") {
- return '<div class="imgs">' +
- '</div>';
- } else {
- return '<div class="imgs">' +
- '<img src="./img/vice.png" alt="" onclick= ck("' + val + '") />' +
- '</div>';
- }
- }
- //质检
- function quality(val) {
- if(val == 0) {
- return '<div class="imgs">未质检' +
- '</div>';
- } else {
- return '<div class="imgs">已质检' +
- '</div>';
- }
- }
- //方向呼出
- function call(val) {
- if(val == 0) {
- return '<div class="imgs">呼入' +
- '</div>';
- } else {
- return '<div class="imgs">呼出' +
- '</div>';
- }
- }
- //状态
- function states(val) {
- if(val == 0) {
- return '<div class="imgs">未接通' +
- '</div>';
- } else {
- return '<div class="imgs">已接通' +
- '</div>';
- }
- }
- function ck(val,row) {
- $(".t-shade").addClass("cx");
- $(".gjss").removeClass("cx");
- $(".xqlb").addClass("cx");
- }
-
- //搜索
- $(".Ss").click(function() {
- Finishs();
- });
-
- function Xq(zjID){
- $.ajax({
- type: "get",
- // url: huayi.config.callcenter_url + "/Mobiledata/EditMobiledata",
- url: "zjxq.json",
- dataType: 'json',
- async: true,
- // data:{
- // id:zjID///通话ID
- // },
- success: function(data) {
- var content = data.data;
- console.log(content);
- // for(var i=0;i<content.length;i++){
- console.log(content.Rowspan);
- $('<tr>' +
- '<td colspan="3">' + content.Qcname + '</td>' +
- '<td >' + content.Qcscore + '</td>' +
- '<td >' + content.Qcpf + '</td>' +
- '</tr>').appendTo("#tfoot");
- var twoCon = content.Qclist;
- if(twoCon !== null) {
- for(var j = 0; j < twoCon.length; j++) {
- var t=parseInt(twoCon[j].Rowspan);
- var o=1;
- var l=parseInt(twoCon.length);
- var c=t+o+l;
- $('<tr>' +
- '<td rowspan="'+ c +'">' + twoCon[j].Qcname + '</td>' +
- '</tr>').appendTo("#tbody");
- var stree = twoCon[j].Qclist;
- console.log(stree);
- if(stree !== null) {
- for(var k = 0; k < stree.length; k++) {
- var t=parseInt(stree[k].Rowspan);
- var o=1;
- var c=t+o;
- $('<tr>' +
- '<td rowspan="' + c + '">' + stree[k].Qcname + '</td>' +
- '</tr>').appendTo("#tbody");
- var foure = stree[k].Qclist;
-
- if(foure !== null) {
-
- for(var i = 0; i < foure.length; i++) {
- var t=parseInt(foure[i].Rowspan);
- var o=1;
- var c=t+o;
- $('<tr>' +
- '<td rowspan="' + c + '">' + foure[i].Qcname + '</td>' +
- '<td >' + foure[i].Qcscore + '</td>' +
- '<td ><input type="text" class="txtInput"/></td>' +
- '</tr>').appendTo("#tbody");
- }
- }
- }
- }
- }
- }
- }
- });
- }
- function Finishs() {
- //销毁表格
- $('#goods').bootstrapTable('destroy');
- //初始化表格,动态从服务器加载数据
- $("#goods").bootstrapTable({
- method: "get", //使用get请求到服务器获取数据
- // url: "http://192.168.1.88:9025/QCManage/GetYZJList", //获取数据的Servlet地址
- url: "zj.json",
- // url: huayi.config.callcenter_url+"QCManage/GetYZJList", //获取数据的Servlet地址
- striped: true, //表格显示条纹
- pagination: true, //启动分页
- pageSize: 5, //每页显示的记录数
- pageNumber: 1, //当前第几页
- pageList: [5, 20, 50, 100], //记录数可选列表
- search: false, //是否启用查询
- showColumns: false, //显示下拉框勾选要显示的列
- showRefresh: false, //显示刷新按钮
- sidePagination: "server", //表示服务端请求
- //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
- //设置为limit可以获取limit, offset, search, sort, order
- queryParamsType: "undefined",
- queryParams: function queryParams(params) { //设置查询参数
- var param = {
- page: params.pageNumber,
- pagesize: params.pageSize,
- phone: $('#phone').val(),
- usercode: $('#usercode').val(),
- calltype: $('#calltype').val(),
- starttime: $('#starttime').val(),
- endtime: $('#endtime').val(),
- optid: 8000
- };
- return param;
- },
- onLoadSuccess: function() { //加载成功时执行
- // layer.msg("加载成功");
- },
- onLoadError: function() { //加载失败时执行
- //layer.msg("加载数据失败", { time: 1500, icon: 2 });
- }
- });
- }
- //坐席列表
- function bindseat(obj) {
- obj.empty();
- obj.append('<option value="">全部</option>');
- $(seatlist).each(function (i,n) {
- obj.append('<option value="' + n.F_UserCode + '">' + n.F_UserName + '</option>');
- })
- }
- </script>
- </body>
- </html>
|