From 696c27e481b1c2e437c9389c1ca7c8a1c498f87e Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 05 六月 2020 16:19:45 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/matCode/matCode.js |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/src/main/webapp/static/js/matCode/matCode.js b/src/main/webapp/static/js/matCode/matCode.js
index d275886..3208ba7 100644
--- a/src/main/webapp/static/js/matCode/matCode.js
+++ b/src/main/webapp/static/js/matCode/matCode.js
@@ -117,15 +117,23 @@
     });
 
     // 瀵煎叆excel
-
     upload.render({
         elem: '#uploadEx'
-        , url: baseUrl + '/matCode/import/auth' //鏀规垚鎮ㄨ嚜宸辩殑涓婁紶鎺ュ彛
+        , url: baseUrl + '/matCode/import/auth'
         , headers: {token: localStorage.getItem('token')}
-        , accept: 'file' //鏅�氭枃浠�
-        , exts: 'xls|excel|xlsx' //鍙厑璁哥殑鏂囦欢鍚庣紑
+        , accept: 'file'
+        , exts: 'xls|excel|xlsx'
+        , auto: false
+        , bindAction: '#uploadDo'
+        , choose: function(obj){
+            layui.$('#uploadDemoView').removeClass('layui-hide');
+            obj.preview(function(index, file, result){
+                console.log(file.name); //寰楀埌鏂囦欢鍚嶇О
+            });
+        }
         , done: function (res) {
             layer.msg('涓婁紶鎴愬姛');
+            limit();
         }
     })
 
@@ -225,6 +233,7 @@
                     type: 1,
                     title: '鏁版嵁瀵煎叆',
                     maxmin: true,
+                    area: [top.detailWidth, top.detailHeight],
                     shadeClose: true,
                     content: $('#importDataDiv'),
                     success: function(layero, index){

--
Gitblit v1.9.1