Commit cb471566 by 杨树贤

修改上传格式

parent 50d2dfea
......@@ -129,7 +129,7 @@ class SupplierExaminationApiController extends Controller
if ($file->isValid()) {
$ext = $file->getClientOriginalExtension();
$realPath = $file->getRealPath();
if ($ext != 'csv') {
if ($ext != 'xlsx') {
$this->response(-1, '上传格式错误');
}
// 上传文件
......
No preview for this file type
......@@ -207,7 +207,7 @@
elem: '#import_supplier_examination', //绑定元素
url: '/api/supplier_examination/ImportSupplierExamination', //上传接口
auto: true,
exts: 'csv',
exts: 'xlsx',
before: function (obj) { //obj参数包含的信息,跟 choose回调完全一致,可参见上文。
layer.msg('上传中', {icon: 16}); //上传loading
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment