mirror of https://github.com/layui/layui
修复 table 导出统计行中若存在逗号出现的内容分隔异常问题
parent
c323af0d8a
commit
8f7ac074b2
|
@ -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(',');
|
||||
|
|
Loading…
Reference in New Issue