伊川12345

Practical.html 9.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>落实情况</title>
  7. <script src="../Script/Common/huayi.load.js"></script>
  8. <script src="../Script/Common/huayi.config.js"></script>
  9. <link rel="stylesheet" href="../css/init.css" />
  10. <style>
  11. .clearfix:after {
  12. content: "";
  13. display: block;
  14. clear: both;
  15. }
  16. .kpi-top {
  17. background: #f3f3f4;
  18. height: 60px;
  19. padding: 10px 20px;
  20. }
  21. .topCon {
  22. float: right;
  23. margin-right: 45px;
  24. }
  25. .kpi-content h2 {
  26. font-size: 18px;
  27. margin-bottom: 20px;
  28. }
  29. .topCon input,
  30. select {
  31. width: 128px;
  32. padding: 2px 2PX 2PX 10PX;
  33. height: 28px;
  34. border: 1px solid #ebebeb;
  35. color: #1ab394;
  36. outline: none;
  37. vertical-align: middle;
  38. }
  39. .kpi-content {
  40. width: 90%;
  41. margin: 0 auto;
  42. }
  43. .kpi-table table {
  44. width: 100%;
  45. }
  46. .kpi-table table tr td {
  47. border: 1px solid #E0EEFE;
  48. }
  49. .kpi-table table thead tr td {
  50. background: #1ab394;
  51. color: #fff;
  52. font-size: 14px;
  53. }
  54. </style>
  55. </head>
  56. <body class="gray-bg" style="background: #fefefe;">
  57. <div class="hwkpi">
  58. <div class="daoHang clearfix">
  59. <div class="dhLeft">
  60. <sapn><i class="syIcon"></i>位置:
  61. <a id="ReIndex" href="javaScript:;">首页</a>&gt;
  62. <a href="javaScript:;">报表管理</a>&gt;
  63. <a href="" style="color: #000;">落实情况</a>
  64. </sapn>
  65. </div>
  66. </div>
  67. <div class="kpi-top clearfix">
  68. <div class="topCon">
  69. 形式分类:
  70. <select name="" id="xxlb" class="select">
  71. <option selected="selected" value="">请选择</option>
  72. </select>
  73. 内容大类:
  74. <select name="" id="tsdl" class="select">
  75. <option selected="selected" value="">请选择</option>
  76. </select>
  77. 内容小类:
  78. <select name="" id="tsxl" class="select">
  79. <option selected="selected" value="">请选择</option>
  80. </select>
  81. 年:
  82. <input type="text" class="laydate-icon" id="year" /> 月份:
  83. <select id="month">
  84. <option value="01">1</option>
  85. <option value="02">2</option>
  86. <option value="03">3</option>
  87. <option value="04">4</option>
  88. <option value="05">5</option>
  89. <option value="06">6</option>
  90. <option value="07">7</option>
  91. <option value="08">8</option>
  92. <option value="09">9</option>
  93. <option value="10">10</option>
  94. <option value="11">11</option>
  95. <option value="12">12</option>
  96. </select>
  97. <button class="btns sear">搜索</button>
  98. <a class="btns export">导出</a>
  99. </div>
  100. </div>
  101. <div class="kpi-content">
  102. <div style="width: 100%;padding: 10px;">
  103. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  104. <thead>
  105. <!--<tr>
  106. <th data-field="F_WorkOrderId" data-align="center">登记编号</th>
  107. <th data-field="F_CusInfo" data-align="center">投诉人电话</th>
  108. <th data-field="F_RegDate" data-align="center">投诉时间</th>
  109. <th data-field="F_DeptName" data-align="center">办理部门</th>
  110. <th data-field="F_BackDate" data-align="center">办结时间</th>
  111. <th data-field="F_ComContent" data-align="center" data-formatter="cutContent">内容摘要</th>
  112. <th data-field="F_Result" data-align="center" data-formatter="GetCont">办理结果</th>
  113. <th data-field="F_InfoSource" data-align="center">备注</th>
  114. </tr>-->
  115. </thead>
  116. <tbody class="list"></tbody>
  117. </table>
  118. </div>
  119. </div>
  120. </div>
  121. <script src="../css/laydate/laydate.js"></script>
  122. <script src="../js/echarts.common.min.js"></script>
  123. <script src="http://cdn.hcharts.cn/highcharts/highcharts.js"></script>
  124. <script>
  125. $(function() {
  126. laydate.skin('molv');
  127. laydate({
  128. elem: '#year',
  129. event: 'focus',
  130. format: 'YYYY'
  131. });
  132. var resultData1;
  133. $('#year').val(laydate.now(0, 'YYYY'));
  134. $('#month').val(laydate.now(0, 'YYYYMM').substr(4, 2));
  135. initTable();
  136. $(".sear").click(function() {
  137. initTable();
  138. })
  139. //表格
  140. function initTable() {
  141. $.ajax({
  142. url: huayi.config.callcenter_url + 'Business/GetDealList',
  143. type: 'get',
  144. data: {
  145. year: $("#year").val(),
  146. month: $("#month").val(),
  147. type: $("#xxlb").val(),
  148. bigtype: $("#tsdl").val(),
  149. smalltype: $("#tsxl").val(),
  150. token: $.cookie("token")
  151. },
  152. dataType: "json",
  153. async: true,
  154. success: function(returnValue) {
  155. //异步获取数据
  156. resultData1 = returnValue.data.data;
  157. $('#orderlist').bootstrapTable('destroy');
  158. $('#orderlist').bootstrapTable({
  159. data: resultData1,
  160. method: "get",
  161. dataType: "json",
  162. striped: true, //隔行变色
  163. cache: false, //是否使用缓存
  164. showColumns: false, // 列
  165. pagination: true, //分页
  166. sortable: false, //是否启用排序
  167. singleSelect: false,
  168. search: false, //显示搜索框
  169. buttonsAlign: "right", //按钮对齐方式
  170. showRefresh: false, //是否显示刷新按钮
  171. sidePagination: "client", //客户端处理分页 服务端:server
  172. pageNumber: "1",
  173.    //启用插件时默认页数
  174. pageSize: "10",
  175.    //启用插件是默认每页的数据条数
  176. pageList: [10, 25, 50, 100],
  177.    //自定义每页的数量
  178. undefinedText: '--',
  179.  
  180. uniqueId: "id", //每一行的唯一标识,一般为主键列
  181. queryParamsType: '',
  182. columns: [
  183. {
  184. title: '序号',
  185. field: 'row',
  186. align: 'center',
  187. valign: 'middle',
  188. },
  189. {
  190. title: '登记编号',
  191. field: 'F_WorkOrderId',
  192. align: 'center',
  193. valign: 'middle',
  194. },
  195. //{
  196. // title: '投诉人及投诉人电话',
  197. // field: 'F_CusInfo',
  198. // align: 'center',
  199. //},
  200. //{
  201. // title: '投诉时间',
  202. // field: 'F_RegDate',
  203. // align: 'center',
  204. //},
  205. {
  206. title: '办理部门',
  207. field: 'F_DeptName',
  208. align: 'center',
  209. },
  210. {
  211. title: '办结时间',
  212. field: 'F_BackDate',
  213. align: 'center',
  214. },
  215. {
  216. title: '内容摘要',
  217. field: 'F_ComContent',
  218. align: 'center',
  219. formatter: function(val) {
  220. if(val) {
  221. var str = '<div '
  222. if(val.length > 5) {
  223. str = str + ' title="' + val + '" ';
  224. val = val.substr(0, 10) + "...";
  225. }
  226. return str + '>' + val + '</div>';
  227. } else {
  228. return '';
  229. }
  230. }
  231. },
  232. {
  233. title: '办理结果',
  234. field: 'F_Result',
  235. align: 'center',
  236. formatter: function(val) {
  237. if(val) {
  238. var str = '<div '
  239. if(val.length > 5) {
  240. str = str + ' title="' + val + '" ';
  241. val = val.substr(0, 10) + "...";
  242. }
  243. return str + '>' + val + '</div>';
  244. } else {
  245. return '';
  246. }
  247. }
  248. },
  249. {
  250. title: '备注',
  251. field: 'F_InfoSource',
  252. align: 'center',
  253. }
  254. ]
  255. });
  256. }
  257. });
  258. }
  259. //信息分类
  260. $("#xxlb").empty();
  261. $("#xxlb").append('<option selected="selected" value="">请选择</option>');
  262. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  263. "token": $.cookie("token"),
  264. id: 2
  265. }, function(data) {
  266. if(data.state.toLowerCase() == "success") {
  267. var content = data.data;
  268. $(content).each(function(i, n) {
  269. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo($("#xxlb"));
  270. })
  271. }
  272. $("#xxlb").change(function() {
  273. $("#tsxl").empty();
  274. $("#tsxl").append('<option selected="selected" value="">请选择</option>');
  275. loadDic($("#tsdl"), $("#xxlb").val());
  276. });
  277. $("#tsdl").change(function() {
  278. loadDic($("#tsxl"), $("#tsdl").val());
  279. });
  280. })
  281. //加载字典
  282. function loadDic(obj, pid) {
  283. obj.empty();
  284. obj.append('<option selected="selected" value="">请选择</option>');
  285. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListByParentId", {
  286. "token": $.cookie("token"),
  287. pid: pid
  288. }, function(data) {
  289. if(data.state.toLowerCase() == "success") {
  290. var content = data.data;
  291. $(content).each(function(i, n) {
  292. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
  293. })
  294. }
  295. })
  296. }
  297. $('.export').click(function(){
  298. dcexcel(this);
  299. })
  300. function dcexcel(obj) {
  301. var url = huayi.config.callcenter_url + "Business/GetDealList?token=" + $.cookie("token");
  302. url += "&year=" + $("#year").val() + "&month=" + $("#month").val()+ "&type=" + $("#xxlb").val();
  303. url +="&bigtype=" + $("#tsdl").val() + "&malltype=" + $("#tsxl").val()+ "&isdc=1";
  304. obj.href = url;
  305. }
  306. })
  307. </script>
  308. </body>
  309. </html>