diff --git a/app/customer/view/index/sea.html b/app/customer/view/index/sea.html index 31b732c..b3857e8 100644 --- a/app/customer/view/index/sea.html +++ b/app/customer/view/index/sea.html @@ -191,6 +191,7 @@ ,url: '/api/import/import_customer' ,auto: false ,accept: 'file' //普通文件 + ,acceptMime: 'application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' // 此处设置上传的文件格式 ,exts: 'xls|xlsx' //只允许上传文件格式 ,bindAction: '#uploadAjax' ,choose: function(obj){ diff --git a/app/user/view/user/index.html b/app/user/view/user/index.html index 5a4435c..2c8f119 100644 --- a/app/user/view/user/index.html +++ b/app/user/view/user/index.html @@ -144,6 +144,7 @@ ,url: '/api/import/import_admin' ,auto: false ,accept: 'file' //普通文件 + ,acceptMime: 'application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' // 此处设置上传的文件格式 ,exts: 'xls|xlsx' //只允许上传文件格式 ,bindAction: '#uploadAjax' ,choose: function(obj){