You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
148 lines
5.1 KiB
148 lines
5.1 KiB
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title></title>
|
|
<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
|
|
<link rel="stylesheet" href="../../css/public.css" media="all" />
|
|
<link rel="stylesheet" href="../../css/ztree/metro/ztree.css">
|
|
|
|
<style>
|
|
dl dd {
|
|
text-align: left;
|
|
}
|
|
|
|
.layui-form {
|
|
width: 100%
|
|
}
|
|
|
|
#dataTime_1 {
|
|
width: 260px;
|
|
margin: 0 5px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body style="border: 1px solid #0c6f89;
|
|
background: rgba(12, 70, 100, 0.8);
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
">
|
|
<div style="margin:0 auto;text-align: center;">
|
|
<form class="layui-form" style="float: right;width: 100%">
|
|
<div class="layui-input-inline">
|
|
<span id="span_1" style="float: left;line-height: 40px;font-size: 22px;font-weight: bold;">单位人员、车辆统计表</span>
|
|
</div>
|
|
<div style="float: right;margin-right: 20px;">
|
|
<button id="exportWord" type="button" class="layui-btn">导出</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<div style="width: 70%;height: 500px;float: left;margin-left: 15%;">
|
|
<table id="cAndpOrgList" lay-filter="cAndpOrgList"></table>
|
|
</div>
|
|
<div style="clear:both"></div>
|
|
<script src="../../js/jquery-2.1.3.min.js"></script>
|
|
<script src="../../js/jq_extend.js"></script>
|
|
<script type="text/javascript" src="../../layui/layui.js"></script>
|
|
<script src="../../js/echarts.min.js"></script>
|
|
|
|
<script>
|
|
var OrgId = JSON.parse(window.sessionStorage.getItem("userInfo")).OrgID;
|
|
var PID = "";
|
|
//OrgId = "fbbb44bb458c4336a84e009df74c8598";
|
|
/* var OrgId = "fc21743dcaad4225b8be141dd47d8a2f";*/
|
|
layui.config({
|
|
base: '../../js/'
|
|
}).use(['form', 'layer', 'table', 'laydate','treetable'], function () {
|
|
form = layui.form,
|
|
layer = layui.layer,
|
|
table = layui.table,
|
|
laydate = layui.laydate,
|
|
treetable = layui.treetable;
|
|
|
|
|
|
|
|
//初始化表单
|
|
$(function () {
|
|
//获取父级行政区ID
|
|
var orgStr = "";
|
|
$.ajax({
|
|
type: "post",
|
|
url: "../../ashx/FireOrgHandler.ashx",
|
|
data: { Action: "AreaPID", ORG_ID: OrgId },
|
|
dataType: "json",
|
|
success: function (result) {
|
|
PID = result.data.PID;
|
|
//初始化列表
|
|
work_obj.getVisitorReportDetails(PID);
|
|
}
|
|
});
|
|
})
|
|
|
|
var work_obj = {
|
|
|
|
getVisitorReportDetails: function (pid) {
|
|
var iscontain = "";
|
|
$("input:checkbox[name='iscontain']:checked").each(function (i) {
|
|
iscontain = $(this).val();
|
|
});
|
|
|
|
treetable.render({
|
|
treeColIndex: 0, //树形图标显示在第几列
|
|
treeSpid: pid, //最上级的父级id
|
|
treeIdName: 'ORG_ID', //id字段的名称
|
|
treePidName: 'PID', //pid字段的名称,父级菜单id
|
|
treeDefaultClose: false, //是否默认折叠
|
|
treeLinkage: false, //父级展开时是否自动展开所有子级
|
|
elem: '#cAndpOrgList',
|
|
url: '../../ashx/CarHandler.ashx',
|
|
where: {
|
|
Action: 'getPerAndCarStatisticss',
|
|
orgId: OrgId,
|
|
},
|
|
cellMinWidth: 95,
|
|
page: false,
|
|
limits: [10, 15, 20, 25],
|
|
limit: 15,
|
|
id: "cAndpOrgListTable",
|
|
cols: [[
|
|
{ field: 'ORG_NAME', title: '单位名称', minWidth: 60, align: "left" },
|
|
{ field: 'PERNUM', title: '人员总数', minWidth: 60, align: "center" },
|
|
{ field: 'CARNUM', title: '车辆总数', minWidth: 60, align: "center" },
|
|
|
|
]]
|
|
});
|
|
|
|
|
|
}
|
|
};
|
|
|
|
$("#exportWord").click(function () {
|
|
//load提交
|
|
var index = layer.msg('正在导出...请稍候', { icon: 16, time: false, shade: 0.2 });
|
|
|
|
var data = {
|
|
Action: "htmlToWord3",
|
|
OrgId: OrgId,
|
|
random: new Date().getTime()
|
|
};
|
|
var url = "../../ashx/CarHandler.ashx";
|
|
var method = "POST";
|
|
$.downLoadFile(url, data, method, false);
|
|
|
|
layer.close(index);
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
})
|
|
</script>
|
|
<link rel="stylesheet" href="../../css/right-list.css" media="all" />
|
|
<link rel="stylesheet" href="../../css/bulletframebg.css" media="all" />
|
|
</body>
|
|
</html>
|