Prechádzať zdrojové kódy

修复 report id 变为 字符串类型带来的跳转失败

insomniaLee 5 rokov pred
rodič
commit
f083efa369

+ 1 - 1
src/main/resources/templates/agg_report_new.html

@@ -227,7 +227,7 @@
                                                       style="color: #3c8dbc; margin-right: 5px;"></span>
                                                     <a th:href="'/report/'+${report.id}+'?examId=' + ${examId} + '&amp;caseId=' + ${caseId}" style="margin-right: 5px;" th:text="${report.id}"></a>
                                                     <!--查看树状报告-->
-                                                    <span th:if="${single2root.get(report.id)!=null} and ${showReference}"  th:onclick="'changeToTree('+${single2root.get(report.id)}+')'"
+                                                    <span th:if="${single2root.get(report.id)!=null} and ${showReference}"  th:onclick="'changeToTree(\''+${single2root.get(report.id)}+'\')'"
                                                            class="glyphicon glyphicon-tree-conifer"
                                                            style="color: #07b309; margin-right: 5px;" >
                                                     </span>

+ 3 - 2
src/main/resources/templates/tree_report_new.html

@@ -224,7 +224,7 @@
                                                     <!--查看聚合报告-->
                                                      <span th:if="(${report2master.get(supplement.getId())!=null }) and ${showReference}"
                                                           class="fa fa-sitemap text-warning"
-                                                           th:onclick="'changeToAgg('+${report2master.get(supplement.getId())}+')'"
+                                                           th:onclick="'changeToAgg( \''+${report2master.get(supplement.getId())}+'\')'"
                                                           style="color: #8a6d3b; margin-right: 5px;" >
                                                     </span>
 
@@ -656,7 +656,8 @@
         // $('#summary').hide();
         /*<![CDATA[*/
         $('#summary').hide();
-        $("#aggPart").load("/report_part?masterId="+master_id+"&caseId="+ caseId +"&examId="+ examId);
+        var url = "/report_part?masterId="+master_id+"&caseId="+ caseId +"&examId="+ examId;
+        $("#aggPart").load(url);
         $("#backButton").show();
         $('#aggPart').show();
         $('#showPicture').html("聚合图")