Skip to content

Commit

Permalink
优化内容超长时以缩略方式显示
Browse files Browse the repository at this point in the history
  • Loading branch information
Grain-Yu committed Dec 6, 2023
1 parent 1c9b473 commit 4d52e5a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion sql/templates/slowquery.html
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 4d52e5a

Please sign in to comment.