From ca1666a8bf5b3ff7e0cbb1879492fab3ab0b1a96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Mon, 1 Feb 2021 18:08:08 +0800 Subject: [PATCH] Update excel.xlsx.js --- public/static/plugs/jquery/excel.xlsx.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/public/static/plugs/jquery/excel.xlsx.js b/public/static/plugs/jquery/excel.xlsx.js index ce9705d49..2726172e8 100644 --- a/public/static/plugs/jquery/excel.xlsx.js +++ b/public/static/plugs/jquery/excel.xlsx.js @@ -95,13 +95,11 @@ define(function () { /*! 执行导入的数据 */ function doPostItem(idx, item, info, result) { if (idx >= total) { - info = '共处理' + total + '条记录' + '( 成功 ' + oks + ' 条, 失败 ' + ers + ' 条 )'; - return clearAll(), $.msg.success(info, 3, function () { + return clearAll(), $.msg.success('共处理' + total + '条记录( 成功 ' + oks + ' 条, 失败 ' + ers + ' 条 )', 3, function () { $.form.reload(); }); } else { - info = (idx * 100 / total).toFixed(2) + '%( 成功 ' + oks + ' 条, 失败 ' + ers + ' 条 )'; - $('[data-load-count]').html(info); + $('[data-load-count]').html((idx * 100 / total).toFixed(2) + '%( 成功 ' + oks + ' 条, 失败 ' + ers + ' 条 )'); /*! 单元数据过滤 */ result = item; if (filterFn && (result = filterFn(item)) === false) {