From 8f7ac074b2d1ba3b5ba880e351d0bc0472055761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Tue, 11 Jul 2023 15:28:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20table=20=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E8=A1=8C=E4=B8=AD=E8=8B=A5=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E9=80=97=E5=8F=B7=E5=87=BA=E7=8E=B0=E7=9A=84=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E5=88=86=E9=9A=94=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/table.js b/src/modules/table.js index 059f29c1..b72fbf60 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -2796,7 +2796,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ // 表合计 thatTable && layui.each(thatTable.dataTotal, function(i, o){ - fieldsIsHide[o.field] || dataTotal.push(o.total); + fieldsIsHide[o.field] || dataTotal.push('"' + (o.total || '') + '"'); }); return dataTitle.join(',') + '\r\n' + dataMain.join('\r\n') + '\r\n' + dataTotal.join(',');