Browse Source

更新页面显示

hejq 7 years ago
parent
commit
647b2cea9c

+ 7 - 1
src/main/webapp/WEB-INF/views/normal/logs.html

@@ -51,12 +51,18 @@
         word-break: break-all;
         word-wrap: break-word;
     }
-    #para-content {
+    #para-content  {
         word-break: break-all;
         word-wrap: break-word;
         max-height: 450px;
+        max-width: 600px;
         overflow: scroll;
     }
+    /*#pa_detail pre {
+        max-height: 200px;
+        max-width: 600px;
+        overflow: scroll;
+    }*/
 </style>
 <div id="loadingDiv">
 	<div id="loadingImg">

+ 4 - 2
src/main/webapp/resources/js/common/log.js

@@ -138,9 +138,11 @@ function getDataRow(log, i) {
     row.appendChild(msgCell);
 
     var detailCell = document.createElement('td'); //detail
-    detailCell.setAttribute("class", "text-center");
+    detailCell.setAttribute("class", "text-left");
     detailCell.setAttribute("title", log.detail);
-    detailCell.innerHTML = log.detail; //填充数据
+    detailCell.setAttribute("id", "pa_detail");
+    var result = JSON.stringify(JSON.parse(log.detail), null, 4);
+    $("<pre>").text(result).appendTo(detailCell);
     row.appendChild(detailCell);
 
     var paraCell = document.createElement('td'); //parameters