Нет описания

MyTaskResult.html 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>我的任务结果</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <script src="../Script/Common/huayi.load.js"></script>
  8. <script src="../Script/Common/huayi.config.js"></script>
  9. <link href="../css/Table/table1.css" rel="stylesheet" />
  10. <link href="../css/init.css" rel="stylesheet" />
  11. <!-- 录屏 -->
  12. <!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/rrweb@latest/dist/rrweb.min.css"/> -->
  13. <!-- 回放播放器 -->
  14. <!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/rrweb-player@latest/dist/style.css"/> -->
  15. <!-- 录屏-->
  16. <!-- <script src="https://cdn.jsdelivr.net/npm/rrweb@latest/dist/record/rrweb-record.min.js"></script> -->
  17. <!-- <script src="https://cdn.jsdelivr.net/npm/rrweb@latest/dist/rrweb.min.js"></script> -->
  18. <!-- 回放播放器 -->
  19. <!-- <script src="https://cdn.jsdelivr.net/npm/rrweb-player@latest/dist/index.js"></script> -->
  20. <!--<script src="../callScreen/cutVideo.js" type="text/javascript"></script>-->
  21. <style type="text/css">
  22. #replayers{
  23. text-align: center;
  24. /* color: #EEEEEE; */
  25. }
  26. .rr-player.svelte-1wetjm2{
  27. margin: 0px auto;
  28. float: none;
  29. /* box-shadow: 0 24px 48px #000000; */
  30. }
  31. .shade_k{
  32. margin: 2% auto;
  33. overflow-y: scroll;
  34. width: 65%;
  35. min-width: 1040px;
  36. height: 750px;
  37. }
  38. </style>
  39. </head>
  40. <body class="gray-bg">
  41. <div class="wrapper wrapper-content animated fadeInRight">
  42. <div class="daoHang clearfix">
  43. <div class="dhLeft">
  44. <sapn><i class="syIcon"></i>位置:
  45. <a id="ReIndex">首页</a>&gt;
  46. <a href="javaScript:;">外呼管理</a>&gt;
  47. <a href="" style="color: #000;">我的任务结果</a>
  48. </sapn>
  49. </div>
  50. </div>
  51. <div class="th-box">
  52. <div class="th-bar">
  53. <div class="seach-box ">
  54. <ul>
  55. <li style="position: relative;">
  56. 调查时间:
  57. <i class="tub fa fa-calendar"></i>
  58. <input type="text" id="s_time" class="photo laydate-icon" placeholder="请选择调查时间" />
  59. </li>
  60. <li>呼叫结果:
  61. <select name="" class="photo" id="hjjgid"></select>
  62. </li>
  63. <li>电话号码:<input class="photo x-color" type="text" id="key" placeholder="请输入电话号码" /></li>
  64. <!--<li>用户反馈:
  65. <select name="" class="photo" id="yhfkid"></select>
  66. </li>-->
  67. <li>
  68. <a class="sc_btn Block" id="sc_btns">搜索</a>
  69. <a class="sc_btn Block" id="ex_btns">导出</a>
  70. </li>
  71. </ul>
  72. </div>
  73. </div>
  74. </div>
  75. <div style="width: 100%;padding: 10px;">
  76. <table id="list" data-click-to-select="true" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  77. <thead>
  78. <tr>
  79. <th data-formatter="formatterOperation" data-align="center">操作</th>
  80. <th data-field="ExpandVchField1" data-align="center">用户分类</th>
  81. <th data-field="Expandfield2" data-align="center">营业部</th>
  82. <th data-field="F_Phone" data-align="center" data-formatter="Code">电话号码</th>
  83. <th data-field="F_typeValue1" data-align="center">移网上网质量</th>
  84. <th data-field="F_typeValue2" data-align="center">移网通话质量</th>
  85. <th data-field="F_typeValue3" data-align="center">光网质量</th>
  86. <th data-field="F_typeValue4" data-align="center">装维服务</th>
  87. <th data-field="F_typeValue5" data-align="center">营业厅服务</th>
  88. <th data-field="F_typeValue6" data-align="center">套餐资费</th>
  89. <th data-field="F_UserName" data-align="center">分配坐席</th>
  90. <th data-field="F_HJJGName" data-align="center">呼叫结果</th>
  91. <th data-field="ExpandDatField1" data-align="center">调查时间</th>
  92. </tr>
  93. </thead>
  94. <tbody id="tbody"></tbody>
  95. </table>
  96. </div>
  97. <!--下载框-->
  98. <div class="t-shade">
  99. <div class="shade_k">
  100. <div class="shade_title">
  101. <span>录屏播放<srong class="cknum"></srong></span>
  102. <span class="setwin"><a>x</a></span>
  103. </div>
  104. <div class="shade_content">
  105. <div class="Ly_box audiojs">
  106. </div>
  107. <div class="boxCon LY_box">
  108. </div>
  109. <div id="replayers"></div>
  110. </div>
  111. </div>
  112. </div>
  113. <!--//下载框结束-->
  114. </div>
  115. <script src="../js/laydate/laydate.js"></script>
  116. <script>
  117. $(document).ready(function() {
  118. laydate.render({
  119. elem: '#s_time',
  120. range: '~',
  121. theme: '#1ab394',
  122. calendar: true,
  123. });
  124. initTable();
  125. GetHJJG(); //呼叫结果下拉
  126. //GetYHFK();//用户反馈
  127. $("#sc_btns").click(function() {
  128. initTable();
  129. });
  130. $("#ex_btns").click(function() {
  131. dcexcel(this);
  132. });
  133. })
  134. function dcexcel(obj) {
  135. let sdate = $('#s_time').val() && $('#s_time').val().split(' ~ ')[0];
  136. let edate = $('#s_time').val() && $('#s_time').val().split(' ~ ')[1];
  137. var url = huayi.config.callcenter_url + "CallOutPlan/ExportGetMyResultList?token=" + $.cookie("token");
  138. url += "&sdate=" + sdate + "&edate=" + edate;
  139. url += '&key=' + $("#key").val()+'&hjjgid='+$("#hjjgid").val();
  140. console.log(url)
  141. obj.href = url;
  142. }
  143. function initTable() {
  144. //先销毁表格
  145. $('#list').bootstrapTable('destroy');
  146. //初始化表格,动态从服务器加载数据
  147. $("#list").bootstrapTable({
  148. method: "get", //使用get请求到服务器获取数据
  149. url: huayi.config.callcenter_url + "CallOutPlan/GetMyResultList", //获取数据的Servlet地址
  150. contentType: 'application/x-www-form-urlencoded',
  151. striped: true, //表格显示条纹
  152. pagination: true, //启动分页
  153. pageSize: 10, //每页显示的记录数
  154. pageNumber: 1, //当前第几页
  155. pageList: [10, 20, 50, 100], //记录数可选列表
  156. search: false, //是否启用查询
  157. showColumns: false, //显示下拉框勾选要显示的列
  158. showRefresh: false, //显示刷新按钮
  159. sidePagination: "server", //表示服务端请求
  160. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  161. //设置为limit可以获取limit, offset, search, sort, order
  162. queryParamsType: "undefined",
  163. queryParams: function queryParams(params) { //设置查询参数
  164. var param = {
  165. pageindex: params.pageNumber,
  166. pagesize: params.pageSize,
  167. sdate: $('#s_time').val() && $('#s_time').val().split(' ~ ')[0],
  168. edate: $('#s_time').val() && $('#s_time').val().split(' ~ ')[1],
  169. key: $("#key").val(),
  170. hjjgid: $("#hjjgid").val(), //呼叫结果ID
  171. //yhfkid:$("#yhfkid").val(), //用户反馈ID
  172. token: $.cookie("token")
  173. };
  174. return param;
  175. },
  176. onLoadSuccess: function() { //加载成功时执行
  177. //layer.msg("加载成功");
  178. },
  179. onLoadError: function() { //加载失败时执行
  180. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  181. }
  182. });
  183. }
  184. //录音
  185. function ck(callId) {
  186. // var path = $(val).attr("item");
  187. $(".t-shade").addClass("cx");
  188. $(".Ly_box").empty();
  189. $(".LY_box").empty();
  190. // $('<audio style="width:100%;"class=" " src="' + path + '" loop="loop" controls="controls"></audio>').appendTo(".Ly_box");
  191. // $('<a href="' + path + '" class="sc_btn LY "download="' + path + '">下载录音</a>').appendTo(".LY_box");
  192. rePlayers(callId);
  193. }
  194. //音频
  195. function setCode(val,row) {
  196. if (val) {
  197. return '<div class="imgs" style="cursor: pointer;">' +
  198. '<img src="../img/vice.png" alt="" onclick= ck("' + row.nid + '") />' +
  199. '</div>';
  200. } else {
  201. return '';
  202. }
  203. }
  204. //关闭录音弹出
  205. $(".setwin").click(function() {
  206. $(".t-shade").removeClass("cx");
  207. // $('audio')[0].pause();
  208. });
  209. // 回放录屏 - 播放器
  210. function rePlayers(callId) {
  211. document.getElementById('replayers').innerHTML = ""; // 清空
  212. //$("#replayers").text("");
  213. $.ajax({
  214. url: huayi.config.callcenter_url + 'CutScreen/GetCutScreenByCallId',
  215. type: 'get',
  216. data: {
  217. callid: callId,
  218. token: $.cookie("token")
  219. },
  220. dataType: "json",
  221. async: true,
  222. success: function(res) {
  223. if (res.state.toLowerCase() === "success") {
  224. var data = res.data;
  225. if (data != null) {
  226. result = data.VideoHtml;
  227. rePlayers2(result);
  228. } else {
  229. $("#replayers").text("暂无录屏信息");
  230. }
  231. }
  232. },
  233. });
  234. }
  235. // 回放录屏 - 播放器
  236. function rePlayers2(res) {
  237. const events = JSON.parse(unescape(res));
  238. //const events = body_result;
  239. if (events != null) {
  240. $("#replayers").text("");
  241. new rrwebPlayer({
  242. target: document.getElementById('replayers'), // document.getElementById('replayers')可以自定义 DOM 元素 document.body
  243. data: {
  244. events,
  245. },
  246. });
  247. // const replayer = new rrweb.Replayer(events);
  248. // replayer.play();
  249. // var heigth = $(".rr-player").outerHeight();
  250. // var heigth2 = $(".rr-player__frame").outerHeight();
  251. // $(".rr-player").css("height",heigth - 100);
  252. // $(".rr-player__frame").css("height",heigth2 - 100);
  253. } else {
  254. $("#replayers").text("暂无录屏信息");
  255. }
  256. }
  257. //获取呼叫结果
  258. function GetHJJG() {
  259. $.ajax({
  260. type: "get",
  261. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
  262. dataType: 'json',
  263. data: {
  264. flag: 'HJJG',
  265. token: $.cookie("token")
  266. },
  267. async: true,
  268. success: function(data) {
  269. var Count = data.data;
  270. $("<option value='0'>--全部--</option>").appendTo($("#hjjgid"));
  271. for(var i = 0; i < Count.length; i++) {
  272. $("<option value='" + Count[i].F_DictionaryValueId + "'>" + Count[i].F_Name + "</option>").appendTo($("#hjjgid"));
  273. }
  274. }
  275. });
  276. }
  277. //用户反馈
  278. function GetYHFK() {
  279. $.ajax({
  280. type: "get",
  281. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
  282. dataType: 'json',
  283. data: {
  284. flag: 'YHFK',
  285. token: $.cookie("token")
  286. },
  287. async: true,
  288. success: function(data) {
  289. var Count = data.data;
  290. $("<option value=''>--全部--</option>").appendTo($("#yhfkid"));
  291. for(var i = 0; i < Count.length; i++) {
  292. console.log(Count[i].F_UserName);
  293. $("<option value='" + Count[i].F_DictionaryValueId + "'>" + Count[i].F_Name + "</option>").appendTo($("#yhfkid"));
  294. }
  295. }
  296. });
  297. }
  298. function Code(val, row) {
  299. return '<div><a onclick="XX(' + row.F_Id + ')">' + row.F_Phone + '</a></div>'
  300. }
  301. //格式化操作
  302. function formatterOperation(val, row) {
  303. //ExpandSintField1 1为已存在工单,0为不存在工单
  304. if(row.ExpandSintField1 == '1'){
  305. return '<span style="color:#f00">已创建工单<span>';
  306. }else if(row.ExpandSintField1 == '0'){
  307. return '<div class="imgs" ><a class="xg" href="javascript:;" onclick= createOrder("' + row.F_Id + '")>新建工单</a></div>';
  308. }else{
  309. return '-';
  310. }
  311. }
  312. //新建工单
  313. function createOrder(tid) {
  314. layer.open({
  315. type: 2,
  316. content: "../commonHtml/orderModel.html?tid=" + tid, //iframe的url,no代表不显示滚动条
  317. title: '新建工单',
  318. maxmin: true,
  319. area: ['86%', '88%'], //宽高
  320. });
  321. }
  322. //详情
  323. function XX(str) {
  324. console.log(str);
  325. layer.open({
  326. type: 2,
  327. content: "../OutboundMessage/LookMessages.html?Str=" + str, //iframe的url,no代表不显示滚动条
  328. title: '任务信息',
  329. maxmin: true, //开启最大化最小化按钮
  330. id: 'LAY_layuipro1', //防止重复弹出
  331. area: ['86%', '88%'], //宽高
  332. });
  333. }
  334. </script>
  335. </body>
  336. </html>