Browse Source

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

pull/1307/head
贤心 1 year ago
parent
commit
8f7ac074b2
  1. 2
      src/modules/table.js

2
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){ 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(','); return dataTitle.join(',') + '\r\n' + dataMain.join('\r\n') + '\r\n' + dataTotal.join(',');

Loading…
Cancel
Save