Commit 86c4c18a9c4e5b3882293e2f39c1e317829fcfd5

Authored by DESKTOP-AO0VKC8\mahua
2 parents 72a2c94f ffa07096

Merge remote-tracking branch 'origin/develop' into develop

src/main/java/com/huaheng/pc/monitor/apilog/controller/ApiLogController.java
@@ -49,7 +49,7 @@ public class ApiLogController extends BaseController { @@ -49,7 +49,7 @@ public class ApiLogController extends BaseController {
49 @RequiresPermissions("monitor:apiLog:view") 49 @RequiresPermissions("monitor:apiLog:view")
50 @GetMapping() 50 @GetMapping()
51 public String apiLog() { 51 public String apiLog() {
52 - return prefix + "/apiLog"; 52 + return prefix + "/apilog";
53 } 53 }
54 54
55 55
src/main/resources/templates/monitor/apilog/apilog.html
@@ -53,8 +53,8 @@ @@ -53,8 +53,8 @@
53 </select> 53 </select>
54 </li> 54 </li>
55 <li> 55 <li>
56 - <label>响应时间</label>  
57 - <input type="number" name="paramDuration" placeholder="1000毫秒"/> 56 + <label>响应时间 &gt; </label>
  57 + <input type="text" name="paramDuration" placeholder="1000毫秒"/>
58 </li> 58 </li>
59 <li class="time"> 59 <li class="time">
60 <label>请求时间:</label> 60 <label>请求时间:</label>
@@ -199,21 +199,22 @@ @@ -199,21 +199,22 @@
199 return actions.join(" ") 199 return actions.join(" ")
200 } 200 }
201 }, 201 },
202 - 202 + /**
203 { 203 {
204 field: 'requestHeader', 204 field: 'requestHeader',
205 - title: '请求头',  
206 - visible: false 205 + title: '请求头'
207 }, 206 },
  207 + **/
208 208
209 { 209 {
210 field: 'requestBody', 210 field: 'requestBody',
211 title: '请求内容', 211 title: '请求内容',
212 formatter: function(value, row, index) { 212 formatter: function(value, row, index) {
213 var actions = []; 213 var actions = [];
214 - if(value == undefined) 214 + if(value == undefined || value == '')
215 value = " " 215 value = " "
216 - actions.push('<pre style="white-space: pre-wrap; width:350px" ondblclick="copy(this)" title="双击复制">'+value+ '</pre>') 216 + else
  217 + actions.push('<pre style="max-height:100px; white-space: pre-wrap; width:350px" ondblclick="copy(this)" title="双击复制">'+value+ '</pre>')
217 return actions.join(" ") 218 return actions.join(" ")
218 } 219 }
219 }, 220 },
@@ -230,7 +231,8 @@ @@ -230,7 +231,8 @@
230 var actions = []; 231 var actions = [];
231 if(value == undefined) 232 if(value == undefined)
232 value = " " 233 value = " "
233 - actions.push('<pre style="white-space: pre-wrap; width:350px" ondblclick="copy(this)" title="双击复制">'+value+ '</pre>') 234 + else
  235 + actions.push('<pre style="vertical-align: top; max-height:100px; white-space: pre-wrap; width:350px" ondblclick="copy(this)" title="双击复制">'+value+ '</pre>')
234 return actions.join(" ") 236 return actions.join(" ")
235 } 237 }
236 }, 238 },
@@ -242,7 +244,8 @@ @@ -242,7 +244,8 @@
242 var actions = []; 244 var actions = [];
243 if(value == undefined) 245 if(value == undefined)
244 value = " " 246 value = " "
245 - actions.push('<span style="color:red">'+value+ '</span>') 247 + else
  248 + actions.push('<span style="color:red">'+value+ '</span>')
246 return actions.join(" ") 249 return actions.join(" ")
247 } 250 }
248 } 251 }