From a5226b771363ab6022f8c8dbaa99ba2d4a679de1 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Thu, 14 Mar 2019 18:50:21 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E4=BB=A3=E7=A0=81=EF=BC=9A?= =?UTF-8?q?=E5=85=A8=E7=AB=99=E5=A2=9E=E5=8A=A0=E5=AF=B9=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E9=98=B2=E6=8A=A4=20link=20#ITJ53?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #Issue https://gitee.com/LongbowEnterprise/dashboard/issues?id=ITJ53 #Comment 增加扩展原有列的formatter对数据进行保护 --- Bootstrap.Admin/wwwroot/lib/longbow/longbow.common.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Bootstrap.Admin/wwwroot/lib/longbow/longbow.common.js b/Bootstrap.Admin/wwwroot/lib/longbow/longbow.common.js index 6e6c818a..e8eeaa95 100644 --- a/Bootstrap.Admin/wwwroot/lib/longbow/longbow.common.js +++ b/Bootstrap.Admin/wwwroot/lib/longbow/longbow.common.js @@ -335,6 +335,12 @@ return $.safeHtml(value); } } + else { + var formatter = value.formatter; + value.formatter = function(value, row, index, field) { + return formatter.call(this, $.safeHtml(value), row, index, field); + } + } }); this.bootstrapTable(settings); $('.bootstrap-table .fixed-table-toolbar .columns .export .dropdown-menu').addClass("dropdown-menu-right");