Sin descripción

peopleMage.html 8.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  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_CusPhone" data-align="center">投诉号码</th>
  146. <th data-field="F_CusName" data-align="center">投诉人</th>
  147. <th data-field="F_ConPhone" 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. $(document).ready(function () {
  161. initTable();
  162. /*获取选中行对象*/
  163. $('#list').on("click-row.bs.table", function (e, row, ele) {
  164. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  165. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  166. });
  167. //搜索
  168. $(".Ss").click(function () {
  169. initTable();
  170. });
  171. })
  172. function initTable() {
  173. //先销毁表格
  174. $('#list').bootstrapTable('destroy');
  175. //初始化表格,动态从服务器加载数据
  176. $("#list").bootstrapTable({
  177. method: "get", //使用get请求到服务器获取数据
  178. url: huayi.config.callcenter_url + "Customer/GetPublicList?", //获取数据的Servlet地址
  179. contentType: "application/x-www-form-urlencoded",striped: true, //表格显示条纹
  180. pagination: true, //启动分页
  181. pageSize: 10, //每页显示的记录数
  182. pageNumber: 1, //当前第几页
  183. pageList: [10, 20, 50, 100], //记录数可选列表
  184. search: false, //是否启用查询
  185. showColumns: false, //显示下拉框勾选要显示的列
  186. showRefresh: false, //显示刷新按钮
  187. sidePagination: "server", //表示服务端请求
  188. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  189. //设置为limit可以获取limit, offset, search, sort, order
  190. queryParamsType: "undefined",
  191. queryParams: function queryParams(params) { //设置查询参数
  192. var param = {
  193. page: params.pageNumber,
  194. pagesize: params.pageSize,
  195. phone:$("#tel").val(),
  196. name:$("#tels").val(),
  197. token: $.cookie("token")
  198. };
  199. return param;
  200. },
  201. onLoadSuccess: function () { //加载成功时执行
  202. //layer.msg("加载成功");
  203. },
  204. onLoadError: function () { //加载失败时执行
  205. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  206. }
  207. });
  208. }
  209. //编号
  210. function Code(val,row,index){
  211. return index+1;
  212. }
  213. function Codes(val,row,index){
  214. return '<a onclick="tk('+row.F_CusPhone+')">'+val+'</a>';
  215. }
  216. ////回访
  217. //function dealType(val) {
  218. // if (val == 1) {
  219. // return '<div >已回访</div>';
  220. // } else {
  221. // return '';
  222. // }
  223. //}
  224. //处理
  225. function isDeal(val) {
  226. if (val == 0) {
  227. return '<div >未处理</div>';
  228. } else {
  229. return '<div >已处理</div>';
  230. }
  231. }
  232. //
  233. function tk(str){
  234. layer.open({
  235. type: 2,
  236. content: "../Appeal/Lawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  237. title: '查询工单',
  238. area: ['87%', '80%'], //宽高
  239. });
  240. }
  241. </script>
  242. </body>
  243. </html>