| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>数据统计</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <link href="../css/WorkOrder/Search.css" rel="stylesheet">
- <link href="../css/init.css" rel="stylesheet" />
- <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
- <link rel="stylesheet" href="./css/reportCommon.css" />
- <script src="../js/laydate/laydate.js"></script>
- <script src="../js/zTree/jquery.ztree.core.js"></script>
-
- </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="Content_box">
- <div class="complain Shows">
- <div class="toolBar clearfix">
- <div class="toolLeft">
- 开始日期:
- <input class="photo x-color inputs laydate-icon" type="text" id="squeryTime" autocomplete="off" />
- 结束时间:
- <input class="photo x-color inputs laydate-icon" type="text" id="equeryTime" autocomplete="off" />
- 部门:
- <div class="inpBox">
- <input class="inps inps1">
- <input type="hidden" id="deptid" />
- <i class="xl xl_two"></i>
- <div class="addTree xlAdd_two">
- <ul id="deptTree" class="ztree"></ul>
- </div>
- </div>
- 来源:
- <select class="select" id="source"></select>
- <button class="btns search_1">查询</button>
- <a class="btns" id="exportPublicSentiments">导出</a>
- </div>
- </div>
- <div style="width: 100%;padding: 10px;">
- <table id="reportlist" class="tables" data-row-style="rowStyle" data-query-params="queryParams">
- </table>
- </div>
- <div class="footerDataStatistics">统计时段:00:00—23:59:59</div>
- </div>
- </div>
- </div>
- <script src="./js/reportCommon.js"></script>
- <script>
- var exportParams = {}
- var tableColumns = [
- { title: '序号', align: 'center',
- formatter: function(value, row, index) {
- return index+1
- }
- },
- { field: 'deptname', title: '联动单位', align: 'center'},
- { field: 'Undertakers', title: '承办件', align: 'center'},
- { field: 'Undertakersrate', title: '承办率', align: 'center'},
- { field: 'Undertakersscore', title: '得分(5分)', align: 'center'},
- { field: 'signfor', title: '及时签收件', align: 'center'},
- { field: 'signforrate', title: '及时签收率', align: 'center'},
-
- ]
- var treeInputParam = {
- classInps:'.inps',
- classId:'#deptid',
- treeApi:'Department/GetDeptList',
- classAddTree:'.addTree',
- classXl:'.xl',
- treeId:'#deptTree',
- treeObj:{
- name:'F_DeptName',
- id:'F_DeptId',
- pid:'F_PartentId',
- onclick:zTreeOnClick
- }
- }
- var selectParam = {
- id:"#source",
- apiUrl:"Dictionary/GetDicValueListById",
- dataParam:{
- id:1
- }
- }
- $(document).ready(function () {
- laydate.render({
- elem: '#squeryTime',
- theme: '#00a1cb',
- type: 'datetime',
- });
- laydate.render({
- elem: '#equeryTime',
- theme: '#00a1cb',
- type: 'datetime',
- });
- initTable();
- bindtree();
- selectCommon(selectParam);
- });
- //搜索
- $(".search_1").click(function () {
- initTable();
- });
- //导出
- $('#exportPublicSentiments').click(function () {
- exportParams.isdc = true
- exportFileFun('DataAssessment/GetExamine',exportParams)
- });
-
- //表格
- function initTable() {
- var dataParams = {
- stime: $('#squeryTime').val(),
- etime: $('#equeryTime').val(),
- token: $.cookie("token")
- }
- exportParams = dataParams
- $.ajax({
- url: huayi.config.callcenter_url + 'WorkOrderReport/GetAreaLevel',
- type: 'get',
- data: dataParams,
- dataType: "json",
- async: true,
- success: function (returnValue) {
- //异步获取数据
- if (returnValue.state == "success") {
- var resultData = returnValue.rows;
- if (resultData.length>0) {
- $('#reportlist').bootstrapTable('load', resultData);
- }
- }
-
-
- }
- });
- $('#reportlist').bootstrapTable('destroy').bootstrapTable({
- striped: true,
- pagination: false,
- columns:tableColumns
- });
- }
-
-
- </script>
- </body>
- </html>
|