Brak opisu

phonelist.html 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <script src="../Script/Common/huayi.load.js"></script>
  6. <script src="../Script/Common/huayi.config.js"></script>
  7. <link rel="stylesheet" href="../css/init.css" />
  8. <title>号码列表</title>
  9. <style type="text/css">
  10. body {
  11. color: #000;
  12. font-family: 'Open Sans';
  13. font-size: 13px;
  14. }
  15. .m-kuang {
  16. width: 134px;
  17. background-color: #ffffff;
  18. background-image: none !important;
  19. filter: none !important;
  20. border: 1px solid #e5e5e5;
  21. outline: none;
  22. height: 34px !important;
  23. line-height: 30px;
  24. padding: 4px 6px;
  25. }
  26. .zt, .cz {
  27. display: block;
  28. height: 20px;
  29. width: 20px;
  30. margin: 0 auto;
  31. }
  32. .zt {
  33. background: url(../img/bf1.png) no-repeat;
  34. }
  35. .cz {
  36. background: url(../img/sz1.png) no-repeat;
  37. }
  38. .jia {
  39. display: inline-block;
  40. height: 16px;
  41. width: 16px;
  42. background: url(../img/jia.png) no-repeat;
  43. vertical-align: sub;
  44. margin-right: 3px;
  45. }
  46. .tool {
  47. margin: 20px 0;
  48. }
  49. .searchbox input {
  50. width: 99%;
  51. height: 98%;
  52. border: 0;
  53. outline: none;
  54. padding-left: 10px;
  55. }
  56. .secon {
  57. width: 80%;
  58. height: 30px;
  59. }
  60. .secl {
  61. width: 90%;
  62. height: 100%;
  63. float: left;
  64. margin: 0;
  65. border: 1px solid #eee;
  66. }
  67. .stb {
  68. display: block;
  69. width: 10%;
  70. background-color: #1ab394;
  71. background-image: url(../img/sear1.png);
  72. background-position: center center;
  73. background-repeat: no-repeat;
  74. height: 100%;
  75. float: left;
  76. border: 0;
  77. border-top-right-radius: 3px;
  78. border-bottom-right-radius: 3px;
  79. }
  80. .cz_down {
  81. position: absolute;
  82. top: 130%;
  83. left: -42px;
  84. z-index: 9999;
  85. display: none;
  86. float: left;
  87. list-style: none;
  88. text-shadow: none;
  89. margin: 0px;
  90. background: #fff;
  91. border: 1px solid #e5e5e5;
  92. text-align: left;
  93. padding: 5px;
  94. }
  95. .cz_down li > a {
  96. padding: 6px 0 6px 13px;
  97. color: #333;
  98. text-decoration: none;
  99. display: block;
  100. clear: both;
  101. font-weight: normal;
  102. line-height: 18px;
  103. white-space: nowrap;
  104. }
  105. .cz_down li:hover {
  106. background: #eee;
  107. }
  108. .cz_down .divider {
  109. height: 1px;
  110. margin: 9px 1px;
  111. overflow: hidden;
  112. background-color: #e5e5e5;
  113. border-bottom: 1px solid #e5e5e5;
  114. }
  115. .ztColor {
  116. padding: 2px;
  117. color: #fff;
  118. }
  119. .taskName {
  120. cursor: pointer;
  121. }
  122. .ztc {
  123. background: #fcb322;
  124. }
  125. .clw {
  126. background: #3cc051;
  127. }
  128. .clz {
  129. background: #57b5e3;
  130. }
  131. .dzx {
  132. background: #ed4e2a;
  133. }
  134. .ysc {
  135. background: #ef2e18;
  136. }
  137. </style>
  138. </head>
  139. <body>
  140. <div class="container-fluid">
  141. <div class="daoHang clearfix">
  142. <div class="dhLeft">
  143. <sapn>
  144. <i class="syIcon"></i>位置:
  145. <a id="ReIndex" href="javaScript:;">首页</a>&gt;
  146. <a href="javaScript:;" style="color: #1ab394;">号码列表</a>
  147. </sapn>
  148. </div>
  149. </div>
  150. <div class="tcon">
  151. <div class="tool clearfix">
  152. <div class="searchbox col-sm-2">
  153. <div class="secon clearfix">
  154. <p class="secl"><input type="text" placeholder="号码" class="phone" /></p>
  155. </div>
  156. </div>
  157. <div class="searchbox col-sm-2">
  158. <b>是否分配</b>
  159. <select name="" id="" class="m-kuang allotselect">
  160. <option value="-1">全部</option>
  161. <option value="0">未分配</option>
  162. <option value="1">已分配</option>
  163. </select>
  164. </div>
  165. <div class="searchbox col-sm-2">
  166. <b>分配坐席</b>
  167. <select name="" id="" class="m-kuang agentselect"></select>
  168. </div>
  169. <div class="searchbox col-sm-2">
  170. <b>呼叫状态</b>
  171. <select name="" id="" class="m-kuang callselect">
  172. <option value="-1">全部</option>
  173. <option value="0">未呼叫</option>
  174. <option value="1">已呼叫</option>
  175. </select>
  176. </div>
  177. <div class="searchbox col-sm-2">
  178. <b>接通状态</b>
  179. <select name="" id="" class="m-kuang connectselect">
  180. <option value="-1">全部</option>
  181. <option value="0">未接通</option>
  182. <option value="1">已接通</option>
  183. </select>
  184. </div>
  185. </div>
  186. <div class="anniu" style="margin: 20px 0;">
  187. <button class="btns search"><i class="fa fa-search"></i>查询</button>
  188. <!--<button class="btns "><i class="fa fa-sign-in"></i>导出</button>-->
  189. </div>
  190. <table id="table1" data-row-style="rowStyle" data-classes="table table-no-bordered" data-query-params="queryParams" data-height="600">
  191. <thead>
  192. <tr>
  193. <th data-field="phone" data-align="center" data-formatter="Code">序号</th>
  194. <th data-field="phone" data-align="left">号码</th>
  195. <th data-field="isallot" data-align="left">是否分配</th>
  196. <th data-field="agent" data-align="left">分配坐席</th>
  197. <th data-field="iscalled" data-align="left">呼叫状态</th>
  198. <th data-field="isconnected" data-align="center">接通状态</th>
  199. <th data-field="createtime" data-align="center">导入时间</th>
  200. </tr>
  201. </thead>
  202. </table>
  203. </div>
  204. </div>
  205. <script>
  206. var sear;
  207. var token = $.cookie("token");
  208. var table = $('#table1');
  209. var id = helper.request.queryString("id");
  210. //搜索功能
  211. $('.search').click(function () {
  212. initTable(token);
  213. });
  214. initTable();
  215. initAgent();
  216. function initTable(token) {
  217. //先销毁表格
  218. table.bootstrapTable('destroy');
  219. //初始化表格,动态从服务器加载数据
  220. table.bootstrapTable({
  221. method: "get", //使用get请求到服务器获取数据
  222. url: huayi.config.callcenter_url + "CallPlan/GetPhoneList",
  223. contentType: "application/x-www-form-urlencoded", striped: true,
  224. striped: true, //表格显示条纹
  225. pagination: true, //启动分页
  226. pageSize: 25, //每页显示的记录数
  227. pageNumber: 1, //当前第几页
  228. pageList: [25, 50], //记录数可选列表
  229. search: false, //是否启用查询
  230. showColumns: false, //显示下拉框勾选要显示的列
  231. showRefresh: false, //显示刷新按钮
  232. sidePagination: "server", //表示服务端请求
  233. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  234. //设置为limit可以获取limit, offset, search, sort, order
  235. queryParamsType: "undefined",
  236. queryParams: function queryParams(params) { //设置查询参数
  237. var param = {
  238. pageindex: params.pageNumber,
  239. pagesize: params.pageSize,
  240. token: token,
  241. id: id,
  242. phone: $(".phone").val(),
  243. fpstate: $(".allotselect").val(),
  244. hcstate: $(".callselect").val(),
  245. yjstate: $(".connectselect").val(),
  246. userid: $(".agentselect").val(),
  247. tasktype: 1
  248. };
  249. return param;
  250. },
  251. onLoadSuccess: function () { //加载成功时执行
  252. //layer.msg("加载成功");
  253. },
  254. onLoadError: function () { //加载失败时执行
  255. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  256. }
  257. });
  258. }
  259. function initAgent() {
  260. $.ajax({
  261. type: "post",
  262. url: huayi.config.callcenter_url + "UserAccount/GetSeatList",
  263. async: true,
  264. dataType: 'json',
  265. data: {
  266. token: token
  267. },
  268. success: function (data) {
  269. if (data.state.toLowerCase() == "success") {
  270. $('.agentselect').append('<option value="-1">全部</option>');
  271. $(data.data).each(function (i, n) {
  272. $('.agentselect').append('<option value="' + n.F_UserId + '">' + n.F_UserName + '</option>');
  273. })
  274. }
  275. }
  276. });
  277. }
  278. //编号
  279. function Code(val, row, index) {
  280. return index + 1;
  281. }
  282. </script>
  283. </body>
  284. </html>