|
@@ -0,0 +1,227 @@
|
|
|
|
+<%@ page contentType="text/html;charset=UTF-8" %>
|
|
|
|
+<%@ include file="/webpage/include/taglib.jsp"%>
|
|
|
|
+<html>
|
|
|
|
+<head>
|
|
|
|
+ <title>通知管理</title>
|
|
|
|
+ <meta name="decorator" content="default"/>
|
|
|
|
+ <script type="text/javascript">
|
|
|
|
+ $(document).ready(function() {
|
|
|
|
+ //搜索框收放
|
|
|
|
+ $('#moresee').click(function(){
|
|
|
|
+ if($('#moresees').is(':visible'))
|
|
|
|
+ {
|
|
|
|
+ $('#moresees').slideUp(0,resizeListWindow2);
|
|
|
|
+ $('#moresee i').removeClass("glyphicon glyphicon-menu-up").addClass("glyphicon glyphicon-menu-down");
|
|
|
|
+ }else{
|
|
|
|
+ $('#moresees').slideDown(0,resizeListWindow2);
|
|
|
|
+ $('#moresee i').removeClass("glyphicon glyphicon-menu-down").addClass("glyphicon glyphicon-menu-up");
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ </script>
|
|
|
|
+ <style>
|
|
|
|
+ body{
|
|
|
|
+ background-color:transparent;
|
|
|
|
+ filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#26FFFFFF, endColorstr=#26FFFFFF);
|
|
|
|
+ color:#ffffff;
|
|
|
|
+ background-color:rgba(255,255,255,0);
|
|
|
|
+ height:100%;
|
|
|
|
+ }
|
|
|
|
+ </style>
|
|
|
|
+</head>
|
|
|
|
+<body>
|
|
|
|
+<div class="wrapper wrapper-content">
|
|
|
|
+ <sys:message content="${message}"/>
|
|
|
|
+ <div class="layui-row">
|
|
|
|
+ <div class="full-width fl">
|
|
|
|
+ <div class="contentShadow layui-row" id="queryDiv">
|
|
|
|
+ <form:form id="searchForm" modelAttribute="workProjectNotifyRecover" action="${ctx}/workProjectNotifyRecover/workProjectNotifyRecover/list" method="post" class="form-inline">
|
|
|
|
+ <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
|
|
|
+ <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
|
|
|
+ <table:sortColumn id="orderBy" name="orderBy" value="${page.orderBy}" callback="sortOrRefresh();"/><!-- 支持排序 -->
|
|
|
|
+
|
|
|
|
+ <div class="commonQuery">
|
|
|
|
+ <%--<div class="layui-item query athird">
|
|
|
|
+ <label class="layui-form-label">标题:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <form:input path="title" htmlEscape="false" maxlength="255" class=" form-control layui-input"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>--%>
|
|
|
|
+ <div class="layui-item query athird" style="width: 25%">
|
|
|
|
+ <label class="layui-form-label">内容:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <form:input path="content" htmlEscape="false" maxlength="255" class=" form-control layui-input"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item query athird" style="width: 25%">
|
|
|
|
+ <label class="layui-form-label">类型:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <form:select id="type" path="type" class="form-control simple-select">
|
|
|
|
+ <form:option value="" label=""/>
|
|
|
|
+ <form:options items="${fns:getDictList('new_project_notify_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
|
+ </form:select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="layui-item query athird" style="width: 25%">
|
|
|
|
+ <label class="layui-form-label">审核人:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <sys:inquireselectUserNotReadolny id="notifyUser" name="notifyUserId" value="${workProjectNotifyRecover.notifyUserId}" labelName="notifyUserName" labelValue="${workProjectNotifyRecover.notifyUserName}" cssStyle="background-color: #fff"
|
|
|
|
+ title="用户" url="/sys/office/treeDataAll?type=3" cssClass="form-control layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item athird" style="width: 25%">
|
|
|
|
+ <div class="input-group">
|
|
|
|
+ <a href="#" id="moresee"><i class="glyphicon glyphicon-menu-down"></i></a>
|
|
|
|
+ <div class="layui-btn-group search-spacing">
|
|
|
|
+ <button id="searchQuery" class="layui-btn layui-btn-sm layui-bg-blue" onclick="search()">查询</button>
|
|
|
|
+ <button id="searchReset" class="layui-btn layui-btn-sm " onclick="resetSearch()">重置</button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div style=" clear:both;"></div>
|
|
|
|
+ </div>
|
|
|
|
+ <div id="moresees" style="clear:both;display:none;">
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </form:form>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="full-width fl">
|
|
|
|
+ <div class="contentShadow layui-form contentDetails">
|
|
|
|
+ <div class="nav-btns">
|
|
|
|
+ <div class="layui-btn-group">
|
|
|
|
+ <button id="readRows" class="layui-btn layui-btn-sm layui-bg-blue">批量忽略</button>
|
|
|
|
+ <button class="layui-btn layui-btn-sm" data-toggle="tooltip" data-placement="left" onclick="sortOrRefresh()" title="刷新"> 刷新</button>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+<%-- <button class="nav-btn nav-btn-refresh" data-toggle="tooltip" data-placement="left" onclick="sortOrRefresh()" title="刷新"><i class="glyphicon glyphicon-repeat"></i> 刷新</button>--%>
|
|
|
|
+ <div style="clear: both;"></div>
|
|
|
|
+ </div>
|
|
|
|
+ <table class="oa-table layui-table" id="contentTable"></table>
|
|
|
|
+
|
|
|
|
+ <!-- 分页代码 -->
|
|
|
|
+ <table:page page="${page}"></table:page>
|
|
|
|
+ <div style="clear: both;"></div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div id="changewidth"></div>
|
|
|
|
+</div>
|
|
|
|
+<script src="${ctxStatic}/layer-v2.3/layui/layui.all.js" charset="utf-8"></script>
|
|
|
|
+<script>
|
|
|
|
+ layui.use('table', function(){
|
|
|
|
+ layui.table.render({
|
|
|
|
+ limit:${ page.pageSize }
|
|
|
|
+ ,elem: '#contentTable'
|
|
|
|
+ ,page: false
|
|
|
|
+ ,cols: [[
|
|
|
|
+ {checkbox: true, fixed: true},
|
|
|
|
+ {field:'index',align:'center', width:40,title: '序号'}
|
|
|
|
+ ,{align:'center', title: '类型', width:100,templet:function(d){
|
|
|
|
+ return "<span title='"+ d.type1 +"'>" + d.type1 + "</span>";
|
|
|
|
+ }}
|
|
|
|
+ ,{align:'center', title: '环节', width:100,templet:function(d){
|
|
|
|
+ return "<span title='"+ d.step +"'>" + d.step + "</span>";
|
|
|
|
+ }}
|
|
|
|
+ ,{field:'title',align:'center', title: '标题', minWidth:150,templet:function(d){
|
|
|
|
+ return "<span title='"+ d.title +"'>" + d.content + "</span>";
|
|
|
|
+ }}
|
|
|
|
+ ,{align:'center',title: '内容', minWidth:150,templet:function(d){
|
|
|
|
+ return "<span title='"+ d.content +"'>" + d.content + "</span>";
|
|
|
|
+ }}
|
|
|
|
+ ,{align:'center',title: '当前审核人', width:80,templet:function(d){
|
|
|
|
+ return "<span title='"+ d.submit +"'>" + d.submit + "</span>";
|
|
|
|
+ }}
|
|
|
|
+ ,{field:'op',align:'center', title: '报错时间', width:140,templet:function(d){
|
|
|
|
+ return "<span title='"+ d.date +"'>" + d.date + "</span>";
|
|
|
|
+ }}
|
|
|
|
+ ,{field:'exceptionDetails',align:'center', title: '报错原因', width:350,templet:function(d){
|
|
|
|
+ return "<span title='"+ d.exceptionDetails +"'>" + d.exceptionDetails + "</span>";
|
|
|
|
+ }}
|
|
|
|
+ , {
|
|
|
|
+ field: 'op', align: 'center', title: "操作", width: 140, templet: function (d) {
|
|
|
|
+ var xml="<div class=\"layui-btn-group\">";
|
|
|
|
+ xml+="<a href=\"${ctx}/workProjectNotifyRecover/workProjectNotifyRecover/recover?id=" + d.id + "\" onclick=\"return confirmx('确认要恢复该待办信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-green\"> 恢复</a>";
|
|
|
|
+ xml+="<a href=\"${ctx}/workProjectNotifyRecover/workProjectNotifyRecover/overlook?id=" + d.id + "\" onclick=\"return confirmx('确认要忽略该待办信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\"> 忽略</a>";
|
|
|
|
+ xml+="</div>"
|
|
|
|
+ return xml;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ]]
|
|
|
|
+ ,data: [
|
|
|
|
+ <c:if test="${ not empty page.list}">
|
|
|
|
+ <c:forEach items="${page.list}" var="workProjectNotify" varStatus="index">
|
|
|
|
+ <c:if test="${index.index != 0}">,</c:if>
|
|
|
|
+ {
|
|
|
|
+ "index":"${index.index+1}"
|
|
|
|
+ ,"id":"${workProjectNotify.id}"
|
|
|
|
+ ,"type":"${workProjectNotify.type}"
|
|
|
|
+ ,"type1":"${fns:getDictLabel(workProjectNotify.type, 'project_notify_type', '')}"
|
|
|
|
+ ,"step":"${workProjectNotify.notifyRole}"
|
|
|
|
+ ,"title":"${workProjectNotify.title}"
|
|
|
|
+ ,"content":"${workProjectNotify.content}"
|
|
|
|
+ ,"submit":"${fns:getUserById(workProjectNotify.user.id).name}"
|
|
|
|
+ ,"date":"<fmt:formatDate value="${workProjectNotify.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
|
|
|
|
+ ,"remarks":"${workProjectNotify.remarks}"
|
|
|
|
+ ,"notifyId":"${workProjectNotify.notifyId}"
|
|
|
|
+ ,"exceptionDetails":"${workProjectNotify.exceptionDetails}"
|
|
|
|
+ }
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </c:if>
|
|
|
|
+ ]
|
|
|
|
+ // ,even: true
|
|
|
|
+ // ,height: 315
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ function readRows(){
|
|
|
|
+ var checkStatus = layui.table.checkStatus('contentTable');
|
|
|
|
+ var data = checkStatus.data;
|
|
|
|
+ var ids="";
|
|
|
|
+ for(var i = 0; i < data.length;i++)
|
|
|
|
+ {
|
|
|
|
+ if(i != 0)
|
|
|
|
+ ids += "," + data[i].id;
|
|
|
|
+ else
|
|
|
|
+ ids += data[i].id;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(ids == ""){
|
|
|
|
+ top.layer.alert('请至少选择一条数据!', {icon: 0, title:'警告'});
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ top.layer.confirm('确认要忽略该信息吗?', {icon: 3, title:'系统提示'}, function(index){
|
|
|
|
+ $.ajax({
|
|
|
|
+ type:'post',
|
|
|
|
+ url:"/a/workProjectNotifyRecover/workProjectNotifyRecover/overlookAll?ids="+ids,
|
|
|
|
+ success:function(data){
|
|
|
|
+ top.layer.close(index);
|
|
|
|
+ if(data.success){
|
|
|
|
+ top.layer.msg(data.message, {icon: 1});
|
|
|
|
+ }else{
|
|
|
|
+ top.layer.msg(data.message, {icon: 0});
|
|
|
|
+ }
|
|
|
|
+ window.location.reload();
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ $('#readRows').on('click',readRows);
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ resizeListTable(140);
|
|
|
|
+ $("a").on("click",addLinkVisied);
|
|
|
|
+</script>
|
|
|
|
+<script>
|
|
|
|
+ resizeListWindow1();
|
|
|
|
+ $(window).resize(function(){
|
|
|
|
+ resizeListWindow1();
|
|
|
|
+ });
|
|
|
|
+</script>
|
|
|
|
+</body>
|
|
|
|
+</html>
|