| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341 |
- <!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 href="../css/Table/table1.css" rel="stylesheet" />
- <link href="../css/init.css" rel="stylesheet" />
- <!-- 录屏 -->
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/rrweb@latest/dist/rrweb.min.css"/>
- <!-- 回放播放器 -->
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/rrweb-player@latest/dist/style.css"/>
- <!-- 录屏-->
- <script src="https://cdn.jsdelivr.net/npm/rrweb@latest/dist/record/rrweb-record.min.js"></script>
- <script src="https://cdn.jsdelivr.net/npm/rrweb@latest/dist/rrweb.min.js"></script>
- <!-- 回放播放器 -->
- <script src="https://cdn.jsdelivr.net/npm/rrweb-player@latest/dist/index.js"></script>
- <!--<script src="../callScreen/cutVideo.js" type="text/javascript"></script>-->
- <style type="text/css">
- #replayers{
- text-align: center;
- /* color: #EEEEEE; */
- }
- .rr-player.svelte-1wetjm2{
- margin: 0px auto;
- float: none;
- /* box-shadow: 0 24px 48px #000000; */
- }
-
- .shade_k{
- margin: 2% auto;
- overflow-y: scroll;
- width: 65%;
- min-width: 1040px;
- height: 750px;
- }
- </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 id="ReIndex">首页</a>>
- <a href="javaScript:;">外呼管理</a>>
- <a href="" style="color: #000;">我的任务结果</a>
- </sapn>
- </div>
- </div>
- <div class="th-box">
- <div class="th-bar">
- <div class="seach-box ">
- <ul>
- <li style="position: relative;">
- 调查时间:
- <i class="tub fa fa-calendar"></i>
- <input type="text" id="s_time" class="photo laydate-icon" placeholder="请选择调查时间" />
- </li>
- <li>呼叫结果:
- <select name="" class="photo" id="hjjgid"></select>
- </li>
- <li>电话号码:<input class="photo x-color" type="text" id="key" placeholder="请输入电话号码" /></li>
- <!--<li>用户反馈:
- <select name="" class="photo" id="yhfkid"></select>
- </li>-->
- <li>
- <a class="sc_btn Block" id="sc_btns">搜索</a>
- </li>
- </ul>
- </div>
- </div>
- </div>
- <div style="width: 100%;padding: 10px;">
- <table id="list" data-click-to-select="true" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
- <thead>
- <tr>
- <th data-formatter="formatterOperation" data-align="center">操作</th>
- <!--<th data-field="state" data-checkbox="true"></th>-->
- <th data-field="F_Phone" data-align="center" data-formatter="Code">电话号码</th>
- <!--<th data-field="nid" data-formatter="setCode">录音</th>-->
- <th data-field="F_CusName" data-align="center">姓名</th>
- <!--<th data-field="ExpandVchField4" data-align="center">乡镇或单位</th>-->
- <th data-field="ExpandVchField3" data-align="center">地址</th>
- <th data-field="F_UserName" data-align="center">分配坐席</th>
- <th data-field="F_HJJGName" data-align="center">呼叫结果</th>
- <th data-field="ExpandDatField1" data-align="center">调查时间</th>
- <!--<th data-field="F_YHFKName" data-align="center">用户反馈</th>-->
- </tr>
- </thead>
- <tbody id="tbody"></tbody>
- </table>
- </div>
- <!--下载框-->
- <div class="t-shade">
- <div class="shade_k">
- <div class="shade_title">
- <span>录屏播放<srong class="cknum"></srong></span>
- <span class="setwin"><a>x</a></span>
- </div>
- <div class="shade_content">
- <div class="Ly_box audiojs">
- </div>
- <div class="boxCon LY_box">
-
- </div>
- <div id="replayers"></div>
- </div>
- </div>
- </div>
- <!--//下载框结束-->
- </div>
- <script src="../js/laydate/laydate.js"></script>
- <script>
- $(document).ready(function() {
- laydate.render({
- elem: '#s_time',
- range: '~',
- theme: '#1ab394',
- calendar: true,
- });
- initTable();
- GetHJJG(); //呼叫结果下拉
- //GetYHFK();//用户反馈
- $("#sc_btns").click(function() {
- initTable();
- });
- //回车搜索
- // $('#sc_btns').on('keypress',function(e){
- // if(e.keyCode==13){
- // initTable();
- // }
- // })
- })
- function initTable() {
- //先销毁表格
- $('#list').bootstrapTable('destroy');
- //初始化表格,动态从服务器加载数据
- $("#list").bootstrapTable({
- method: "get", //使用get请求到服务器获取数据
- url: huayi.config.callcenter_url + "CallOutPlan/GetMyResultList", //获取数据的Servlet地址
- contentType: 'application/x-www-form-urlencoded',
- striped: true, //表格显示条纹
- pagination: true, //启动分页
- pageSize: 10, //每页显示的记录数
- pageNumber: 1, //当前第几页
- pageList: [10, 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 = {
- pageindex: params.pageNumber,
- pagesize: params.pageSize,
- sdate: $('#s_time').val() && $('#s_time').val().split(' ~ ')[0],
- edate: $('#s_time').val() && $('#s_time').val().split(' ~ ')[1],
- key: $("#key").val(),
- hjjgid: $("#hjjgid").val(), //呼叫结果ID
- //yhfkid:$("#yhfkid").val(), //用户反馈ID
- token: $.cookie("token")
- };
- return param;
- },
- onLoadSuccess: function() { //加载成功时执行
- //layer.msg("加载成功");
- },
- onLoadError: function() { //加载失败时执行
- //layer.msg("加载数据失败", { time: 1500, icon: 2 });
- }
- });
- }
- //录音
- function ck(callId) {
- // var path = $(val).attr("item");
- $(".t-shade").addClass("cx");
- $(".Ly_box").empty();
- $(".LY_box").empty();
- // $('<audio style="width:100%;"class=" " src="' + path + '" loop="loop" controls="controls"></audio>').appendTo(".Ly_box");
- // $('<a href="' + path + '" class="sc_btn LY "download="' + path + '">下载录音</a>').appendTo(".LY_box");
- rePlayers(callId);
- }
- //音频
- function setCode(val,row) {
- if (val) {
- return '<div class="imgs" style="cursor: pointer;">' +
- '<img src="../img/vice.png" alt="" onclick= ck("' + row.nid + '") />' +
- '</div>';
- } else {
- return '';
- }
- }
- //关闭录音弹出
- $(".setwin").click(function() {
- $(".t-shade").removeClass("cx");
- // $('audio')[0].pause();
- });
- // 回放录屏 - 播放器
- function rePlayers(callId) {
- document.getElementById('replayers').innerHTML = ""; // 清空
- //$("#replayers").text("");
- $.ajax({
- url: huayi.config.callcenter_url + 'CutScreen/GetCutScreenByCallId',
- type: 'get',
- data: {
- callid: callId,
- token: $.cookie("token")
- },
- dataType: "json",
- async: true,
- success: function(res) {
- if (res.state.toLowerCase() === "success") {
- var data = res.data;
- if (data != null) {
- result = data.VideoHtml;
- rePlayers2(result);
- } else {
- $("#replayers").text("暂无录屏信息");
- }
- }
- },
- });
- }
- // 回放录屏 - 播放器
- function rePlayers2(res) {
- const events = JSON.parse(unescape(res));
- //const events = body_result;
- if (events != null) {
- $("#replayers").text("");
- new rrwebPlayer({
- target: document.getElementById('replayers'), // document.getElementById('replayers')可以自定义 DOM 元素 document.body
- data: {
- events,
- },
- });
- // const replayer = new rrweb.Replayer(events);
- // replayer.play();
-
- // var heigth = $(".rr-player").outerHeight();
- // var heigth2 = $(".rr-player__frame").outerHeight();
- // $(".rr-player").css("height",heigth - 100);
- // $(".rr-player__frame").css("height",heigth2 - 100);
- } else {
- $("#replayers").text("暂无录屏信息");
- }
- }
- //获取呼叫结果
- function GetHJJG() {
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
- dataType: 'json',
- data: {
- flag: 'HJJG',
- token: $.cookie("token")
- },
- async: true,
- success: function(data) {
- var Count = data.data;
- $("<option value=''>--全部--</option>").appendTo($("#hjjgid"));
- for(var i = 0; i < Count.length; i++) {
- $("<option value='" + Count[i].F_DictionaryValueId + "'>" + Count[i].F_Name + "</option>").appendTo($("#hjjgid"));
- }
- }
- });
- }
- //用户反馈
- function GetYHFK() {
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
- dataType: 'json',
- data: {
- flag: 'YHFK',
- token: $.cookie("token")
- },
- async: true,
- success: function(data) {
- var Count = data.data;
- $("<option value=''>--全部--</option>").appendTo($("#yhfkid"));
- for(var i = 0; i < Count.length; i++) {
- console.log(Count[i].F_UserName);
- $("<option value='" + Count[i].F_DictionaryValueId + "'>" + Count[i].F_Name + "</option>").appendTo($("#yhfkid"));
- }
- }
- });
- }
- function Code(val, row) {
- return '<div><a onclick="XX(' + row.F_Id + ')">' + row.F_Phone + '</a></div>'
- }
- //格式化操作
- function formatterOperation(val, row) {
- //ExpandSintField1 1为已存在工单,0为不存在工单
- if(row.ExpandSintField1 == '1'){
- return '-';
- }else if(row.ExpandSintField1 == '0'||row.ExpandSintField1==null){
- return '<div class="imgs" ><a class="xg" href="javascript:;" onclick= createOrder("' + row.F_Id + '")>新建工单</a></div>';
- }else{
- return '-';
- }
- }
- //新建工单
- function createOrder(tid) {
- layer.open({
- type: 2,
- content: "../WorkOrder/addwork.html?tid=" + tid, //iframe的url,no代表不显示滚动条
- title: '新建工单',
- maxmin: true,
- area: ['86%', '88%'], //宽高
- });
- }
- //详情
- function XX(str) {
- console.log(str);
- layer.open({
- type: 2,
- content: "../OutboundMessage/LookMessages.html?Str=" + str, //iframe的url,no代表不显示滚动条
- title: '任务信息',
- maxmin: true, //开启最大化最小化按钮
- id: 'LAY_layuipro1', //防止重复弹出
- area: ['86%', '88%'], //宽高
- });
- }
- </script>
- </body>
- </html>
|