grgw_old_java/heatsupply2/WebContent/webpage/modules/sys/userIndex.jsp

68 lines
2.4 KiB
Plaintext

<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
<title>用户管理</title>
<meta name="decorator" content="default"/>
<%@include file="/webpage/include/treeview.jsp" %>
<style type="text/css">
.ztree {overflow:auto;margin:0;_margin-top:10px;padding:10px 0 0 10px;}
</style>
<script type="text/javascript">
function refresh(){//刷新
window.location="${ctx}/sys/user/index";
}
</script>
</head>
<body class="gray-bg" style="overflow: hidden;">
<div class="wrapper wrapper-list-content">
<div class="ibox">
<div style="height:100%;min-height: 512px;" >
<sys:message content="${message}"/>
<div id="content">
<div id="left" style="background-color:#e7eaec;" class="col-sm-2">
<a onclick="refresh()" class="pull-right">
<i class="fa fa-refresh"></i>
</a>
<div id="ztree" class="ztree leftBox-content" style="padding: 0px 0px 0px 0px"></div>
</div>
<div id="right" class="col-sm-10 animated fadeInRight">
<iframe id="officeContent" name="officeContent" src="${ctx}/sys/user/list" width="100%" height="95%" frameborder="0"></iframe>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var setting = {data:{simpleData:{enable:true,idKey:"id",pIdKey:"pId",rootPId:'0'}},
callback:{onClick:function(event, treeId, treeNode){
var id = treeNode.id == '0' ? '' :treeNode.id;
$('#officeContent').attr("src","${ctx}/sys/user/list?office.id="+id+"&office.name="+encodeURI(encodeURI(treeNode.name)));
}
}
};
function refreshTree(){
$.getJSON("${ctx}/sys/office/treeData",function(data){
$.fn.zTree.init($("#ztree"), setting, data).expandAll(true);
});
}
refreshTree();
var leftWidth = 230; // 左侧窗口大小
var htmlObj = $("html"), mainObj = $("#main");
var frameObj = $("#left, #openClose, #right, #right iframe");
function wSize(){
var strs = getWindowSize().toString().split(",");
htmlObj.css({"overflow-x":"hidden", "overflow-y":"hidden"});
mainObj.css("width","auto");
frameObj.height(strs[0] - 23);
var leftWidth = ($("#left").width() < 0 ? 0 : $("#left").width());
$("#right").width($("#content").width()- leftWidth -60);
$(".ztree").width(leftWidth - 10).height(frameObj.height() - 46);
}
</script>
<script src="${ctxStatic}/common/wsize.min.js" type="text/javascript"></script>
</body>
</html>