表头固定

gaoming_branch
zengwh 5 years ago
parent 0bda2a0c95
commit e35996f9b2

2
.gitignore vendored

@ -1,3 +1,3 @@
/power-service/target/ target
/.idea/ /.idea/
*.iml *.iml

@ -55,10 +55,6 @@ public class LoginController {
//添加进操作日志 //添加进操作日志
Power_Log log = new Power_Log(); Power_Log log = new Power_Log();
if(user != null){ if(user != null){
//如处于登录状态,先清除缓存
//CacheManager.removeCacheByObject(user);
//记住
MyCookieUtil.remember(request, response);
//存session密码置空 //存session密码置空
//是否记住密码功能 //是否记住密码功能
MyCookieUtil.remember(request, response); MyCookieUtil.remember(request, response);

@ -62,8 +62,17 @@
} }
//重设表格高度 //重设表格高度
function reloadTableHeight(tableId) { function reloadTableHeight(tableId) {
$("#"+tableId+".fixed-table-container").css({ "padding-bottom": "0px", height: $("#"+tableId+".fixed-table-body table").height() + 20 }); //获取表格内容高度
var height = $(".fixed-table-body #"+tableId).height();
//刷新
$('#'+tableId).bootstrapTable('resetView', { height: "auto" }); $('#'+tableId).bootstrapTable('resetView', { height: "auto" });
//计算body所需高度
var tableBodyHeight = height-6;
//赋值body高度且定义最高高度
if(maxHeight == 0){
maxHeight = tableBodyHeight;
}
$(".fixed-table-body").css({height:tableBodyHeight,"max-height":maxHeight});
} }
</script> </script>
<%@ include file="/WEB-INF/jspf/confirmJsp.jspf"%> <%@ include file="/WEB-INF/jspf/confirmJsp.jspf"%>

@ -36,11 +36,6 @@
width:50%; width:50%;
float:left; float:left;
} }
/*按钮组*/
.btns{
text-align: right;
margin-bottom: 5px;
}
/*模态框*/ /*模态框*/
.modal-header{ .modal-header{
text-align: center; text-align: center;
@ -59,9 +54,6 @@
.operBtns{ .operBtns{
margin-left:10px; margin-left:10px;
} }
.tableDiv{
margin-left:14px;
}
.shortInput{ .shortInput{
width:80px; width:80px;
} }

@ -48,11 +48,6 @@
width:50%; width:50%;
float:left; float:left;
} }
/*按钮组*/
.btns{
text-align: right;
margin-bottom: 10px;
}
/*模态框*/ /*模态框*/
.modal-header{ .modal-header{
text-align: center; text-align: center;
@ -69,11 +64,6 @@
margin-left: 38px; margin-left: 38px;
margin-bottom: 16px; margin-bottom: 16px;
} }
.tableDiv{
margin-left:15px;
margin-right:25px;
padding-right: 15px;
}
.shortInput{ .shortInput{
width:80px; width:80px;
} }

@ -71,37 +71,19 @@
padding-top: 3px; padding-top: 3px;
margin-left: 2%; margin-left: 2%;
} }
/**查询按钮组*/
.btnsDiv {
width: 100%;
height: 32px;
text-align: right;
padding-top: 5px;
padding-right: 22px;
}
/**表格div*/
.tableDiv {
margin-left: 14px;
margin-top: -9px !important;
}
</style> </style>
</head> </head>
<body> <body>
<div class="main"> <div style="width: 100%;height: 100%;overflow: auto">
<div class=""> <div class="row" style="margin-right: 0px;">
<div class="col-md-12">
<div class="panel-heading"><h4>其他管理/日志管理</h4></div> <div class="panel-heading"><h4>其他管理/日志管理</h4></div>
<hr> <hr>
<div class="searchDiv"> <form class="form-inline searchDiv" role="form">
<div class="searchInput left" style="margin-left: 14px"> <div class="form-group">
<div class="searchElement left">
<label class="labelDiv">日志主题:</label> <label class="labelDiv">日志主题:</label>
</div>
<div class="searchInputElement left">
<input type="text" class="form-control input-sm" id="logTitle" maxlength="50"> <input type="text" class="form-control input-sm" id="logTitle" maxlength="50">
</div> </div>
</div>
<div class="searchInput left"> <div class="searchInput left">
<div class="searchElement left"> <div class="searchElement left">
<label class="labelDiv">日志内容:</label> <label class="labelDiv">日志内容:</label>
@ -133,7 +115,8 @@
<button type="button" class="btn btn-sm btn-primary" onclick="refreshTable()">查询</button> <button type="button" class="btn btn-sm btn-primary" onclick="refreshTable()">查询</button>
</div> </div>
</div> </div>
<div class="btnsDiv"> </div>
<div class="btns">
<pm:myPermissions permissions="/otherManage/exportExcel"> <pm:myPermissions permissions="/otherManage/exportExcel">
<button type="button" class="btn btn-sm btn-primary" onclick="exportExcel()"><i class="fa fa-reply"></i>导出 <button type="button" class="btn btn-sm btn-primary" onclick="exportExcel()"><i class="fa fa-reply"></i>导出
</button> </button>

