diff --git a/WebRoot/Excel/46C280CD-9D98-4495-9FC7-0D60006D49A3.jpg b/WebRoot/Excel/46C280CD-9D98-4495-9FC7-0D60006D49A3.jpg new file mode 100644 index 00000000..b337c703 Binary files /dev/null and b/WebRoot/Excel/46C280CD-9D98-4495-9FC7-0D60006D49A3.jpg differ diff --git a/WebRoot/Excel/4D2C11FC-8871-409F-A8B1-D13FF7C48F8B.jpg b/WebRoot/Excel/4D2C11FC-8871-409F-A8B1-D13FF7C48F8B.jpg new file mode 100644 index 00000000..d6211d13 Binary files /dev/null and b/WebRoot/Excel/4D2C11FC-8871-409F-A8B1-D13FF7C48F8B.jpg differ diff --git a/WebRoot/view/tb/form/report.html b/WebRoot/view/tb/form/report.html index 094e58d1..66edf81d 100644 --- a/WebRoot/view/tb/form/report.html +++ b/WebRoot/view/tb/form/report.html @@ -206,19 +206,30 @@ //监听提交 form.on('submit(demo1)', function (data) { - var json = render.getFormData(); - console.log(json); - layer.msg(JSON.stringify(json), { icon: 6 }); - /*$.ajax({ - url:"/activiti-manager/addActivitiManagera", - type:"POST", - data:temp, - contentType:"application/json", - dataType: "json", - success:function(res){ - alert(res.message); + var json = render.getFormData(); + $.ajax({ + url: '/QingLong/collect/saveFormJob', + type: 'post', + data: { + "job_id": jobId, + "json": JSON.stringify(json) + }, + success: function (result) { + if (result.success) { + layer.msg("保存成功!", { + icon: 1, + time: 1000 + }, function () { + parent.layer.close(parent.layer.getFrameIndex(window.name)); + }); + } else { + layer.msg(result.message, { + icon: 2, + time: 2000 + }); + } } - });*/ + }); return false; });