|
|
@ -10,6 +10,12 @@ gantt.ajax.get({ |
|
|
|
} |
|
|
|
} |
|
|
|
}).then(function (xhr) { |
|
|
|
}).then(function (xhr) { |
|
|
|
$("body").removeClass("loading"); |
|
|
|
$("body").removeClass("loading"); |
|
|
|
|
|
|
|
let batchEntity = localStorage.getItem('batchEntity'); |
|
|
|
|
|
|
|
if (!batchEntity || batchEntity == '') { |
|
|
|
|
|
|
|
$("#save-activity").hide(); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
$("#save-activity").show(); |
|
|
|
|
|
|
|
} |
|
|
|
let data = {}; |
|
|
|
let data = {}; |
|
|
|
let response = xhr.responseText; |
|
|
|
let response = xhr.responseText; |
|
|
|
let obj = JSON.parse(response); |
|
|
|
let obj = JSON.parse(response); |
|
|
@ -64,6 +70,12 @@ function refresData(id) { |
|
|
|
} |
|
|
|
} |
|
|
|
}).then(function (xhr) { |
|
|
|
}).then(function (xhr) { |
|
|
|
$("body").removeClass("loading"); |
|
|
|
$("body").removeClass("loading"); |
|
|
|
|
|
|
|
let batchEntity = localStorage.getItem('batchEntity'); |
|
|
|
|
|
|
|
if (!batchEntity || batchEntity == '') { |
|
|
|
|
|
|
|
$("#save-activity").hide(); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
$("#save-activity").show(); |
|
|
|
|
|
|
|
} |
|
|
|
gantt.clearAll(); |
|
|
|
gantt.clearAll(); |
|
|
|
let data = {}; |
|
|
|
let data = {}; |
|
|
|
let response = xhr.responseText; |
|
|
|
let response = xhr.responseText; |
|
|
@ -198,6 +210,7 @@ var dp = gantt.createDataProcessor(function (entity, action, data, id) { |
|
|
|
toBeSet = [batchEntity] |
|
|
|
toBeSet = [batchEntity] |
|
|
|
} |
|
|
|
} |
|
|
|
localStorage.setItem('batchEntity', JSON.stringify(toBeSet)); |
|
|
|
localStorage.setItem('batchEntity', JSON.stringify(toBeSet)); |
|
|
|
|
|
|
|
$("#save-activity").show(); |
|
|
|
sendStorage(); |
|
|
|
sendStorage(); |
|
|
|
// $("body").addClass("loading");
|
|
|
|
// $("body").addClass("loading");
|
|
|
|
// return gantt.ajax.put({
|
|
|
|
// return gantt.ajax.put({
|
|
|
|