|
|
|
@ -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;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|