Update excel.xlsx.js

This commit is contained in:
邹景立 2021-02-01 18:08:08 +08:00
parent a54704f385
commit ca1666a8bf

View File

@ -95,13 +95,11 @@ define(function () {
/*! 执行导入的数据 */ /*! 执行导入的数据 */
function doPostItem(idx, item, info, result) { function doPostItem(idx, item, info, result) {
if (idx >= total) { if (idx >= total) {
info = '共处理' + total + '条记录' + ' 成功 ' + oks + ' 条, 失败 ' + ers + ' 条 '; return clearAll(), $.msg.success('共处理' + total + '条记录( 成功 ' + oks + ' 条, 失败 ' + ers + ' 条 ', 3, function () {
return clearAll(), $.msg.success(info, 3, function () {
$.form.reload(); $.form.reload();
}); });
} else { } else {
info = (idx * 100 / total).toFixed(2) + '% 成功 ' + oks + ' 条, 失败 ' + ers + ' 条 '; $('[data-load-count]').html((idx * 100 / total).toFixed(2) + '% 成功 ' + oks + ' 条, 失败 ' + ers + ' 条 ');
$('[data-load-count]').html(info);
/*! 单元数据过滤 */ /*! 单元数据过滤 */
result = item; result = item;
if (filterFn && (result = filterFn(item)) === false) { if (filterFn && (result = filterFn(item)) === false) {