虞城12345_前端

peopleMage.html 8.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  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="daoHang clearfix">
  114. <div class="dhLeft">
  115. <sapn><i class="syIcon"></i>位置:<a href="javaScript:;" id="ReIndex">首页</a>&gt;<a href="javaScript:;">系统管理</a>&gt;<a href="" class="nowPosition">市民资料管理</a></sapn>
  116. </div>
  117. <div class="dhRight">
  118. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  119. </div>
  120. </div>
  121. <div class="wrapper wrapper-content">
  122. <div class="th-top clearfix">
  123. <div class="form-inline th-bar clearfix">
  124. <div class="time-box form-group" >
  125. <i class="tub fa fa-search"></i>
  126. <input class="form-control" type="text" id="tel" placeholder="请输入电话号码"/>
  127. </div>
  128. <div class="time-box form-group" >
  129. <i class="tub fa fa-search"></i>
  130. <input class="form-control" type="text" id="tels" placeholder="请输入市民姓名"/>
  131. </div>
  132. <div class="form-group tool_bars pull-right">
  133. <a class="sc_btn Ss Block">搜索</a>
  134. </div>
  135. </div>
  136. </div>
  137. <div style="width: 100%;">
  138. <table id="list" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  139. <thead>
  140. <tr>
  141. <th data-field="CallNumber" data-align="center" data-formatter="Code">编号</th>
  142. <th data-field="F_ConName" data-align="center">联系人</th>
  143. <th data-field="F_CusPhone" data-align="center">投诉号码</th>
  144. <th data-field="F_CusName" data-align="center">投诉人</th>
  145. <th data-field="F_ConPhone" data-align="center">联系号码</th>
  146. <th data-field="F_CusSex" data-align="center">性别</th>
  147. <th data-field="F_Email" data-align="center">邮箱</th>
  148. <th data-field="F_CusAddress" data-align="center">地址</th>
  149. <th data-field="gdCount" data-align="center" data-formatter="Codes">工单量</th>
  150. <th data-field="ldCount" data-align="center" >来电量</th>
  151. </tr>
  152. </thead>
  153. </table>
  154. <!--高级搜索框-->
  155. </div>
  156. </div>
  157. <script>
  158. $(document).ready(function () {
  159. initTable();
  160. /*获取选中行对象*/
  161. $('#list').on("click-row.bs.table", function (e, row, ele) {
  162. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  163. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  164. });
  165. //搜索
  166. $(".Ss").click(function () {
  167. initTable();
  168. });
  169. })
  170. function initTable() {
  171. //先销毁表格
  172. $('#list').bootstrapTable('destroy');
  173. //初始化表格,动态从服务器加载数据
  174. $("#list").bootstrapTable({
  175. method: "get", //使用get请求到服务器获取数据
  176. url: huayi.config.callcenter_url + "Customer/GetPublicList?", //获取数据的Servlet地址
  177. contentType: "application/x-www-form-urlencoded",striped: true, //表格显示条纹
  178. pagination: true, //启动分页
  179. pageSize: 10, //每页显示的记录数
  180. pageNumber: 1, //当前第几页
  181. pageList: [10, 20, 50, 100], //记录数可选列表
  182. search: false, //是否启用查询
  183. showColumns: false, //显示下拉框勾选要显示的列
  184. showRefresh: false, //显示刷新按钮
  185. sidePagination: "server", //表示服务端请求
  186. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  187. //设置为limit可以获取limit, offset, search, sort, order
  188. queryParamsType: "undefined",
  189. queryParams: function queryParams(params) { //设置查询参数
  190. var param = {
  191. page: params.pageNumber,
  192. pagesize: params.pageSize,
  193. phone:$("#tel").val(),
  194. name:$("#tels").val(),
  195. token: $.cookie("token")
  196. };
  197. return param;
  198. },
  199. onLoadSuccess: function () { //加载成功时执行
  200. //layer.msg("加载成功");
  201. },
  202. onLoadError: function () { //加载失败时执行
  203. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  204. }
  205. });
  206. }
  207. //编号
  208. function Code(val,row,index){
  209. return index+1;
  210. }
  211. function Codes(val,row,index){
  212. return '<a onclick="tk('+row.F_CusPhone+')">'+val+'</a>';
  213. }
  214. ////回访
  215. //function dealType(val) {
  216. // if (val == 1) {
  217. // return '<div >已回访</div>';
  218. // } else {
  219. // return '';
  220. // }
  221. //}
  222. //处理
  223. function isDeal(val) {
  224. if (val == 0) {
  225. return '<div >未处理</div>';
  226. } else {
  227. return '<div >已处理</div>';
  228. }
  229. }
  230. //
  231. function tk(str){
  232. layer.open({
  233. type: 2,
  234. content: "../Appeal/Lawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  235. title: '查询工单',
  236. area: ['87%', '80%'], //宽高
  237. });
  238. }
  239. </script>
  240. </body>
  241. </html>