Преглед на файлове

首页公告查看详情功能bug修复

user5 преди 2 години
родител
ревизия
38e7b1dcb9
променени са 1 файла, в които са добавени 17 реда и са изтрити 2 реда
  1. 17 2
      src/main/webapp/webpage/modules/sys/sysHome.jsp

+ 17 - 2
src/main/webapp/webpage/modules/sys/sysHome.jsp

@@ -82,7 +82,11 @@
                     var elem = $("#msg-bord .bord-right ul");
                     var xml = "";
                     if(count<8){
-                        xml ="<a href=\"javascript:void(0)\" onclick=\"homeOpenDialogView('查看公告', '${ctx}/oa/oaNotify/homeView?id=${item.id}&readAttr=disabled','95%','95%')\"  >";
+                        if(${item.parentType} === 1) {
+                            xml ="<a href=\"javascript:void(0)\" onclick=\"homeOpenDialogView('查看公告', '${ctx}/oa/oaNotify/homeView?id=${item.id}&readAttr=disabled','95%','95%')\"  >";
+                        }else if(${item.parentType} === 2){
+                            xml ="<a href=\"javascript:void(0)\" onclick=\"homeOpenDialogView('查看公告', '${ctx}/knowledgeSharingDetails/knowledgeSharingDetails/view?id=${item.id}&readAttr=disabled','95%','95%')\"  >";
+                        }
 
                         elem.append('<li>' + xml + "<span class=\"bord-record-type\" title=\"${item.typeStr}\">${item.typeStr}</span><span class=\"bord-record\" title=\"${item.title}\">${item.title}</span>"+
                             '<span class="bord-record-flag">'+'${item.readFlagStr}'+'</span>' +
@@ -94,7 +98,11 @@
                         var elem = $("#msg-bord .bord-right ul");
                         var xml = "";
                         if(count<8){
-                            xml ="<a href=\"javascript:void(0)\" onclick=\"homeOpenDialogView('查看公告', '${ctx}/oa/oaNotify/homeView?id=${item.id}&readAttr=disabled','95%','95%')\"  >";
+                            if(${item.parentType} === 1) {
+                                xml ="<a href=\"javascript:void(0)\" onclick=\"homeOpenDialogView('查看公告', '${ctx}/oa/oaNotify/homeView?id=${item.id}&readAttr=disabled','95%','95%')\"  >";
+                            }else if(${item.parentType} === 2){
+                                xml ="<a href=\"javascript:void(0)\" onclick=\"homeOpenDialogView('查看公告', '${ctx}/knowledgeSharingDetails/knowledgeSharingDetails/view?id=${item.id}&readAttr=disabled','95%','95%')\"  >";
+                            }
                             elem.append('<li>' + xml + "<span class=\"bord-record-type\" title=\"${item.typeStr}\">${item.typeStr}</span><span class=\"bord-record\" title=\"${item.title}\">${item.title}</span>"+
                                 '<span class="bord-record-flag">'+'${item.readFlagStr}'+'</span>' +
                                 '<span class="bord-record-time">' + '<fmt:formatDate value="${item.updateDate}" pattern="yyyy-MM-dd"/>' + '</span></a></li>');
@@ -1128,6 +1136,13 @@
         <c:forEach items="${page}" var="oaNotify" varStatus="index">
         <c:if test="${index.index < 8}">
         xml ="<a href=\"javascript:void(0)\" onclick=\"homeOpenDialogView('查看公告', '${ctx}/oa/oaNotify/homeView?id=${oaNotify.id}&readAttr=disabled','95%','95%')\"  >";
+
+        if(${oaNotify.parentType} === 1) {
+            xml ="<a href=\"javascript:void(0)\" onclick=\"homeOpenDialogView('查看公告', '${ctx}/oa/oaNotify/homeView?id=${oaNotify.id}&readAttr=disabled','95%','95%')\"  >";
+        }else if(${oaNotify.parentType} === 2){
+            xml ="<a href=\"javascript:void(0)\" onclick=\"homeOpenDialogView('查看公告', '${ctx}/knowledgeSharingDetails/knowledgeSharingDetails/view?id=${oaNotify.id}&readAttr=disabled','95%','95%')\"  >";
+        }
+
         elem.append('<li>' + xml + "<span class=\"bord-record-type\" title=\"${oaNotify.typeStr}\">${oaNotify.typeStr}</span><span class=\"bord-record\" title=\"${oaNotify.title}\">${oaNotify.title}</span>"+
             '<span class="bord-record-flag">'+'${oaNotify.readFlagStr}'+'</span>' +
             '<span class="bord-record-time">' + '<fmt:formatDate value="${oaNotify.updateDate}" pattern="yyyy-MM-dd"/>' + '</span></a></li>');