封丘民意调查

MyTaskResult.html 8.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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. <style type="text/css">
  12. .rr-player.svelte-1wetjm2{
  13. margin: 0px auto;
  14. float: none;
  15. }
  16. .shade_k{
  17. margin: 2% auto;
  18. overflow-y: scroll;
  19. width: 65%;
  20. min-width: 1040px;
  21. height: 750px;
  22. }
  23. </style>
  24. </head>
  25. <body class="gray-bg">
  26. <div class="wrapper wrapper-content animated fadeInRight">
  27. <div class="daoHang clearfix">
  28. <div class="dhLeft">
  29. <sapn><i class="syIcon"></i>位置:
  30. <a id="ReIndex">首页</a>&gt;
  31. <a href="javaScript:;">外呼管理</a>&gt;
  32. <a href="" style="color: #000;">我的任务结果</a>
  33. </sapn>
  34. </div>
  35. </div>
  36. <div class="th-box">
  37. <div class="th-bar">
  38. <div class="seach-box ">
  39. <ul>
  40. <li style="position: relative;">
  41. 调查时间:
  42. <i class="tub fa fa-calendar"></i>
  43. <input type="text" id="s_time" class="photo laydate-icon" placeholder="请选择调查时间" />
  44. </li>
  45. <li>呼叫结果:
  46. <select name="" class="photo" id="hjjgid"></select>
  47. </li>
  48. <li>电话号码:<input class="photo x-color" type="text" id="key" placeholder="请输入电话号码" /></li>
  49. <!--<li>用户反馈:
  50. <select name="" class="photo" id="yhfkid"></select>
  51. </li>-->
  52. <li>
  53. <a class="sc_btn Block" id="sc_btns">搜索</a>
  54. </li>
  55. </ul>
  56. </div>
  57. </div>
  58. </div>
  59. <div style="width: 100%;padding: 10px;">
  60. <table id="list" data-click-to-select="true" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  61. <thead>
  62. <tr>
  63. <th data-formatter="formatterOperation" data-align="center">操作</th>
  64. <!--<th data-field="state" data-checkbox="true"></th>-->
  65. <th data-field="F_Phone" data-align="center" data-formatter="Code">电话号码</th>
  66. <!--<th data-field="nid" data-formatter="setCode">录音</th>-->
  67. <th data-field="F_CusName" data-align="center">姓名</th>
  68. <th data-field="ExpandVchField4" data-align="center">乡镇或单位</th>
  69. <th data-field="ExpandVchField3" data-align="center">地址</th>
  70. <th data-field="F_UserName" data-align="center">分配坐席</th>
  71. <th data-field="F_HJJGName" data-align="center">呼叫结果</th>
  72. <th data-field="ExpandDatField1" data-align="center">调查时间</th>
  73. <!--<th data-field="F_YHFKName" data-align="center">用户反馈</th>-->
  74. </tr>
  75. </thead>
  76. <tbody id="tbody"></tbody>
  77. </table>
  78. </div>
  79. <!--下载框-->
  80. <div class="t-shade">
  81. <div class="shade_k">
  82. <div class="shade_title">
  83. <span>录屏播放<srong class="cknum"></srong></span>
  84. <span class="setwin"><a>x</a></span>
  85. </div>
  86. <div class="shade_content">
  87. <div class="Ly_box audiojs">
  88. </div>
  89. <div class="boxCon LY_box">
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. <!--//下载框结束-->
  95. </div>
  96. <script src="../js/laydate/laydate.js"></script>
  97. <script>
  98. $(document).ready(function() {
  99. laydate.render({
  100. elem: '#s_time',
  101. range: '~',
  102. theme: '#1ab394',
  103. calendar: true,
  104. });
  105. initTable();
  106. GetHJJG(); //呼叫结果下拉
  107. //GetYHFK();//用户反馈
  108. $("#sc_btns").click(function() {
  109. initTable();
  110. });
  111. //回车搜索
  112. // $('#sc_btns').on('keypress',function(e){
  113. // if(e.keyCode==13){
  114. // initTable();
  115. // }
  116. // })
  117. })
  118. function initTable() {
  119. //先销毁表格
  120. $('#list').bootstrapTable('destroy');
  121. //初始化表格,动态从服务器加载数据
  122. $("#list").bootstrapTable({
  123. method: "get", //使用get请求到服务器获取数据
  124. url: huayi.config.callcenter_url + "CallOutPlan/GetMyResultList", //获取数据的Servlet地址
  125. contentType: 'application/x-www-form-urlencoded',
  126. striped: true, //表格显示条纹
  127. pagination: true, //启动分页
  128. pageSize: 10, //每页显示的记录数
  129. pageNumber: 1, //当前第几页
  130. pageList: [10, 20, 50, 100], //记录数可选列表
  131. search: false, //是否启用查询
  132. showColumns: false, //显示下拉框勾选要显示的列
  133. showRefresh: false, //显示刷新按钮
  134. sidePagination: "server", //表示服务端请求
  135. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  136. //设置为limit可以获取limit, offset, search, sort, order
  137. queryParamsType: "undefined",
  138. queryParams: function queryParams(params) { //设置查询参数
  139. var param = {
  140. pageindex: params.pageNumber,
  141. pagesize: params.pageSize,
  142. sdate: $('#s_time').val() && $('#s_time').val().split(' ~ ')[0],
  143. edate: $('#s_time').val() && $('#s_time').val().split(' ~ ')[1],
  144. key: $("#key").val(),
  145. hjjgid: $("#hjjgid").val(), //呼叫结果ID
  146. //yhfkid:$("#yhfkid").val(), //用户反馈ID
  147. token: $.cookie("token")
  148. };
  149. return param;
  150. },
  151. onLoadSuccess: function() { //加载成功时执行
  152. //layer.msg("加载成功");
  153. },
  154. onLoadError: function() { //加载失败时执行
  155. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  156. }
  157. });
  158. }
  159. //录音
  160. function ck(callId) {
  161. // var path = $(val).attr("item");
  162. $(".t-shade").addClass("cx");
  163. $(".Ly_box").empty();
  164. $(".LY_box").empty();
  165. // $('<audio style="width:100%;"class=" " src="' + path + '" loop="loop" controls="controls"></audio>').appendTo(".Ly_box");
  166. // $('<a href="' + path + '" class="sc_btn LY "download="' + path + '">下载录音</a>').appendTo(".LY_box");
  167. }
  168. //音频
  169. function setCode(val,row) {
  170. if (val) {
  171. return '<div class="imgs" style="cursor: pointer;">' +
  172. '<img src="../img/vice.png" alt="" onclick= ck("' + row.nid + '") />' +
  173. '</div>';
  174. } else {
  175. return '';
  176. }
  177. }
  178. //关闭录音弹出
  179. $(".setwin").click(function() {
  180. $(".t-shade").removeClass("cx");
  181. // $('audio')[0].pause();
  182. });
  183. //获取呼叫结果
  184. function GetHJJG() {
  185. $.ajax({
  186. type: "get",
  187. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
  188. dataType: 'json',
  189. data: {
  190. flag: 'HJJG',
  191. token: $.cookie("token")
  192. },
  193. async: true,
  194. success: function(data) {
  195. var Count = data.data;
  196. $("<option value=''>--全部--</option>").appendTo($("#hjjgid"));
  197. for(var i = 0; i < Count.length; i++) {
  198. $("<option value='" + Count[i].F_DictionaryValueId + "'>" + Count[i].F_Name + "</option>").appendTo($("#hjjgid"));
  199. }
  200. }
  201. });
  202. }
  203. //用户反馈
  204. function GetYHFK() {
  205. $.ajax({
  206. type: "get",
  207. url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
  208. dataType: 'json',
  209. data: {
  210. flag: 'YHFK',
  211. token: $.cookie("token")
  212. },
  213. async: true,
  214. success: function(data) {
  215. var Count = data.data;
  216. $("<option value=''>--全部--</option>").appendTo($("#yhfkid"));
  217. for(var i = 0; i < Count.length; i++) {
  218. console.log(Count[i].F_UserName);
  219. $("<option value='" + Count[i].F_DictionaryValueId + "'>" + Count[i].F_Name + "</option>").appendTo($("#yhfkid"));
  220. }
  221. }
  222. });
  223. }
  224. function Code(val, row) {
  225. return '<div><a onclick="XX(' + row.F_Id + ')">' + row.F_Phone + '</a></div>'
  226. }
  227. //格式化操作
  228. function formatterOperation(val, row) {
  229. //ExpandSintField1 1为已存在工单,0为不存在工单
  230. if(row.ExpandSintField1 == '1'){
  231. return '-';
  232. }else if(row.ExpandSintField1 == '0'){
  233. return '<div class="imgs" ><a class="xg" href="javascript:;" onclick= createOrder("' + row.F_Id + '")>新建工单</a></div>';
  234. }else{
  235. return '-';
  236. }
  237. }
  238. //新建工单
  239. function createOrder(tid) {
  240. layer.open({
  241. type: 2,
  242. content: "../commonHtml/orderModel.html?tid=" + tid, //iframe的url,no代表不显示滚动条
  243. title: '新建工单',
  244. maxmin: true,
  245. area: ['86%', '88%'], //宽高
  246. });
  247. }
  248. //详情
  249. function XX(str) {
  250. console.log(str);
  251. layer.open({
  252. type: 2,
  253. content: "../OutboundMessage/commonHtml/LookMessages.html?Str=" + str, //iframe的url,no代表不显示滚动条
  254. title: '任务信息',
  255. maxmin: true, //开启最大化最小化按钮
  256. id: 'LAY_layuipro1', //防止重复弹出
  257. area: ['86%', '88%'], //宽高
  258. });
  259. }
  260. </script>
  261. </body>
  262. </html>