@ -36,11 +36,6 @@
width:50%; width:50%;
float:left; float:left;
} }
/*按钮组*/
.btns{
text-align: right;
margin-bottom: 5px;
}
/*模态框*/ /*模态框*/
.modal-header{ .modal-header{
text-align: center; text-align: center;
@ -56,9 +51,6 @@
margin-left: 38px; margin-left: 38px;
margin-bottom: 16px; margin-bottom: 16px;
} }
.tableDiv{
margin-left:14px;
}
.shortInput{ .shortInput{
width:80px; width:80px;
} }

@ -40,12 +40,6 @@
width:50%; width:50%;
float:left; float:left;
} }
/*按钮组*/
.btns{
margin-top:5px;
text-align: right;
margin-bottom: 5px;
}
/*模态框*/ /*模态框*/
.modal-header{ .modal-header{
text-align: center; text-align: center;
@ -64,9 +58,6 @@
.operBtns{ .operBtns{
margin-left:10px; margin-left:10px;
} }
.tableDiv{
margin-left:14px;
}
.shortInput{ .shortInput{
width:80px; width:80px;
} }
@ -103,7 +94,6 @@
<div class="panel-heading"><h4>基本管理/用户管理</h4></div> <div class="panel-heading"><h4>基本管理/用户管理</h4></div>
<hr> <hr>
<form class="form-inline searchDiv" role="form"> <form class="form-inline searchDiv" role="form">
<div class="">
<div class="form-group"> <div class="form-group">
<label for="user_name">账号:</label> <label for="user_name">账号:</label>
<input type="text" class="form-control input-sm" id="user_name" maxlength="16"/> <input type="text" class="form-control input-sm" id="user_name" maxlength="16"/>
@ -141,7 +131,6 @@
<div class="form-group"> <div class="form-group">
<button type="button" id="queryBtn" class="btn btn-primary btn-sm form-group">查询</button> <button type="button" id="queryBtn" class="btn btn-primary btn-sm form-group">查询</button>
</div> </div>
</div>
</form> </form>
</div> </div>
</div> </div>
@ -159,7 +148,9 @@
<button type="button" class="btn btn-primary btn-sm" onclick="exportExcel()">导出Excel</button> <button type="button" class="btn btn-primary btn-sm" onclick="exportExcel()">导出Excel</button>
</pm:myPermissions> </pm:myPermissions>
</div> </div>
<div class="tableDiv">
<table id="bootstrapTable" class="table text-nowrap table-striped"></table> <table id="bootstrapTable" class="table text-nowrap table-striped"></table>
</div>
</div> </div>
<!-- 模态框Modal --> <!-- 模态框Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false"> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">

@ -23,3 +23,15 @@
margin-top: 3px; margin-top: 3px;
height: 30px; height: 30px;
} }
/*表格外层div*/
.tableDiv{
margin-left:14px;
margin-right:15px;
}
/*按钮组*/
.btns{
margin-top:5px;
margin-right:15px;
text-align: right;
margin-bottom: 5px;
}

@ -1,5 +1,7 @@
var form = '' var form = ''
var pageNumber = 1; var pageNumber = 1;
//定义表格内容最大高度
var maxHeight = 0;
$(function(){ $(function(){
var columns = []; var columns = [];
columns.push({ columns.push({

@ -1,5 +1,7 @@
//初始化时间控件 //初始化时间控件
initDateInput(1); initDateInput(1);
//定义表格内容最大高度
var maxHeight = 0;
var setting = { var setting = {
view:{ view:{
fontCss : {"font-family": "微软雅黑","color":"blue"} fontCss : {"font-family": "微软雅黑","color":"blue"}

@ -3,6 +3,8 @@
*/ */
var pageNumber = 1; var pageNumber = 1;
var form = ''; var form = '';
//定义表格内容最大高度
var maxHeight = 0;
$(function(){ $(function(){
$('#myModal').modal('hide'); $('#myModal').modal('hide');
//先销毁表格 //先销毁表格

@ -1,6 +1,8 @@
var pageNumber=1; var pageNumber=1;
var form = ''; var form = '';
$(function(){ //定义表格内容最大高度
var maxHeight = 0;
$(function(){
$('#myModal').modal('hide'); $('#myModal').modal('hide');
loadDept(); loadDept();
loadRole(); loadRole();
@ -180,7 +182,7 @@ var form = '';
$("#userNames").val(""); $("#userNames").val("");
} }
}); });
}); });
//格式化科室列 //格式化科室列
function paramsMatter(value, row, index) { function paramsMatter(value, row, index) {
value = '<p class="hidden-xs" title="'+value+'">'+value+'</p>' value = '<p class="hidden-xs" title="'+value+'">'+value+'</p>'

@ -49,8 +49,10 @@ public class CacheManager {
public static void putCache(String key, Cache obj) { public static void putCache(String key, Cache obj) {
cacheMap.put(key, obj); cacheMap.put(key, obj);
//移除不属于该token的 //移除不属于该token的
Power_UserVo powerUser = (Power_UserVo)obj.getValue(); if(obj.getValue() instanceof Power_UserVo) {
CacheManager.removeCacheByObject(powerUser,key); Power_UserVo powerUser = (Power_UserVo) obj.getValue();
CacheManager.removeCacheByObject(powerUser, key);
}
} }
public static Cache getCacheInfo(String key) { public static Cache getCacheInfo(String key) {

Loading…
Cancel
Save