hzh 4 سال پیش
والد
کامیت
2ed1423696
1فایلهای تغییر یافته به همراه9 افزوده شده و 3 حذف شده
  1. 9 3
      src/main/resources/templates/admin/home.html

+ 9 - 3
src/main/resources/templates/admin/home.html

@@ -257,7 +257,7 @@
                         </thead>
                         <tbody>
                         <tr th:each="m,iterStat:${infoContentList}">
-                            <td><a th:onclick="'javascript:gotoContentDetail(\''+${m.id}+'\');'" target="_blank"
+                            <td><a th:onclick="'javascript:gotoNotifyDetail(\''+${m.id}+'\');'" target="_blank"
                                    th:text="${m.title}"></a></td>
                             <td th:text="${m.publish_time}"></td>
                         </tr>
@@ -274,7 +274,7 @@
                         </thead>
                         <tbody>
                         <tr th:each="m,iterStat:${policyContentList}">
-                            <td><a th:onclick="'javascript:gotoContentDetail(\''+${m.id}+'\');'" target="_blank"
+                            <td><a th:onclick="'javascript:gotoPolicyDetail(\''+${m.id}+'\');'" target="_blank"
                                    th:text="${m.title}"></a></td>
                             <td th:text="${m.publish_time}"></td>
                         </tr>
@@ -1378,7 +1378,13 @@
             // min: 0
         });
 
-        function gotoContentDetail(id) {
+        function gotoNotifyDetail(id) {
+            //top.location.href = pagePath + "/home/activityDetail/" + id;
+            // window.open(pagePath + "/home/contentDetail/" + id);
+            window.open(pagePath + "/index/#/newsDetail?id=" + id);
+        }
+
+        function gotoPolicyDetail(id) {
             //top.location.href = pagePath + "/home/activityDetail/" + id;
             // window.open(pagePath + "/home/contentDetail/" + id);
             window.open(pagePath + "/home/policyDetail?bno=" + id);