|
|
|
@ -26,17 +26,22 @@
|
|
|
|
|
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
|
|
|
|
<![endif]-->
|
|
|
|
|
<script>
|
|
|
|
|
function changePageSize() {
|
|
|
|
|
function changePageSize()
|
|
|
|
|
{
|
|
|
|
|
//获取下拉框的值
|
|
|
|
|
var pageSize = $("#changePageSize").val();
|
|
|
|
|
//向服务器发送请求,改变每页显示条数
|
|
|
|
|
location.href = "${pageContext.request.contextPath}/dorm/findAll?page=1&size="+ pageSize;
|
|
|
|
|
}
|
|
|
|
|
$("#serarch_btn").click(function () {
|
|
|
|
|
|
|
|
|
|
$("#serarch_btn").click(function ()
|
|
|
|
|
{
|
|
|
|
|
var keyword = $("#keyword").val();
|
|
|
|
|
location.href="${pageContext.request.contextPath}/dorm/findAll?page=1&size=5&keyword="+keyword;
|
|
|
|
|
});
|
|
|
|
|
$("#refresh").click(function () {
|
|
|
|
|
|
|
|
|
|
$("#refresh").click(function ()
|
|
|
|
|
{
|
|
|
|
|
$("#myform").reset();
|
|
|
|
|
location.href="${pageContext.request.contextPath}/dorm/findAll?page=1&size=5";
|
|
|
|
|
});
|
|
|
|
@ -85,6 +90,7 @@
|
|
|
|
|
<th style="text-align: center">宿舍奖惩</th>
|
|
|
|
|
<th style="text-align: center">宿舍长</th>
|
|
|
|
|
<th style="text-align: center">育人导师</th>
|
|
|
|
|
<!--当前用户的权限大于2,则显示“操作”列-->
|
|
|
|
|
<c:if test="${sessionScope.adminInfo.power > 2}">
|
|
|
|
|
<th style="text-align: center">操作</th>
|
|
|
|
|
</c:if>
|
|
|
|
@ -93,6 +99,8 @@
|
|
|
|
|
<%
|
|
|
|
|
int j = 1;
|
|
|
|
|
%>
|
|
|
|
|
|
|
|
|
|
<!--通过JSTL标签<c:forEach>循环遍历pageInfo.list中的每个宿舍对象dorm-->
|
|
|
|
|
<c:forEach items="${pageInfo.list}" var="dorm">
|
|
|
|
|
<tr id="light" style="text-align: center">
|
|
|
|
|
<td><%=j++%></td>
|
|
|
|
@ -118,6 +126,7 @@
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<!--关闭表格和外层容器的标签-->
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pull-left">
|
|
|
|
|
<div class="form-group form-inline">
|
|
|
|
@ -186,7 +195,8 @@
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
//查看详情
|
|
|
|
|
function look(id) {
|
|
|
|
|
function look(id)
|
|
|
|
|
{
|
|
|
|
|
layer.open({
|
|
|
|
|
type: 2,
|
|
|
|
|
title:'宿舍详情',
|
|
|
|
@ -194,14 +204,20 @@
|
|
|
|
|
area: ['800px', '430px'], //宽高
|
|
|
|
|
content: '${pageContext.request.contextPath}/dorm/look?id='+id
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//导出Excel操作
|
|
|
|
|
function exportInfo(power) {
|
|
|
|
|
if (power < 3) {
|
|
|
|
|
function exportInfo(power)
|
|
|
|
|
{
|
|
|
|
|
if (power < 3)
|
|
|
|
|
{
|
|
|
|
|
layer.msg('对不起,您没有权限导出宿舍信息');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
layer.confirm('确定导出所有宿舍数据吗?',function (index) {
|
|
|
|
|
|
|
|
|
|
layer.confirm('确定导出所有宿舍数据吗?',function (index)
|
|
|
|
|
{
|
|
|
|
|
location.href="${pageContext.request.contextPath}/dorm/export";
|
|
|
|
|
layer.close(index);
|
|
|
|
|
});
|
|
|
|
|