fixedColumnList.jsp 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <%@ taglib prefix="C" uri="http://java.sun.com/jsp/jstl/core" %>
  2. <%@ page contentType="text/html;charset=UTF-8" %>
  3. <%@ include file="/webpage/include/taglib.jsp"%>
  4. <html>
  5. <head>
  6. <title>要闻内容管理管理</title>
  7. <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  8. <meta name="decorator" content="ani"/>
  9. <%@ include file="/webpage/include/bootstraptable.jsp"%>
  10. <%@include file="/webpage/include/treeview.jsp" %>
  11. <%@include file="fixedColumnList.js" %>
  12. <script type="text/javascript">
  13. $(document).ready(function() {
  14. $("#deptName").blur(function () {
  15. var deptId = $("#deptId").val();
  16. if (deptId != '') {
  17. $.ajax({
  18. type:"POST",
  19. url :"${ctx}/app/base/appBaseNav/getNav",
  20. data:{
  21. deptId:deptId
  22. },
  23. dataType:"json",
  24. success:function(data){
  25. console.log(data);
  26. $("#navId").empty();
  27. $.each(data.rows,function(index,item){
  28. $("#navId").append("<option value='"+item.id+"'>"+item.title+"</option>");
  29. });
  30. }
  31. });
  32. }
  33. });
  34. });
  35. </script>
  36. </head>
  37. <body>
  38. <div class="wrapper wrapper-content">
  39. <div class="panel panel-primary">
  40. <div class="panel-heading">
  41. <h3 class="panel-title">栏目内容管理列表</h3>
  42. </div>
  43. <div class="panel-body">
  44. <!-- 搜索 -->
  45. <div id="search-collapse" class="collapse">
  46. <div class="accordion-inner">
  47. <form:form id="searchForm" modelAttribute="appBaseNews" class="form form-horizontal well clearfix">
  48. <form:hidden path="typeId"/>
  49. <C:choose>
  50. <C:when test="${admin}">
  51. <div class="col-xs-12 col-sm-6 col-md-4">
  52. <label class="label-item single-overflow pull-left" title="所属党组织:">所属党组织:</label>
  53. <sys:treeselect id="dept" name="dept.id" value="${appBaseNews.dept.id}" labelName="dept.name" labelValue="${appBaseNews.dept.name}"
  54. title="所属党组织" url="/leader/org/leaderOrgNo/treeData" extId="${appBaseNews.id}" cssClass="form-control" allowClear="true"/>
  55. </div>
  56. </C:when>
  57. <C:otherwise>
  58. <div class="col-xs-12 col-sm-6 col-md-4">
  59. <label class="label-item single-overflow pull-left" title="所属党组织:">所属党组织:</label>
  60. <form:hidden id="deptId" path="dept.id"/>
  61. <input id="dept" name="dept.name" value="${appBaseNews.dept.name}" class="form-control" readonly>
  62. </div>
  63. </C:otherwise>
  64. </C:choose>
  65. <C:choose>
  66. <C:when test="${admin}">
  67. <div class="col-xs-12 col-sm-6 col-md-4">
  68. <label class="label-item single-overflow pull-left" title="栏目:">栏目:</label>
  69. <select id="navId" name="navId.id" class="form-control m-b">
  70. <option value=""></option>
  71. </select>
  72. </div>
  73. </C:when>
  74. <C:otherwise>
  75. <div class="col-xs-12 col-sm-6 col-md-4">
  76. <label class="label-item single-overflow pull-left" title="栏目:">栏目:</label>
  77. <form:select path="navId" cssClass="form-control m-b">
  78. <form:option value="" label=""/>
  79. <form:options items="${navList}" itemLabel="title" itemValue="id" htmlEscape="false"/>
  80. </form:select>
  81. </div>
  82. </C:otherwise>
  83. </C:choose>
  84. <div class="col-xs-12 col-sm-6 col-md-4">
  85. <label class="label-item single-overflow pull-left" title="标题:">标题:</label>
  86. <form:input path="title" htmlEscape="false" maxlength="100" class=" form-control"/>
  87. </div>
  88. <div class="col-xs-12 col-sm-6 col-md-4">
  89. <div style="margin-top:26px">
  90. <a id="search" class="btn btn-primary btn-rounded btn-bordered btn-sm"><i class="fa fa-search"></i> 查询</a>
  91. <a id="reset" class="btn btn-primary btn-rounded btn-bordered btn-sm" ><i class="fa fa-refresh"></i> 重置</a>
  92. </div>
  93. </div>
  94. </form:form>
  95. </div>
  96. </div>
  97. <!-- 工具栏 -->
  98. <div id="toolbar">
  99. <shiro:hasPermission name="app:base:appBaseNews:add">
  100. <button id="add" class="btn btn-primary" onclick="add()">
  101. <i class="glyphicon glyphicon-plus"></i> 新建
  102. </button>
  103. </shiro:hasPermission>
  104. <shiro:hasPermission name="app:base:appBaseNews:edit">
  105. <button id="edit" class="btn btn-success" disabled onclick="edit()">
  106. <i class="glyphicon glyphicon-edit"></i> 修改
  107. </button>
  108. </shiro:hasPermission>
  109. <shiro:hasPermission name="app:base:appBaseNews:del">
  110. <button id="remove" class="btn btn-danger" disabled onclick="deleteAll()">
  111. <i class="glyphicon glyphicon-remove"></i> 删除
  112. </button>
  113. </shiro:hasPermission>
  114. <shiro:hasPermission name="app:base:appBaseNews:view">
  115. <button id="view" class="btn btn-default" disabled onclick="view()">
  116. <i class="fa fa-search-plus"></i> 查看
  117. </button>
  118. </shiro:hasPermission>
  119. </div>
  120. <!-- 表格 -->
  121. <table id="appBaseNewsTable" data-toolbar="#toolbar"></table>
  122. <!-- context menu -->
  123. <ul id="context-menu" class="dropdown-menu">
  124. <shiro:hasPermission name="app:base:appBaseNews:view">
  125. <li data-item="view"><a>查看</a></li>
  126. </shiro:hasPermission>
  127. <shiro:hasPermission name="app:base:appBaseNews:edit">
  128. <li data-item="edit"><a>编辑</a></li>
  129. </shiro:hasPermission>
  130. <shiro:hasPermission name="app:base:appBaseNews:del">
  131. <li data-item="delete"><a>删除</a></li>
  132. </shiro:hasPermission>
  133. <li data-item="action1"><a>取消</a></li>
  134. </ul>
  135. </div>
  136. </div>
  137. </div>
  138. </body>
  139. </html>