123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- <%@ taglib prefix="C" uri="http://java.sun.com/jsp/jstl/core" %>
- <%@ page contentType="text/html;charset=UTF-8" %>
- <%@ include file="/webpage/include/taglib.jsp"%>
- <html>
- <head>
- <title>要闻内容管理管理</title>
- <meta http-equiv="Content-type" content="text/html; charset=utf-8">
- <meta name="decorator" content="ani"/>
- <%@ include file="/webpage/include/bootstraptable.jsp"%>
- <%@include file="/webpage/include/treeview.jsp" %>
- <%@include file="navInfoList.js" %>
- <script type="text/javascript">
- $(document).ready(function() {
- $("#deptName").blur(function () {
- var deptId = $("#deptId").val();
- if (deptId != '') {
- $.ajax({
- type:"POST",
- url :"${ctx}/app/base/appBaseNav/getNav",
- data:{
- deptId:deptId
- },
- dataType:"json",
- success:function(data){
- console.log(data);
- $("#navId").empty();
- $.each(data.rows,function(index,item){
- $("#navId").append("<option value='"+item.id+"'>"+item.title+"</option>");
- });
- }
- });
- }
- });
- });
- </script>
- </head>
- <body>
- <div class="wrapper wrapper-content">
- <div class="panel panel-primary">
- <div class="panel-heading">
- <h3 class="panel-title">栏目内容管理列表</h3>
- </div>
- <div class="panel-body">
- <!-- 搜索 -->
- <div id="search-collapse" class="collapse">
- <div class="accordion-inner">
- <form:form id="searchForm" modelAttribute="appBaseNews" class="form form-horizontal well clearfix">
- <form:hidden path="typeId"/>
- <C:choose>
- <C:when test="${admin}">
- <div class="col-xs-12 col-sm-6 col-md-4">
- <label class="label-item single-overflow pull-left" title="所属党组织:">所属党组织:</label>
- <sys:treeselect id="dept" name="dept.id" value="${appBaseNews.dept.id}" labelName="dept.name" labelValue="${appBaseNews.dept.name}"
- title="所属党组织" url="/leader/org/leaderOrgNo/treeData" extId="${appBaseNews.id}" cssClass="form-control" allowClear="true"/>
- </div>
- </C:when>
- <C:otherwise>
- <div class="col-xs-12 col-sm-6 col-md-4">
- <label class="label-item single-overflow pull-left" title="所属党组织:">所属党组织:</label>
- <form:hidden id="deptId" path="dept.id"/>
- <input id="dept" name="dept.name" value="${appBaseNews.dept.name}" class="form-control" readonly>
- </div>
- </C:otherwise>
- </C:choose>
- <C:choose>
- <C:when test="${admin}">
- <div class="col-xs-12 col-sm-6 col-md-4">
- <label class="label-item single-overflow pull-left" title="栏目:">栏目:</label>
- <select id="navId" name="navId.id" class="form-control m-b">
- <option value=""></option>
- </select>
- </div>
- </C:when>
- <C:otherwise>
- <div class="col-xs-12 col-sm-6 col-md-4">
- <label class="label-item single-overflow pull-left" title="栏目:">栏目:</label>
- <form:select path="navId" cssClass="form-control m-b">
- <form:option value="" label=""/>
- <form:options items="${navList}" itemLabel="title" itemValue="id" htmlEscape="false"/>
- </form:select>
- </div>
- </C:otherwise>
- </C:choose>
- <div class="col-xs-12 col-sm-6 col-md-4">
- <label class="label-item single-overflow pull-left" title="标题:">标题:</label>
- <form:input path="title" htmlEscape="false" maxlength="100" class=" form-control"/>
- </div>
- <div class="col-xs-12 col-sm-6 col-md-4">
- <div style="margin-top:26px">
- <a id="search" class="btn btn-primary btn-rounded btn-bordered btn-sm"><i class="fa fa-search"></i> 查询</a>
- <a id="reset" class="btn btn-primary btn-rounded btn-bordered btn-sm" ><i class="fa fa-refresh"></i> 重置</a>
- </div>
- </div>
- </form:form>
- </div>
- </div>
- <!-- 工具栏 -->
- <div id="toolbar">
- <shiro:hasPermission name="app:base:appBaseNews:add">
- <button id="add" class="btn btn-primary" onclick="add()">
- <i class="glyphicon glyphicon-plus"></i> 新建
- </button>
- </shiro:hasPermission>
- <shiro:hasPermission name="app:base:appBaseNews:edit">
- <button id="edit" class="btn btn-success" disabled onclick="edit()">
- <i class="glyphicon glyphicon-edit"></i> 修改
- </button>
- </shiro:hasPermission>
- <shiro:hasPermission name="app:base:appBaseNews:del">
- <button id="remove" class="btn btn-danger" disabled onclick="deleteAll()">
- <i class="glyphicon glyphicon-remove"></i> 删除
- </button>
- </shiro:hasPermission>
- <shiro:hasPermission name="app:base:appBaseNews:view">
- <button id="view" class="btn btn-default" disabled onclick="view()">
- <i class="fa fa-search-plus"></i> 查看
- </button>
- </shiro:hasPermission>
- </div>
- <!-- 表格 -->
- <table id="appBaseNewsTable" data-toolbar="#toolbar"></table>
- <!-- context menu -->
- <ul id="context-menu" class="dropdown-menu">
- <shiro:hasPermission name="app:base:appBaseNews:view">
- <li data-item="view"><a>查看</a></li>
- </shiro:hasPermission>
- <shiro:hasPermission name="app:base:appBaseNews:edit">
- <li data-item="edit"><a>编辑</a></li>
- </shiro:hasPermission>
- <shiro:hasPermission name="app:base:appBaseNews:del">
- <li data-item="delete"><a>删除</a></li>
- </shiro:hasPermission>
- <li data-item="action1"><a>取消</a></li>
- </ul>
- </div>
- </div>
- </div>
- </body>
- </html>
|