Skip to content

Commit

Permalink
解決:SQL审核->SQL分析页面,当SQL中包含 != 的时候,会导致查看按钮显示异常,无法展示相应的SQL建议的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
johnliu2008 authored and hhyo committed Oct 25, 2020
1 parent bf21f79 commit 1c427f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/templates/sqlanalyze.html
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ <h4 class="modal-title text-danger">分析报告</h4>
title: '分析报告',
field: 'operation',
formatter: function (value, row, index) {
return "<button class=\"btn btn-info btn-xs\" report=\"" + row.report + "\"\n" + "onclick=\"getReport(this)\" >查看\n" + "</button>"
return "<button class=\"btn btn-info btn-xs\" report=\"" + row.report.replace(/"<>\.*/gm,'<\>才是标准SQL中的不等于运算符') + "\"\n" + "onclick=\"getReport(this)\" >查看\n" + "</button>"
}
}],
onLoadSuccess: function () {
Expand Down

0 comments on commit 1c427f9

Please sign in to comment.