|
|
|
@ -561,10 +561,10 @@ function updateShowHideColumn(data) {
|
|
|
|
|
processData: false, |
|
|
|
|
contentType: false, |
|
|
|
|
success: function (data) { |
|
|
|
|
console.log(data); |
|
|
|
|
// console.log(data);
|
|
|
|
|
}, |
|
|
|
|
error: function (data) { |
|
|
|
|
console.log(data); |
|
|
|
|
// console.log(data);
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
@ -575,6 +575,8 @@ function colAjaxReq(type) {
|
|
|
|
|
type: "GET", |
|
|
|
|
success: function (data) { |
|
|
|
|
let ganttColumnsByType = data.data; |
|
|
|
|
// console.log("ini gantt field ", ganttColumnsByType);
|
|
|
|
|
// console.log("ini column ", gantt.config.columns);
|
|
|
|
|
let isFound = false; |
|
|
|
|
x = gantt.config.columns.filter((val) => { |
|
|
|
|
isFound = ganttColumnsByType.find(obj => { |
|
|
|
@ -582,6 +584,10 @@ function colAjaxReq(type) {
|
|
|
|
|
}); |
|
|
|
|
if (isFound) |
|
|
|
|
return val; |
|
|
|
|
if (isFound == false){ |
|
|
|
|
// console.log("ini gantt field !isFound ", val);
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
gantt.config.columns = x.filter(item => item); |
|
|
|
|
allColumns = gantt.config.columns; |
|
|
|
|