From 4d52e5abb3a3691125966fe88572bf235b147523 Mon Sep 17 00:00:00 2001 From: Grain-Yu Date: Wed, 6 Dec 2023 15:59:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=86=85=E5=AE=B9=E8=B6=85?= =?UTF-8?q?=E9=95=BF=E6=97=B6=E4=BB=A5=E7=BC=A9=E7=95=A5=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/templates/slowquery.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sql/templates/slowquery.html b/sql/templates/slowquery.html index 3225390..4633161 100644 --- a/sql/templates/slowquery.html +++ b/sql/templates/slowquery.html @@ -458,7 +458,16 @@ }, { title: '优化-内容', field: 'Comments', - sortable:true + formatter: function (value, row, index) { + if (value != null) { + if (value.length > 20) { + var sql = value.substr(0, 20) + '...'; + return sql; + } else { + return value + } + } + } }, { title: '优化-状态', field: 'ReviewedStatus',