Commit 6640143b by mushishixian

fix

parent 77caa55a
......@@ -118,7 +118,8 @@ class SupplierApiController extends Controller
if ($validateResult) {
$this->response(-1, $validateResult);
}
$channel = $request->only($this->channelMap);
$channelMap = array_merge($this->channelMap, config('field.AttachmentFields'));
$channel = $request->only($channelMap);
$service = new SupplierService();
$result = $service->saveSupplier($channel);
if (!$result) {
......
......@@ -22,28 +22,29 @@
});
upload.render({
elem: '#upload_button'
, url: '{{config('website.UploadUrl')}}' //改成您自己的上传接口
, accept: 'file' //文件
, field: 'upload'
, data: {
elem: '#upload_button',
url: '{{config('website.UploadUrl')}}', //改成您自己的上传接口
accept: 'file', //文件
field: 'upload',
data: {
k1: k1,
k2: k2,
source: 1,
cancel_time_verify: 1,
}
, exts: 'jpg|png|bmp|jpeg|zip|pdf'
, size: 20000
, before: function () {
},
multiple: true,
exts: 'jpg|png|bmp|jpeg|zip|pdf',
size: 20000,
before: function () {
}
, choose: function (obj) {
},
choose: function (obj) {
var files = this.files = obj.pushFile();
let recentFile = files[Object.keys(files)[Object.keys(files).length - 1]]
fileName = recentFile.name;
loadIndex = layer.load(1);
}
, done: function (res, index, upload) {
},
done: function (res, index, upload) {
if (res.code === 200) {
//动态添加js
let fileTemplateObj = $('#file_template')
......@@ -58,7 +59,7 @@
}
delete this.files[index];
layer.close(loadIndex);
}
},
});
//删除文件操作
......
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