Commit ffa0709684bbd8aac882c51e9cc1c8638118b4c4

Authored by 周峰
1 parent 73eea627

打jar包后找不到模板

src/main/java/com/huaheng/pc/monitor/apilog/controller/ApiLogController.java
... ... @@ -49,7 +49,7 @@ public class ApiLogController extends BaseController {
49 49 @RequiresPermissions("monitor:apiLog:view")
50 50 @GetMapping()
51 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 53 </select>
54 54 </li>
55 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 58 </li>
59 59 <li class="time">
60 60 <label>请求时间:</label>
... ... @@ -199,21 +199,22 @@
199 199 return actions.join(" ")
200 200 }
201 201 },
202   -
  202 + /**
203 203 {
204 204 field: 'requestHeader',
205   - title: '请求头',
206   - visible: false
  205 + title: '请求头'
207 206 },
  207 + **/
208 208  
209 209 {
210 210 field: 'requestBody',
211 211 title: '请求内容',
212 212 formatter: function(value, row, index) {
213 213 var actions = [];
214   - if(value == undefined)
  214 + if(value == undefined || value == '')
215 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 218 return actions.join(" ")
218 219 }
219 220 },
... ... @@ -230,7 +231,8 @@
230 231 var actions = [];
231 232 if(value == undefined)
232 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 236 return actions.join(" ")
235 237 }
236 238 },
... ... @@ -242,7 +244,8 @@
242 244 var actions = [];
243 245 if(value == undefined)
244 246 value = " "
245   - actions.push('<span style="color:red">'+value+ '</span>')
  247 + else
  248 + actions.push('<span style="color:red">'+value+ '</span>')
246 249 return actions.join(" ")
247 250 }
248 251 }
... ...