|
@@ -0,0 +1,386 @@
|
|
|
|
+<%@ 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" src="${ctxStatic}/layui/layui.js"></script>
|
|
|
|
+ <link rel='stylesheet' type="text/css" href="${ctxStatic}/layui/css/layui.css"/>
|
|
|
|
+ <style>
|
|
|
|
+ .wrapForm {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 530px;
|
|
|
|
+ margin-top: -93px;
|
|
|
|
+ }
|
|
|
|
+ .mask{
|
|
|
|
+ width: 100%;
|
|
|
|
+ height:100%;
|
|
|
|
+ }
|
|
|
|
+ .layui-input-block{
|
|
|
|
+ border-top: 1px solid #cccccc;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ border-radius: 3px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .comment_list {
|
|
|
|
+ padding-top:40px;
|
|
|
|
+ width:700px;
|
|
|
|
+ margin:0 auto;
|
|
|
|
+ }
|
|
|
|
+ .comment_details {
|
|
|
|
+ float:left;
|
|
|
|
+ }
|
|
|
|
+ .comment_content {
|
|
|
|
+ margin-top:10px;
|
|
|
|
+ font-size:16px;
|
|
|
|
+ }
|
|
|
|
+ .comment_add_or_last {
|
|
|
|
+
|
|
|
|
+ margin:0 auto;
|
|
|
|
+ clear: both;
|
|
|
|
+ width:600px;
|
|
|
|
+ height:40px;
|
|
|
|
+ background: #F0F0F0;
|
|
|
|
+ text-align: center;
|
|
|
|
+ line-height: 40px; //行高(与div保持同高,垂直居中写法)
|
|
|
|
+ }
|
|
|
|
+ .imgdiv{
|
|
|
|
+ float:left;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ .imgcss {
|
|
|
|
+ width:50px;
|
|
|
|
+ height:50px;
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ }
|
|
|
|
+ .comment_name {
|
|
|
|
+ margin-left:10px;
|
|
|
|
+ color:#3D9EEA;
|
|
|
|
+ font-size:15px;
|
|
|
|
+ font-weight: bolder;
|
|
|
|
+ }
|
|
|
|
+ .layui-icon {
|
|
|
|
+ font-size: 10px;
|
|
|
|
+ color: grey;
|
|
|
|
+ }
|
|
|
|
+ .del {
|
|
|
|
+ margin-left: 55px;
|
|
|
|
+ }
|
|
|
|
+ </style>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <script>
|
|
|
|
+ function deleteComment(id) {
|
|
|
|
+ $.ajax({
|
|
|
|
+ type:"post",
|
|
|
|
+ url:'${ctx}/knowledgeSharingDetails/knowledgeSharingDetails/deleteComment',
|
|
|
|
+ data:{"id":id},
|
|
|
|
+ dataType:"json",
|
|
|
|
+ success:function(data){
|
|
|
|
+ if(data.success) {
|
|
|
|
+ //$("#"+divId).remove();
|
|
|
|
+ top.layer.msg("删除成功!", {icon: 1});
|
|
|
|
+ location.reload();
|
|
|
|
+ }else {
|
|
|
|
+ top.layer.msg("删除失败!", {icon: 0});
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function submitComment() {
|
|
|
|
+ var knowledgeSharingId = $("#id").val();
|
|
|
|
+ var content = $("#commentContent").val();
|
|
|
|
+ if(undefined != content && null != content && '' != content){
|
|
|
|
+ $.ajax({
|
|
|
|
+ type:"post",
|
|
|
|
+ url:'${ctx}/knowledgeSharingDetails/knowledgeSharingDetails/saveComment',
|
|
|
|
+ data:{"knowledgeSharingId":knowledgeSharingId,"content":content},
|
|
|
|
+ dataType:"json",
|
|
|
|
+ success:function(data){
|
|
|
|
+ if(data.success) {
|
|
|
|
+ top.layer.msg("发表成功!", {icon: 1});
|
|
|
|
+ location.reload();
|
|
|
|
+ }else {
|
|
|
|
+ top.layer.msg("发表失败!", {icon: 0});
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ function resetComment() {
|
|
|
|
+ $("#commentContent").val("");
|
|
|
|
+ }
|
|
|
|
+ </script>
|
|
|
|
+</head>
|
|
|
|
+<body>
|
|
|
|
+<div class="single-form">
|
|
|
|
+ <div class="container view-form">
|
|
|
|
+ <form:form id="inputForm" modelAttribute="knowledgeSharingInfo" class="form-horizontal layui-form">
|
|
|
|
+ <form:hidden path="id"/>
|
|
|
|
+ <div class="form-group layui-row first">
|
|
|
|
+ <div class="form-group-label"><h2>知识分享信息</h2></div>
|
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
|
+ <label class="layui-form-label">栏目名称:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input htmlEscape="false" readonly="true" class="form-control layui-input"
|
|
|
|
+ value="${knowledgeSharingInfo.columnName}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
|
+ <label class="layui-form-label">主题:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input htmlEscape="false" readonly="true" class="form-control layui-input"
|
|
|
|
+ value="${knowledgeSharingInfo.subject}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="layui-item layui-col-sm12" style="padding-bottom: 20px;">
|
|
|
|
+ <label class="layui-form-label">内容:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <div class="wrapForm">
|
|
|
|
+ <div class="mask">
|
|
|
|
+ <form:textarea path="contents" disabled="true" htmlEscape="false" colspan="3" rows="6" maxlength="550"
|
|
|
|
+ class="form-control "/>
|
|
|
|
+ <sys:ckeditorView replace="contents" uploadPath="/oa/oa"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="form-group layui-row">
|
|
|
|
+ <div class="form-group-label"><h2>公告附件</h2></div>
|
|
|
|
+ <div class="layui-item layui-col-xs12" style="padding:0 16px;">
|
|
|
|
+ <table id="upTable" class="table table-bordered table-condensed details">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <%-- <th>序号</th>--%>
|
|
|
|
+ <th>文件预览</th>
|
|
|
|
+ <th>上传人</th>
|
|
|
|
+ <th>上传时间</th>
|
|
|
|
+ <th width="150px">操作</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody id="file_attachment">
|
|
|
|
+
|
|
|
|
+ <c:forEach items="${knowledgeSharingInfo.workAttachments}" var="workClientAttachment" varStatus="status">
|
|
|
|
+ <tr>
|
|
|
|
+ <%-- <td>${status.index + 1}</td>--%>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${knowledgeSharingInfo.uploadMode == 2}">
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
|
+ <td><img src="${workClientAttachment.temporaryUrl}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.temporaryUrl}','90%','90%')" alt="${workClientAttachment.attachmentName}">
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',1)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'rar')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'zip')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jar')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'7z')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',3)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'avi')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'wmv')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'mpg')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'mpeg')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'mov')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'rm')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'ram')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'swf')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'flv')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'mp4')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'rmvb')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openDialogView('预览','${ctx}/sys/picturepreview/videoPreview?url=${workClientAttachment.temporaryUrl}','90%','90%')" >${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.temporaryUrl}',2)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
|
+ <td><img src="${workClientAttachment.url}" width="50" height="50"
|
|
|
|
+ onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.url}','90%','90%')"
|
|
|
|
+ alt="${workClientAttachment.attachmentName}"></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)"
|
|
|
|
+ onclick="openPreview('${workClientAttachment.url}',1)">${workClientAttachment.attachmentName}</a>
|
|
|
|
+ </td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'rar')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'zip')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jar')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'7z')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.url}',3)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'avi')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'wmv')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'mpg')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'mpeg')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'mov')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'rm')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'ram')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'swf')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'flv')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'mp4')
|
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'rmvb')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openDialogView('预览','${ctx}/sys/picturepreview/videoPreview?url=${workClientAttachment.url}','90%','90%')" >${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${workClientAttachment.url}',2)">${workClientAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <td>${workClientAttachment.createBy.name}</td>
|
|
|
|
+ <td><fmt:formatDate value="${workClientAttachment.createDate}" type="both"/></td>
|
|
|
|
+ <td class="op-td">
|
|
|
|
+ <div class="op-btn-box">
|
|
|
|
+ <%--附件下载删除--%>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${knowledgeSharingInfo.uploadMode == 2}">
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
|
+ <a href="${workClientAttachment.temporaryUrl}" target="_blank" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <a href="${workClientAttachment.temporaryUrl}" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent('${workClientAttachment.url}');" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ <c:if test="${workClientAttachment.collectFlag != 1}">
|
|
|
|
+ <a href="javascript:void(0)" onclick="collectingAccessory(this,'${ctx}/projectAccessory/projectAccessory/saveCollectAccessory','${workClientAttachment.url}','${workClientAttachment.createBy.id}','${workClientAttachment.fileSize}')" class="op-btn op-btn-delete" style="background-color: #FFB800"><i class="layui-icon layui-icon-rate"></i> 收藏</a>
|
|
|
|
+ </c:if>
|
|
|
|
+ </div>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:forEach>
|
|
|
|
+
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <div class="form-group layui-row">
|
|
|
|
+ <div class="form-group-label"><h2>访问日志</h2></div>
|
|
|
|
+ <div class="layui-item layui-col-xs12" style="padding:0 16px;">
|
|
|
|
+ <table id="viewTable" class="table table-bordered table-condensed details">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <th width="60px">序号</th>
|
|
|
|
+ <th>访问人</th>
|
|
|
|
+ <th>首次访问时间</th>
|
|
|
|
+ <th>最近访问时间</th>
|
|
|
|
+ <th>访问次数</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody id="oa_notify_view">
|
|
|
|
+
|
|
|
|
+ <c:forEach items="${knowledgeSharingViewList}" var="knowledgeSharingView" varStatus="status">
|
|
|
|
+ <tr>
|
|
|
|
+ <td>${status.index + 1}</td>
|
|
|
|
+ <td>${knowledgeSharingView.userName}</td>
|
|
|
|
+ <td>
|
|
|
|
+ <fmt:formatDate value="${knowledgeSharingView.firstVisitTime}" type="both"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <fmt:formatDate value="${knowledgeSharingView.lastVisitTime}" type="both"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>${knowledgeSharingView.visitCount}</td>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:forEach>
|
|
|
|
+
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="form-group layui-row">
|
|
|
|
+ <div class="form-group-label"><h2>发表评论</h2></div>
|
|
|
|
+ <div class="layui-item layui-col-xs12 with-textarea">
|
|
|
|
+ <div class="layui-input-block" style="margin-left:0px;position: relative">
|
|
|
|
+ <form:textarea placeholder="请输入评论信息:" path="commentContent" class="form-control required" rows="4" maxlength="255" />
|
|
|
|
+ </div>
|
|
|
|
+ <div style="float: right;margin-right: 10%">
|
|
|
|
+ <br/>
|
|
|
|
+ <a href="javascript:void(0)" id="submitComment" class="layui-btn" onclick="submitComment()">发表</a>
|
|
|
|
+ <a href="javascript:void(0)" id="resetComment" class="layui-btn layui-btn-primary" onclick="resetComment()">清空</a>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="form-group layui-row">
|
|
|
|
+ <h2 >全部评论(${knowledgeSharingCommentCount}条)</h2>
|
|
|
|
+ <hr>
|
|
|
|
+ <c:forEach items="${knowledgeSharingCommentList}" var="knowledgeSharingComment" varStatus="status">
|
|
|
|
+ <div class="layui-item layui-col-xs12" id="comment${knowledgeSharingComment.id}">
|
|
|
|
+ <div class="conmment_details">
|
|
|
|
+ <span class="comment_name">${knowledgeSharingComment.user.name}</span>
|
|
|
|
+ <div class="comment_content" style="margin-left: 25px;">${knowledgeSharingComment.content}</div>
|
|
|
|
+ <div class="del">
|
|
|
|
+ <br/>
|
|
|
|
+ <span>${knowledgeSharingComment.commentDateStr}前</span>
|
|
|
|
+ <c:if test="${knowledgeSharingComment.flag == 1}">
|
|
|
|
+ <a href="javascript:void(0)" onclick="deleteComment('${knowledgeSharingComment.id}')" style="float: right;margin-right: 100px" class="del_comment" data-id="1"> <i class="icon layui-icon" >删除</i></a>
|
|
|
|
+ </c:if>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <hr>
|
|
|
|
+ </div>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </div>
|
|
|
|
+ <%--<div class="comment_add_or_last" >
|
|
|
|
+ 没有更多评论了
|
|
|
|
+ </div>--%>
|
|
|
|
+
|
|
|
|
+ <div class="form-group layui-row page-end"></div>
|
|
|
|
+ </form:form>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+</body>
|
|
|
|
+</html>
|