| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>通话记录管理</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link href="../css/init.css" rel="stylesheet" />
- <link href="../css/Table/table1.css" rel="stylesheet" />
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <script src="../My97DatePicker/WdatePicker.js"></script>
- <script src="../css/laydate/laydate.js"></script>
- <style>
- body {
- font-family: "微软雅黑";
- font-size: 14px;
- }
- ul li {
- list-style: none;
- float: left;
- }
- .fr {
- float: right;
- }
- /*标头*/
- .th-box {
- width: 100%;
- padding: 5px;
- border-bottom: 1px solid #e7eaec;
- }
- .th-bar {
- height: 40px;
- }
- .sc_btn {
- color: #fff;
- font-size: 12px;
- margin-left: 15px;
- box-sizing: border-box;
- background: #00a1cb;
- padding: 6px 10px;
- outline: none;
- border-width: 0px;
- border-style: initial;
- border-color: initial;
- border-image: initial;
- border-radius: 3px;
- }
- .seach-box ul {
- overflow: hidden;
- }
- .seach-box ul li {
- margin-right: 5px;
- }
- .photo {
- /*background-color: #FFF;
- background-image: none;*/
- border: 1px solid #e5e6e7;
- border-radius: 1px;
- color: inherit;
- padding: 6px 12px;
- }
- .selects {
- background-color: #FFF;
- background-image: none;
- border: 1px solid #e5e6e7;
- border-radius: 1px;
- color: inherit;
- padding: 6px 12px;
- }
- #Select:focus {
- outline: none;
- border-color: #00BFFF;
- }
- input:focus {
- outline: none;
- border-color: #00BFFF;
- }
- .spiner-example {
- position: absolute;
- top: 50%;
- left: 50%;
- z-index: 111;
- margin-left: -85px;
- margin-top: -100px;
- display: none;
- }
- .sk-spinner-three-bounce {
- width: 170px !important;
- }
- .sk-spinner p {
- display: inline-block;
- font-size: 18px;
- margin-left: 10px;
- }
- .gjsu ul {
- overflow: hidden;
- }
- .gjsu ul li {
- width: 50%;
- margin-bottom: 5px;
- padding-top: 10px;
- }
- .selects {
- width: 105px;
- }
- .tc {
- margin-top: 30px;
- text-align: center;
- }
- </style>
- </head>
- <body class="gray-bg">
- <div class="wrapper wrapper-content animated fadeInRight">
- <div class="daoHang clearfix">
- <div class="dhLeft">
- <sapn><i class="syIcon"></i>位置:<a href="javaScript:;" id="ReIndex">首页</a>><a href="javaScript:;">系统管理</a>><a href="" class="nowPosition">市民资料管理</a></sapn>
- </div>
- <div class="dhRight">
- <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
- </div>
- </div>
- <div class="th-box">
- <div class="th-bar">
- <!--<a class="sc_btn btn-info" id="moves">批量删除</a>-->
- <div class="seach-box ">
- <ul>
-
- <li>电话号码:<input id="tel" class="photo x-color" type="text" /></li>
- <li>市民姓名:<input id="tels" class="photo x-color" type="text" /></li>
-
- <li>
- <a class="sc_btn Ss Block">搜索</a>
- </li>
- <!--<li>
- <a class="sc_btn Gj Block">高级搜索</a>
- </li>-->
- </ul>
- </div>
- </div>
- </div>
- <div style="width: 100%;padding: 10px;">
- <table id="list" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
- <thead>
- <tr>
- <th data-field="CallNumber" data-align="center" data-formatter="Code">编号</th>
- <th data-field="F_ConName" data-align="center">联系人</th>
- <th data-field="F_CusPhone" data-align="center">投诉号码</th>
- <th data-field="F_CusName" data-align="center">投诉人</th>
- <th data-field="F_ConPhone" data-align="center">联系号码</th>
- <th data-field="F_CusSex" data-align="center">性别</th>
- <th data-field="F_Email" data-align="center">邮箱</th>
- <th data-field="F_CusAddress" data-align="center">地址</th>
- <th data-field="gdCount" data-align="center" data-formatter="Codes">工单量</th>
- <th data-field="ldCount" data-align="center" >来电量</th>
- </tr>
- </thead>
- </table>
- <!--高级搜索框-->
- </div>
- </div>
- <script>
- $(document).ready(function () {
-
- initTable();
- /*获取选中行对象*/
- $('#list').on("click-row.bs.table", function (e, row, ele) {
- $('.success').removeClass('success'); //去除之前选中的行的,选中样式
- $(ele).addClass('success'); //添加当前选中的 success样式用于区别
- });
- //搜索
- $(".Ss").click(function () {
- initTable();
- });
- })
-
- function initTable() {
- //先销毁表格
- $('#list').bootstrapTable('destroy');
- //初始化表格,动态从服务器加载数据
- $("#list").bootstrapTable({
- method: "get", //使用get请求到服务器获取数据
- url: huayi.config.callcenter_url + "Customer/GetPublicList?", //获取数据的Servlet地址
- contentType: "application/x-www-form-urlencoded",striped: true, //表格显示条纹
- pagination: true, //启动分页
- pageSize: 10, //每页显示的记录数
- pageNumber: 1, //当前第几页
- pageList: [10, 20, 50, 100], //记录数可选列表
- search: false, //是否启用查询
- showColumns: false, //显示下拉框勾选要显示的列
- showRefresh: false, //显示刷新按钮
- sidePagination: "server", //表示服务端请求
- //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
- //设置为limit可以获取limit, offset, search, sort, order
- queryParamsType: "undefined",
- queryParams: function queryParams(params) { //设置查询参数
- var param = {
- page: params.pageNumber,
- pagesize: params.pageSize,
- phone:$("#tel").val(),
- name:$("#tels").val(),
- token: $.cookie("token")
- };
-
- return param;
- },
- onLoadSuccess: function () { //加载成功时执行
- //layer.msg("加载成功");
- },
- onLoadError: function () { //加载失败时执行
- //layer.msg("加载数据失败", { time: 1500, icon: 2 });
- }
- });
- }
- //编号
- function Code(val,row,index){
- return index+1;
- }
-
- function Codes(val,row,index){
- return '<a onclick="tk('+row.F_CusPhone+')">'+val+'</a>';
- }
- ////回访
- //function dealType(val) {
- // if (val == 1) {
- // return '<div >已回访</div>';
- // } else {
- // return '';
- // }
- //}
- //处理
- function isDeal(val) {
- if (val == 0) {
- return '<div >未处理</div>';
- } else {
- return '<div >已处理</div>';
- }
- }
-
- //
- function tk(str){
- layer.open({
- type: 2,
- content: "../Appeal/Lawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
- title: '查询工单',
- area: ['87%', '80%'], //宽高
- });
- }
- </script>
- </body>
- </html>
|