浏览代码

Update excel.xlsx.js

邹景立 4 年之前
父节点
当前提交
ca1666a8bf
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      public/static/plugs/jquery/excel.xlsx.js

+ 2 - 4
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) {