|
|
@ -87,11 +87,9 @@ gantt.config.auto_scheduling = true; |
|
|
|
gantt.config.fit_tasks = true; |
|
|
|
gantt.config.fit_tasks = true; |
|
|
|
if (!base_url) { |
|
|
|
if (!base_url) { |
|
|
|
base_url = `https://api-iu.ospro.id/api/`; |
|
|
|
base_url = `https://api-iu.ospro.id/api/`; |
|
|
|
// console.log("cek base url 2",base_url)
|
|
|
|
|
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
base_url = base_url+"/"; |
|
|
|
base_url = base_url+"/"; |
|
|
|
} |
|
|
|
} |
|
|
|
// console.log("cek base url 3",base_url)
|
|
|
|
|
|
|
|
// gantt plugins
|
|
|
|
// gantt plugins
|
|
|
|
gantt.plugins({ |
|
|
|
gantt.plugins({ |
|
|
|
marker: true, |
|
|
|
marker: true, |
|
|
@ -258,9 +256,6 @@ var allColumns = [ |
|
|
|
{ name: "end_date", label: "Finish Date", align: "center", min_width: 80, editor: editor.end_date, resize: true }, |
|
|
|
{ name: "end_date", label: "Finish Date", align: "center", min_width: 80, editor: editor.end_date, resize: true }, |
|
|
|
{ name: "duration", label: "Duration", align: "center", min_width: 50, editor: editor.duration, resize: true }, |
|
|
|
{ name: "duration", label: "Duration", align: "center", min_width: 50, editor: editor.duration, resize: true }, |
|
|
|
{ name: "rencana_biaya", label: "Cost Planning", align: "center", min_width: 100, resize: true, template: function (text) { |
|
|
|
{ name: "rencana_biaya", label: "Cost Planning", align: "center", min_width: 100, resize: true, template: function (text) { |
|
|
|
if(text.id == 2085 || text.id == 2089){ |
|
|
|
|
|
|
|
console.log("text", text); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(!text.rencana_biaya){ |
|
|
|
if(!text.rencana_biaya){ |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
@ -338,7 +333,6 @@ var allColumns = [ |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
let bobot_planning = parseFloat(text.bobot_planning); |
|
|
|
let bobot_planning = parseFloat(text.bobot_planning); |
|
|
|
// console.log("bobot_planning", bobot_planning);
|
|
|
|
|
|
|
|
return roundToTwo(bobot_planning); |
|
|
|
return roundToTwo(bobot_planning); |
|
|
|
} }, |
|
|
|
} }, |
|
|
|
{ name: "progress", label: "Actual Progress (%)", align: "center", editor: progressEditor, min_width: 125, template: function (text) { |
|
|
|
{ name: "progress", label: "Actual Progress (%)", align: "center", editor: progressEditor, min_width: 125, template: function (text) { |
|
|
|