| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>落实情况</title>
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <link rel="stylesheet" href="../css/init.css" />
- <style>
- .clearfix:after {
- content: "";
- display: block;
- clear: both;
- }
-
- .kpi-top {
- background: #f3f3f4;
- height: 60px;
- padding: 10px 20px;
- }
-
- .topCon {
- float: right;
- margin-right: 45px;
- }
-
- .kpi-content h2 {
- font-size: 18px;
- margin-bottom: 20px;
- }
-
- .topCon input,
- select {
- width: 128px;
- padding: 2px 2PX 2PX 10PX;
- height: 28px;
- border: 1px solid #ebebeb;
- color: #1ab394;
- outline: none;
- vertical-align: middle;
- }
-
- .kpi-content {
- width: 90%;
- margin: 0 auto;
- }
-
- .kpi-table table {
- width: 100%;
- }
-
- .kpi-table table tr td {
- border: 1px solid #E0EEFE;
- }
-
- .kpi-table table thead tr td {
- background: #1ab394;
- color: #fff;
- font-size: 14px;
- }
- </style>
- </head>
- <body class="gray-bg" style="background: #fefefe;">
- <div class="hwkpi">
- <div class="daoHang clearfix">
- <div class="dhLeft">
- <sapn><i class="syIcon"></i>位置:
- <a id="ReIndex" href="javaScript:;">首页</a>>
- <a href="javaScript:;">报表管理</a>>
- <a href="" style="color: #000;">落实情况</a>
- </sapn>
- </div>
- </div>
- <div class="kpi-top clearfix">
- <div class="topCon">
- 形式分类:
- <select name="" id="xxlb" class="select">
- <option selected="selected" value="">请选择</option>
- </select>
- 内容大类:
- <select name="" id="tsdl" class="select">
- <option selected="selected" value="">请选择</option>
- </select>
- 内容小类:
- <select name="" id="tsxl" class="select">
- <option selected="selected" value="">请选择</option>
- </select>
- 年:
- <input type="text" class="laydate-icon" id="year" /> 月份:
- <select id="month">
- <option value="01">1</option>
- <option value="02">2</option>
- <option value="03">3</option>
- <option value="04">4</option>
- <option value="05">5</option>
- <option value="06">6</option>
- <option value="07">7</option>
- <option value="08">8</option>
- <option value="09">9</option>
- <option value="10">10</option>
- <option value="11">11</option>
- <option value="12">12</option>
- </select>
- <button class="btns sear">搜索</button>
- <a class="btns export">导出</a>
- </div>
- </div>
- <div class="kpi-content">
- <div style="width: 100%;padding: 10px;">
- <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
- <thead>
- <!--<tr>
- <th data-field="F_WorkOrderId" data-align="center">登记编号</th>
- <th data-field="F_CusInfo" data-align="center">投诉人电话</th>
- <th data-field="F_RegDate" data-align="center">投诉时间</th>
- <th data-field="F_DeptName" data-align="center">办理部门</th>
- <th data-field="F_BackDate" data-align="center">办结时间</th>
- <th data-field="F_ComContent" data-align="center" data-formatter="cutContent">内容摘要</th>
- <th data-field="F_Result" data-align="center" data-formatter="GetCont">办理结果</th>
- <th data-field="F_InfoSource" data-align="center">备注</th>
- </tr>-->
- </thead>
- <tbody class="list"></tbody>
- </table>
- </div>
- </div>
- </div>
- <script src="../css/laydate/laydate.js"></script>
- <script src="../js/echarts.common.min.js"></script>
- <script src="http://cdn.hcharts.cn/highcharts/highcharts.js"></script>
- <script>
- $(function() {
- laydate.skin('molv');
- laydate({
- elem: '#year',
- event: 'focus',
- format: 'YYYY'
- });
- var resultData1;
-
- $('#year').val(laydate.now(0, 'YYYY'));
- $('#month').val(laydate.now(0, 'YYYYMM').substr(4, 2));
- initTable();
- $(".sear").click(function() {
- initTable();
- })
- //表格
- function initTable() {
- $.ajax({
- url: huayi.config.callcenter_url + 'Business/GetDealList',
- type: 'get',
- data: {
- year: $("#year").val(),
- month: $("#month").val(),
- type: $("#xxlb").val(),
- bigtype: $("#tsdl").val(),
- smalltype: $("#tsxl").val(),
- token: $.cookie("token")
- },
- dataType: "json",
- async: true,
- success: function(returnValue) {
- //异步获取数据
- resultData1 = returnValue.data.data;
- $('#orderlist').bootstrapTable('destroy');
- $('#orderlist').bootstrapTable({
- data: resultData1,
- method: "get",
- dataType: "json",
- striped: true, //隔行变色
- cache: false, //是否使用缓存
- showColumns: false, // 列
- pagination: true, //分页
- sortable: false, //是否启用排序
- singleSelect: false,
- search: false, //显示搜索框
- buttonsAlign: "right", //按钮对齐方式
- showRefresh: false, //是否显示刷新按钮
- sidePagination: "client", //客户端处理分页 服务端:server
- pageNumber: "1",
- //启用插件时默认页数
- pageSize: "10",
- //启用插件是默认每页的数据条数
- pageList: [10, 25, 50, 100],
- //自定义每页的数量
- undefinedText: '--',
-
- uniqueId: "id", //每一行的唯一标识,一般为主键列
- queryParamsType: '',
- columns: [
- {
- title: '序号',
- field: 'row',
- align: 'center',
- valign: 'middle',
- },
- {
- title: '登记编号',
- field: 'F_WorkOrderId',
- align: 'center',
- valign: 'middle',
- },
- //{
- // title: '投诉人及投诉人电话',
- // field: 'F_CusInfo',
- // align: 'center',
- //},
- //{
- // title: '投诉时间',
- // field: 'F_RegDate',
- // align: 'center',
- //},
- {
- title: '办理部门',
- field: 'F_DeptName',
- align: 'center',
- },
- {
- title: '办结时间',
- field: 'F_BackDate',
- align: 'center',
- },
- {
- title: '内容摘要',
- field: 'F_ComContent',
- align: 'center',
- formatter: function(val) {
- if(val) {
- var str = '<div '
- if(val.length > 5) {
- str = str + ' title="' + val + '" ';
- val = val.substr(0, 10) + "...";
- }
- return str + '>' + val + '</div>';
- } else {
- return '';
- }
- }
- },
- {
- title: '办理结果',
- field: 'F_Result',
- align: 'center',
- formatter: function(val) {
- if(val) {
- var str = '<div '
- if(val.length > 5) {
- str = str + ' title="' + val + '" ';
- val = val.substr(0, 10) + "...";
- }
- return str + '>' + val + '</div>';
- } else {
- return '';
- }
- }
- },
- {
- title: '备注',
- field: 'F_InfoSource',
- align: 'center',
- }
- ]
- });
- }
- });
- }
- //信息分类
- $("#xxlb").empty();
- $("#xxlb").append('<option selected="selected" value="">请选择</option>');
- $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
- "token": $.cookie("token"),
- id: 2
- }, function(data) {
- if(data.state.toLowerCase() == "success") {
- var content = data.data;
- $(content).each(function(i, n) {
- $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo($("#xxlb"));
- })
- }
- $("#xxlb").change(function() {
- $("#tsxl").empty();
- $("#tsxl").append('<option selected="selected" value="">请选择</option>');
- loadDic($("#tsdl"), $("#xxlb").val());
- });
- $("#tsdl").change(function() {
- loadDic($("#tsxl"), $("#tsdl").val());
- });
- })
- //加载字典
- function loadDic(obj, pid) {
- obj.empty();
- obj.append('<option selected="selected" value="">请选择</option>');
- $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListByParentId", {
- "token": $.cookie("token"),
- pid: pid
- }, function(data) {
- if(data.state.toLowerCase() == "success") {
- var content = data.data;
- $(content).each(function(i, n) {
- $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
- })
- }
- })
- }
- $('.export').click(function(){
- dcexcel(this);
- })
- function dcexcel(obj) {
- var url = huayi.config.callcenter_url + "Business/GetDealList?token=" + $.cookie("token");
- url += "&year=" + $("#year").val() + "&month=" + $("#month").val()+ "&type=" + $("#xxlb").val();
- url +="&bigtype=" + $("#tsdl").val() + "&malltype=" + $("#tsxl").val()+ "&isdc=1";
- obj.href = url;
- }
- })
- </script>
- </body>
- </html>
|