|
|
|
@ -74,6 +74,7 @@
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
form.on('submit(save)', function (data) {
|
|
|
|
|
var selfOrNext = window.localStorage.getItem('self_or_next');
|
|
|
|
|
if (window.localStorage.getItem('form_json') !== undefined) {
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: '/QingLong/collect/addFormJob',
|
|
|
|
@ -83,7 +84,7 @@
|
|
|
|
|
"table_name": "ds_" + $("#table_name").val(),
|
|
|
|
|
"json": window.localStorage.getItem('form_json'),
|
|
|
|
|
"target_type_id": window.localStorage.getItem('target_type_id'),
|
|
|
|
|
"self_or_next": window.localStorage.getItem('self_or_next')
|
|
|
|
|
"self_or_next": selfOrNext
|
|
|
|
|
},
|
|
|
|
|
success: function (result) {
|
|
|
|
|
if (result.success) {
|
|
|
|
@ -93,7 +94,12 @@
|
|
|
|
|
}, function () {
|
|
|
|
|
localStorage.removeItem('self_or_next');
|
|
|
|
|
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
|
|
|
|
parent.window.location = "/QingLong/view/tb/org/task_list.html"
|
|
|
|
|
if (selfOrNext == 1) {
|
|
|
|
|
parent.window.location = "/QingLong/view/tb/org/task_list_bdw.html";
|
|
|
|
|
} else {
|
|
|
|
|
parent.window.location = "/QingLong/view/tb/org/task_list.html";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
layer.msg(result.message, {
|
|
|
|
|