商丘12345 前端

CB.html 8.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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 rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  10. <link href="../css/WorkOrder/Search.css" rel="stylesheet">
  11. <link href="../css/init.css" rel="stylesheet" />
  12. <script src="../css/laydate/laydate.js"></script>
  13. <script src="../My97DatePicker/WdatePicker.js"></script>
  14. <style>
  15. table td {
  16. word-break: break-all;
  17. word-wrap: break-word;
  18. }
  19. .ld-service li {
  20. float: left;
  21. font-size: 14px;
  22. color: #000;
  23. padding: 5px 15px;
  24. cursor: pointer;
  25. border-bottom: 1px solid #ccc;
  26. }
  27. .cr-click {
  28. border: 1px solid #ccc;
  29. background-color: #fff;
  30. border-bottom: none !important;
  31. border-bottom-left-radius: 5px;
  32. border-bottom-right-radius: 5px;
  33. }
  34. .Shows {
  35. display: block !important;
  36. }
  37. .complain {
  38. display: none;
  39. }
  40. th {
  41. padding: 5px;
  42. text-align: center;
  43. }
  44. td {
  45. padding: 5px;
  46. width: 200px;
  47. }
  48. .Borders {
  49. border: 1px solid #d7d7d7;
  50. }
  51. .cx {
  52. display: block;
  53. }
  54. </style>
  55. </head>
  56. <body class="gray-bg">
  57. <div class="wrapper wrapper-content animated fadeInRight">
  58. <div class="daoHang clearfix">
  59. <div class="dhLeft">
  60. <sapn>
  61. <i class="syIcon"></i>位置:
  62. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  63. <a href="javaScript:;">业务统计</a>&gt;
  64. <a class="nowPosition">重办不满意统计</a>
  65. </sapn>
  66. </div>
  67. <div class="dhRight">
  68. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  69. </div>
  70. </div>
  71. <div class="Content_box">
  72. <!--待处理/-->
  73. <div class="complain Shows">
  74. <div class="th-box">
  75. <div class="th-bar">
  76. <div class="seach-box">
  77. <ul>
  78. <li>
  79. 创建时间:
  80. <input class="photo x-color inputs laydate-icon" type="text" id="startTimes" />-
  81. <input class="photo x-color inputs laydate-icon" type="text" id="endTimes" />
  82. </li>
  83. <li>
  84. <a class="sc_btn btns db">搜索</a>
  85. <a class="sc_btn btns export">导出</a>
  86. </li>
  87. <li><span class="text-danger" style="padding-left: 10px;line-height: 30px;">默认显示当前月的信息</span></li>
  88. </ul>
  89. </div>
  90. </div>
  91. </div>
  92. <div style="width: 100%;padding: 10px;">
  93. <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  94. <thead>
  95. <tr>
  96. <th data-field="F_WorkOrderId" data-align="center" data-formatter="GetLink">工单编号</th>
  97. <th data-field="DeptName" data-align="center">承办单位</th>
  98. <th data-field="F_ComContent" data-align="center" data-formatter="GetCont">工单内容</th>
  99. <th data-field="cjTime" data-align="center">创建时间</th>
  100. <th data-field="fkContent" data-align="center" data-formatter="GetCont">处理结果</th>
  101. <th data-field="fkTime" data-align="center">处理时间</th>
  102. <th data-field="hfContent" data-align="center" data-formatter="GetCont">回访结果</th>
  103. <th data-field="hfTime" data-align="center">回访时间</th>
  104. </tr>
  105. </thead>
  106. </table>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. <script>
  112. initTable();
  113. var keys;
  114. $(document).ready(function () {
  115. laydate.skin('blue');
  116. laydate({
  117. elem: '#startTimes',
  118. event: 'focus'
  119. });
  120. laydate({
  121. elem: '#endTimes',
  122. event: 'focus'
  123. });
  124. })
  125. //表格一
  126. function initTable(keys) {
  127. //先销毁表格
  128. $('#workorderlist').bootstrapTable('destroy');
  129. //初始化表格,动态从服务器加载数据
  130. $("#workorderlist").bootstrapTable({
  131. method: "get", //使用get请求到服务器获取数据
  132. url: huayi.config.callcenter_url + "WorkOrderReport/GetNotSatisfied",
  133. contentType: "application/x-www-form-urlencoded", striped: true, //表格显示条纹
  134. pagination: true, //启动分页
  135. pageSize: 10, //每页显示的记录数
  136. pageNumber: 1, //当前第几页
  137. pageList: [10, 20, 50, 100], //记录数可选列表
  138. search: false, //是否启用查询
  139. showColumns: false, //显示下拉框勾选要显示的列
  140. showRefresh: false, //显示刷新按钮
  141. sidePagination: "server", //表示服务端请求
  142. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  143. //设置为limit可以获取limit, offset, search, sort, order
  144. queryParamsType: "undefined",
  145. queryParams: function queryParams(params) { //设置查询参数
  146. var param = {
  147. pageIndex: params.pageNumber,
  148. pageSize: params.pageSize,
  149. start: $("#startTimes").val(),
  150. end: $("#endTimes").val(),
  151. token: $.cookie("token")
  152. };
  153. return param;
  154. },
  155. onLoadSuccess: function () { //加载成功时执行
  156. //layer.msg("加载成功");
  157. },
  158. onLoadError: function () { //加载失败时执行
  159. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  160. }
  161. });
  162. }
  163. //内容
  164. function GetCont(val) {
  165. if (val) {
  166. var str = '<div '
  167. if (val.length > 15) {
  168. str = str + ' title="' + val + '" ';
  169. val = val.substr(0, 10) + "...";
  170. }
  171. return str + '>' + val + '</div>';
  172. }
  173. else {
  174. return '';
  175. }
  176. }
  177. function GetLink(val) {
  178. return '<a class="xg" onclick="ckxq(\'' + val + '\')" title="' + val + '">' + val + '</a>';
  179. }
  180. function ckxq(val) {
  181. layer.open({
  182. type: 2,
  183. content: "../CommonHtml/WorkDatil.html?wid=" + val, //iframe的url,no代表不显示滚动条
  184. title: '工单详情',
  185. area: ['87%', '80%'], //宽高
  186. });
  187. }
  188. //代办搜索
  189. $(".db").click(function () {
  190. initTable();
  191. })
  192. //导出
  193. $('.export').click(function () {
  194. dcexcel(this);
  195. })
  196. function dcexcel(obj) {
  197. var url = huayi.config.callcenter_url + "WorkOrderReport/GetNotSatisfied?token=" + $.cookie("token");
  198. url += "&start=" + $("#startTimes").val() + "&end=" + $("#endTimes").val() + "&isExport=true";
  199. obj.href = url;
  200. }
  201. </script>
  202. </body>
  203. </html>