From 42763b57161751fda689cdc2af1a10f0b4b1d180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Mon, 23 Nov 2020 09:19:00 +0800 Subject: [PATCH 1/2] 0 --- app/rongyu/view/js_rongyu_info/create_all.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/rongyu/view/js_rongyu_info/create_all.html b/app/rongyu/view/js_rongyu_info/create_all.html index 6180e25c..17e91ee3 100644 --- a/app/rongyu/view/js_rongyu_info/create_all.html +++ b/app/rongyu/view/js_rongyu_info/create_all.html @@ -28,11 +28,12 @@ layui.use('upload', function(){ var upload = layui.upload; - + //执行实例 var uploadInst = upload.render({ elem: '#upload' //绑定元素 ,url: "{$list.set.url}" //上传接口 + ,async:true ,done: function(res){ layer.msg(res.msg); } From 65aaca48c8d767c362e023e9521616ae69840012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Mon, 23 Nov 2020 10:58:17 +0800 Subject: [PATCH 2/2] 0 --- app/keti/view/keti_info/create_all.html | 1 + app/rongyu/view/danwei/create_all.html | 1 + app/rongyu/view/js_rongyu_info/create_all.html | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/keti/view/keti_info/create_all.html b/app/keti/view/keti_info/create_all.html index 35899554..9ee0de26 100644 --- a/app/keti/view/keti_info/create_all.html +++ b/app/keti/view/keti_info/create_all.html @@ -33,6 +33,7 @@ layui.use('upload', function(){ upload.render({ elem: '#upload' ,url: "{$list.set.url}" //改成您自己的上传接口 + ,async:false ,done: function(res){ layer.msg('上传成功'); layui.$('#uploadDemoView').removeClass('layui-hide').find('img').attr('src', res.files.file); diff --git a/app/rongyu/view/danwei/create_all.html b/app/rongyu/view/danwei/create_all.html index ec930ec0..e5fc7c69 100644 --- a/app/rongyu/view/danwei/create_all.html +++ b/app/rongyu/view/danwei/create_all.html @@ -21,6 +21,7 @@ layui.use('upload', function(){ var uploadInst = upload.render({ elem: '#upload' //绑定元素 ,url: "/rongyu/danwei/saveall" //上传接口 + ,async:false ,done: function(res){ layer.msg(res.msg); } diff --git a/app/rongyu/view/js_rongyu_info/create_all.html b/app/rongyu/view/js_rongyu_info/create_all.html index 17e91ee3..710b0ca8 100644 --- a/app/rongyu/view/js_rongyu_info/create_all.html +++ b/app/rongyu/view/js_rongyu_info/create_all.html @@ -33,7 +33,7 @@ layui.use('upload', function(){ var uploadInst = upload.render({ elem: '#upload' //绑定元素 ,url: "{$list.set.url}" //上传接口 - ,async:true + ,async:false ,done: function(res){ layer.msg(res.msg); }