realtime.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="renderer" content="webkit|ie-comp|ie-stand">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  8. <meta http-equiv="Cache-Control" content="no-siteapp" />
  9. <!--[if lt IE 9]>
  10. <script type="text/javascript" src="${ctx}/assets/lib/html5.js"></script>
  11. <script type="text/javascript" src="${ctx}/assets/lib/respond.min.js"></script>
  12. <script type="text/javascript" src="${ctx}/assets/lib/PIE_IE678.js"></script>
  13. <![endif]-->
  14. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui/css/H-ui.min.css" />
  15. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/H-ui.admin.css" />
  16. <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/Hui-iconfont/1.0.7/iconfont.css" />
  17. <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/icheck/icheck.css" />
  18. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/skin/default/skin.css" id="skin" />
  19. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/style.css" />
  20. <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" >
  21. <script type="text/javascript" src="${ctx}/assets/lib/My97DatePicker/WdatePicker.js"></script>
  22. <script type="text/ecmascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.js"></script>
  23. <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
  24. <script type="text/javascript" src="${ctx}/assets/static/h-ui/js/H-ui.js"></script>
  25. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqueryui/jquery-ui.css" />
  26. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqgrid/css/ui.jqgrid.css" />
  27. <script type="text/ecmascript" src="${ctx}/assets/lib/jqueryui/jquery-ui.js"></script>
  28. <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/i18n/grid.locale-cn.js"></script>
  29. <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/jquery.jqGrid.min.js"></script>
  30. <script type="text/javascript" src="${ctx}/assets/js/base.js"></script>
  31. <script type="text/javascript" src="${ctx}/assets/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
  32. <!--[if IE 6]>
  33. <script type="text/javascript" src="${ctx}/assets/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
  34. <script>DD_belatedPNG.fix('*');</script>
  35. <![endif]-->
  36. <script type="text/javascript">
  37. $(function() {
  38. $(window).resize(function(){
  39. $("#jqGrid").setGridWidth($(window).width()-41);
  40. });
  41. $("#jqGrid").jqGrid({
  42. url : '${ctx}/myconsole/complaint/list/getRealTimePage',
  43. editurl:"${ctx}/myconsole/complaint/list",
  44. mtype : "POST",
  45. datatype : "json",
  46. multiselect: false,
  47. caption1:'实时数据分析统计',
  48. prmNames : { //定义表单的主键 // Default valuesprmNames: {page:“page”,rows:“rows”, sort: “sidx”,order: “sord”, search:“_search”, nd:“nd”, npage:null} 当参数为null时不会被发到服务器端
  49. id: "keyid",
  50. oper:"oper",
  51. addoper:"add",
  52. editoper:"edit",
  53. deloper:"del"
  54. },
  55. colModel : [ {
  56. label : '投诉单号',
  57. name : 'appealid',
  58. key : true,
  59. editable: false,
  60. hidden:true
  61. },{
  62. label : '投诉单接入渠道',
  63. name : 'salechnlname1',
  64. width : 50,
  65. align:'center',
  66. },{
  67. label : '投诉单一级分类',
  68. name : 'reasonname1',
  69. width : 30,
  70. align:'center',
  71. },{
  72. label : '投诉单二级分类',
  73. name : 'reasonname2',
  74. width : 30,
  75. align:'center',
  76. }, {
  77. label : '投诉单三级分类',
  78. name : 'reasonname3',
  79. width : 30,
  80. align:'center',
  81. },{
  82. label : '二线工号',
  83. name : 'recorduserid',
  84. width : 30,
  85. align:'center',
  86. }, {
  87. label : '接入时间',
  88. name : 'recordtime',
  89. width : 30,
  90. align:'center',
  91. }, {
  92. label : '当前处理状态',
  93. name : 'dostate',
  94. width : 50,
  95. align:'center',
  96. },{
  97. label : '处理后是否仍不满',
  98. name : 'issatisfaction',
  99. width : 30,
  100. align:'center',
  101. }, {
  102. label : '统计年',
  103. name : 'year',
  104. width : 30,
  105. align:'center',
  106. }, {
  107. label : '统计季',
  108. name : 'quarter',
  109. width : 30,
  110. align:'center',
  111. }, {
  112. label : '统计月',
  113. name : 'month',
  114. width : 30,
  115. align:'center',
  116. }, {
  117. label : '统计日',
  118. name : 'day',
  119. width : 30,
  120. align:'center',
  121. }, {
  122. label : '统计小时',
  123. name : 'hour',
  124. width : 30,
  125. align:'center',
  126. },{
  127. label : '操作',
  128. name:'operMod',
  129. index:'operMod',
  130. align:"center",
  131. width:"20",
  132. sortable:false,
  133. formatter: function (cellvalue, options, rowdata) {
  134. var html ="";
  135. html = "<button class='btn btn-success radius size-S' onclick=seeData('"+rowdata.appealid+"')>查看</button>";
  136. return html;
  137. }
  138. }],
  139. rownumbers : true,//添加左侧行号
  140. viewrecords : true,//是否在浏览导航栏显示记录总数
  141. rowNum : 10,//每页显示记录数
  142. rowList : [10,15,20,30,40,50 ],//用于改变显示行数的下拉列表框的元素数组。
  143. autowidth : true,
  144. sortname : 'AppealDate',
  145. sortorder : 'desc',
  146. height : 'auto',
  147. pager : "#jqGridPager",
  148. //屏蔽点击任意单元格选中checkbox的问题
  149. beforeSelectRow: function (rowid, e) {
  150. var $myGrid = $(this),
  151. i = $.jgrid.getCellIndex($(e.target).closest('td')[0]),
  152. cm = $myGrid.jqGrid('getGridParam', 'colModel');
  153. return (cm[i].name === 'cb');
  154. }
  155. });
  156. $("#jqGrid").setLabel("rn","序号");
  157. doSearch();
  158. $('#jqGrid').navGrid('#jqGridPager',
  159. {
  160. add : false,
  161. edit : false,
  162. del : false,
  163. search : false,
  164. refresh : false,
  165. view : false,
  166. position : "left",
  167. cloneToTop : true
  168. }
  169. ).navButtonAdd("#jqGridPager",{
  170. caption:'导出',
  171. onClickButton:function(){
  172. var BeginDate = $('#BeginDate').val();
  173. var EndDate = $('#EndDate').val();
  174. var IsSatisfaction = $('#IsSatisfaction').val();
  175. var reasonName = $('#reasonName').val();
  176. var typeResultName = $('#typeResultName').val();
  177. $.post("${ctx}/myconsole/complaint/list/excelRealTimeData",{"BeginDate":BeginDate,"EndDate":EndDate,"IsSatisfaction":IsSatisfaction,"reasonName":reasonName,"typeResultName":typeResultName},function(data){
  178. var res=eval('(' + data + ')');
  179. if(res.flag){
  180. downFile(res.filepath,res.filename);
  181. }else{
  182. alert("没有数据导出!");
  183. }
  184. })
  185. }
  186. }
  187. );
  188. });
  189. function doSearch(){
  190. $('#search').click(function(){
  191. var BeginDate = $('#BeginDate').val();
  192. var EndDate = $('#EndDate').val();
  193. var IsSatisfaction = $('#IsSatisfaction').val();
  194. var reasonName = $('#reasonName').val();
  195. var typeResultName = $('#typeResultName').val();
  196. $("#jqGrid").jqGrid('setGridParam',{
  197. postData:{"BeginDate":BeginDate,"EndDate":EndDate,"IsSatisfaction":IsSatisfaction,"reasonName":reasonName,"typeResultName":typeResultName}
  198. }).trigger('reloadGrid');
  199. });
  200. }
  201. //查看信息 2017-07-24
  202. function seeData(appealid){
  203. fullOpen("${ctx}/myconsole/complaint/register/seeData?appealid="+appealid);
  204. }
  205. //下载附件
  206. function downFile(filePath,fileName)
  207. {
  208. window.open('${serverURL!}/downloadFile.do?FileDownloadPath='+filePath+'&FileDownloadName='+fileName,'Derek','resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');
  209. }
  210. </script>
  211. <title>我的桌面</title>
  212. </head>
  213. <body>
  214. <div>
  215. <div style="text-align:center;height:30px;padding-top:10px;">
  216. <form id="form1" method="post" class="form-horizontal" role="form">
  217. <table>
  218. <tr>
  219. <td valign="top" style="padding-top: 5px;text-align: left;width:1000px">
  220. <label class="radio-inline" style="font-weight:700">
  221. &nbsp;&nbsp;&nbsp;&nbsp;客诉日期 从:
  222. </label>
  223. <input type="text" class="form-control" style="width:100px" value="" placeholder=""
  224. id="BeginDate" name="BeginDate"
  225. onClick="WdatePicker({dateFmt:'yyyy-MM-dd',el:'BeginDate',maxDate:'#F{$dp.$D(\'EndDate\')}'})"
  226. title="选择开始日期" vmode="" vdisp="开始日期" vtype="string" readonly>
  227. <label class="radio-inline" style="font-weight:700">
  228. &nbsp;至:
  229. </label>
  230. <input type="text" class="form-control" style="width:100px" value="" placeholder="" id="EndDate"
  231. name="EndDate"
  232. onClick="WdatePicker({dateFmt:'yyyy-MM-dd',el:'EndDate',minDate:'#F{$dp.$D(\'BeginDate\')}',maxDate:new Date()})"
  233. title="选择结束日期" vmode="" vdisp="结束日期" vtype="string" readonly>
  234. <label class="radio-inline" style="font-weight:700">
  235. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;处理后是否仍不满:
  236. </label>
  237. <select id="IsSatisfaction" name="IsSatisfaction" style="width:100px" class="form-control" vmode="" vdisp="处理后是否仍不满" vtype="string">
  238. <option value=''>请选择</option>
  239. <option value='不满意'>不满意</option>
  240. <option value='满意'>满意</option>
  241. </select>
  242. <label class="radio-inline" style="font-weight:700">
  243. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;投诉原因:
  244. </label>
  245. <select id="reasonName" name="reasonName" style="width:100px" class="form-control" vmode="" vdisp="投诉原因" vtype="string">
  246. <option value=''>请选择</option>
  247. ${reasonName!''}
  248. </select>
  249. </td>
  250. <td valign="top" style="padding-top: 1px;">
  251. <label>
  252. <input type="button" id="search" value="搜 索" style="width: 50px;"
  253. class="form-control gui-input form-control input-sm btn btn-primary btn-block">
  254. <b class="tooltip tip-left-top"></b>
  255. <label for="cardno" class="field-icon"><i class="fa fa-credit-card"></i>
  256. </label>
  257. </label>
  258. </td>
  259. </tr>
  260. </table>
  261. </form>
  262. </div>
  263. <div class="page-container">
  264. <table id="jqGrid"></table>
  265. <div id="jqGridPager"></div>
  266. </div>
  267. </div>
  268. </body>
  269. </html>