12345市长热线标准版-前端

peopleMage.html 8.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  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. <link href="../css/init.css" rel="stylesheet" />
  8. <link href="../css/Table/table1.css" rel="stylesheet" />
  9. <script src="../Script/Common/huayi.load.js"></script>
  10. <script src="../Script/Common/huayi.config.js"></script>
  11. <script src="../My97DatePicker/WdatePicker.js"></script>
  12. <script src="../css/laydate/laydate.js"></script>
  13. <style>
  14. body {
  15. font-family: "微软雅黑";
  16. font-size: 14px;
  17. }
  18. ul li {
  19. list-style: none;
  20. float: left;
  21. }
  22. .fr {
  23. float: right;
  24. }
  25. /*标头*/
  26. .th-box {
  27. width: 100%;
  28. padding: 5px;
  29. border-bottom: 1px solid #e7eaec;
  30. }
  31. .th-bar {
  32. height: 40px;
  33. }
  34. .sc_btn {
  35. color: #fff;
  36. font-size: 12px;
  37. margin-left: 15px;
  38. box-sizing: border-box;
  39. background: #00a1cb;
  40. padding: 6px 10px;
  41. outline: none;
  42. border-width: 0px;
  43. border-style: initial;
  44. border-color: initial;
  45. border-image: initial;
  46. border-radius: 3px;
  47. }
  48. .seach-box ul {
  49. overflow: hidden;
  50. }
  51. .seach-box ul li {
  52. margin-right: 5px;
  53. }
  54. .photo {
  55. /*background-color: #FFF;
  56. background-image: none;*/
  57. border: 1px solid #e5e6e7;
  58. border-radius: 1px;
  59. color: inherit;
  60. padding: 6px 12px;
  61. }
  62. .selects {
  63. background-color: #FFF;
  64. background-image: none;
  65. border: 1px solid #e5e6e7;
  66. border-radius: 1px;
  67. color: inherit;
  68. padding: 6px 12px;
  69. }
  70. #Select:focus {
  71. outline: none;
  72. border-color: #00BFFF;
  73. }
  74. input:focus {
  75. outline: none;
  76. border-color: #00BFFF;
  77. }
  78. .spiner-example {
  79. position: absolute;
  80. top: 50%;
  81. left: 50%;
  82. z-index: 111;
  83. margin-left: -85px;
  84. margin-top: -100px;
  85. display: none;
  86. }
  87. .sk-spinner-three-bounce {
  88. width: 170px !important;
  89. }
  90. .sk-spinner p {
  91. display: inline-block;
  92. font-size: 18px;
  93. margin-left: 10px;
  94. }
  95. .gjsu ul {
  96. overflow: hidden;
  97. }
  98. .gjsu ul li {
  99. width: 50%;
  100. margin-bottom: 5px;
  101. padding-top: 10px;
  102. }
  103. .selects {
  104. width: 105px;
  105. }
  106. .tc {
  107. margin-top: 30px;
  108. text-align: center;
  109. }
  110. </style>
  111. </head>
  112. <body class="gray-bg">
  113. <div class="wrapper wrapper-content animated fadeInRight">
  114. <div class="daoHang clearfix">
  115. <div class="dhLeft">
  116. <sapn><i class="syIcon"></i>位置:<a href="javaScript:;" id="ReIndex">首页</a>&gt;<a href="javaScript:;">系统管理</a>&gt;<a href="" class="nowPosition">市民资料管理</a></sapn>
  117. </div>
  118. <div class="dhRight">
  119. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  120. </div>
  121. </div>
  122. <div class="th-box">
  123. <div class="th-bar">
  124. <!--<a class="sc_btn btn-info" id="moves">批量删除</a>-->
  125. <div class="seach-box ">
  126. <ul>
  127. <li>电话号码:<input id="tel" class="photo x-color" type="text" /></li>
  128. <li>市民姓名:<input id="tels" class="photo x-color" type="text" /></li>
  129. <li>
  130. <a class="sc_btn Ss Block">搜索</a>
  131. </li>
  132. <!--<li>
  133. <a class="sc_btn Gj Block">高级搜索</a>
  134. </li>-->
  135. </ul>
  136. </div>
  137. </div>
  138. </div>
  139. <div style="width: 100%;padding: 10px;">
  140. <table id="list" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  141. <thead>
  142. <tr>
  143. <th data-field="CallNumber" data-align="center" data-formatter="Code">编号</th>
  144. <th data-field="F_ConName" data-align="center">联系人</th>
  145. <th data-field="F_ConPhone" data-align="center">联系号码</th>
  146. <th data-field="F_CusName" data-align="center">投诉人</th>
  147. <th data-field="F_CusPhone" data-align="center">投诉号码</th>
  148. <th data-field="F_CusSex" data-align="center">性别</th>
  149. <th data-field="F_Email" data-align="center">邮箱</th>
  150. <th data-field="F_CusAddress" data-align="center">地址</th>
  151. <th data-field="gdCount" data-align="center" data-formatter="Codes">工单量</th>
  152. <th data-field="ldCount" data-align="center" >来电量</th>
  153. </tr>
  154. </thead>
  155. </table>
  156. <!--高级搜索框-->
  157. </div>
  158. </div>
  159. <script>
  160. //返回首页
  161. $('#ReIndex').click(function(){
  162. top.home_index();
  163. })
  164. $(document).ready(function () {
  165. initTable();
  166. /*获取选中行对象*/
  167. $('#list').on("click-row.bs.table", function (e, row, ele) {
  168. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  169. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  170. });
  171. //搜索
  172. $(".Ss").click(function () {
  173. initTable();
  174. });
  175. })
  176. function initTable() {
  177. //先销毁表格
  178. $('#list').bootstrapTable('destroy');
  179. //初始化表格,动态从服务器加载数据
  180. $("#list").bootstrapTable({
  181. method: "get", //使用get请求到服务器获取数据
  182. url: huayi.config.callcenter_url + "Customer/GetPublicList?", //获取数据的Servlet地址
  183. contentType: "application/x-www-form-urlencoded",striped: true, //表格显示条纹
  184. pagination: true, //启动分页
  185. pageSize: 10, //每页显示的记录数
  186. pageNumber: 1, //当前第几页
  187. pageList: [10, 20, 50, 100], //记录数可选列表
  188. search: false, //是否启用查询
  189. showColumns: false, //显示下拉框勾选要显示的列
  190. showRefresh: false, //显示刷新按钮
  191. sidePagination: "server", //表示服务端请求
  192. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  193. //设置为limit可以获取limit, offset, search, sort, order
  194. queryParamsType: "undefined",
  195. queryParams: function queryParams(params) { //设置查询参数
  196. var param = {
  197. page: params.pageNumber,
  198. pagesize: params.pageSize,
  199. phone:$("#tel").val(),
  200. name:$("#tels").val(),
  201. token: $.cookie("token")
  202. };
  203. return param;
  204. },
  205. onLoadSuccess: function () { //加载成功时执行
  206. //layer.msg("加载成功");
  207. },
  208. onLoadError: function () { //加载失败时执行
  209. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  210. }
  211. });
  212. }
  213. //编号
  214. function Code(val,row,index){
  215. return index+1;
  216. }
  217. function Codes(val,row,index){
  218. return '<a onclick="tk('+row.F_CusPhone+')">'+val+'</a>';
  219. }
  220. ////回访
  221. //function dealType(val) {
  222. // if (val == 1) {
  223. // return '<div >已回访</div>';
  224. // } else {
  225. // return '';
  226. // }
  227. //}
  228. //处理
  229. function isDeal(val) {
  230. if (val == 0) {
  231. return '<div >未处理</div>';
  232. } else {
  233. return '<div >已处理</div>';
  234. }
  235. }
  236. //
  237. function tk(str){
  238. layer.open({
  239. type: 2,
  240. content: "../Appeal/Lawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  241. title: '查询工单',
  242. area: ['87%', '80%'], //宽高
  243. });
  244. }
  245. </script>
  246. </body>
  247. </html>