修复 table 导出统计行中若存在逗号出现的内容分隔异常问题

pull/1307/head
贤心 2023-07-11 15:28:10 +08:00
parent c323af0d8a
commit 8f7ac074b2
1 changed files with 1 additions and 1 deletions

View File

@ -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(',');