diff --git a/src/main/webapp/static/pages/scripts/pageLogs.js b/src/main/webapp/static/pages/scripts/pageLogs.js index c7c18cd8c..f698abf5f 100644 --- a/src/main/webapp/static/pages/scripts/pageLogs.js +++ b/src/main/webapp/static/pages/scripts/pageLogs.js @@ -11,6 +11,15 @@ $(document).ready(function() { // 设置界面标题宽度(不包括第一列) var px = getPixelsCount($(this).text(),fontSize)+32; this.setAttribute('width',px+'px'); + // URL列加宽 + var th = this; + var thText = this.innerText; + $("table.logTb td").each(function(){ + var tdText = this.innerText; + if((tdText.trim().length > thText.trim().length) && (thText == "URL" || thText == "Log URI")){ + th.setAttribute('width','110px'); + } + }); }); var tdString = "";