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