From 47ef536301198a0d5520c0a46fa41d9bfb3908d7 Mon Sep 17 00:00:00 2001 From: Muhammad Sulaiman Yusuf Date: Tue, 22 Nov 2022 14:04:19 +0700 Subject: [PATCH] change reporting ux --- edit-mode/function/ganttConfig.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/edit-mode/function/ganttConfig.js b/edit-mode/function/ganttConfig.js index 05aefda..34745e0 100644 --- a/edit-mode/function/ganttConfig.js +++ b/edit-mode/function/ganttConfig.js @@ -336,7 +336,7 @@ var allColumns = [ let bobot_planning = parseFloat(text.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", min_width: 125, template: function (text) { let progress = text.progress progress = progress*100 return progress; @@ -349,11 +349,16 @@ var allColumns = [ return roundToTwo(actual); }, resize: true }, { name: "jumlah_pekerjaan", label: "Volume Plan", align: "center", min_width: 100, resize: true, editor:editor.job_count }, - { name: "jobs_done", label: "Volume Actual", align: "center", min_width: 100, resize: true, template: function (text) { + { name: "jobs_done", label: "Report", align: "center", min_width: 100, resize: true, template: function (text) { if(text.type=="project" || text.type=="milestone" || text.type=="header"){ return; } - let html = text.jobs_done ? text.jobs_done : 0; + + if(text.jobs_done == 0){ + html = `No Report`; + }else{ + html = `See Report`; + } return `
${html}
` @@ -632,6 +637,9 @@ gantt.config.branch_loading = true; gantt.config.smart_scales = true; gantt.config.smart_rendering = true; +// drag process +gantt.config.drag_progress = false; + // gantt initialization $(document).ready(function () { initializationProject();