From 0e839ebf2b6de85aa007126a2e0a5b78b09e6952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Sat, 23 Jan 2021 16:49:24 +0800 Subject: [PATCH] Update excel.xlsx.js --- public/static/plugs/jquery/excel.xlsx.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/public/static/plugs/jquery/excel.xlsx.js b/public/static/plugs/jquery/excel.xlsx.js index a8892f2dd..0860c6be5 100644 --- a/public/static/plugs/jquery/excel.xlsx.js +++ b/public/static/plugs/jquery/excel.xlsx.js @@ -94,17 +94,14 @@ define(['xlsx'], function () { doPostItem(0, items[0]); /*! 执行导入的数据 */ - function doPostItem(index, item, message) { + function doPostItem(index, item, result) { if (index >= total) { - message = '共处理' + total + '条记录' + '( 成功 ' + oks + ' 条, 失败 ' + ers + ' 条 )'; - return closeAll(), jQuery.msg.success(message, 3, function () { + return closeAll(), jQuery.msg.success('共处理' + total + '条记录' + '( 成功 ' + oks + ' 条, 失败 ' + ers + ' 条 )', 3, function () { jQuery.form.reload(); }); } else { - message = (index * 100 / total).toFixed(2) + '%( 成功 ' + oks + ' 条, 失败 ' + ers + ' 条 )'; - jQuery('[data-load-progress]').html(message); + jQuery('[data-load-progress]').html((index * 100 / total).toFixed(2) + '%( 成功 ' + oks + ' 条, 失败 ' + ers + ' 条 )'); /*! 单元数据过滤 */ - var result = item; if (filterFn && (result = filterFn(item)) === false) { return (ers++), doPostItem(index + 1, items[index + 1]); }