浏览代码

修改进度表

laiguoran 4 年之前
父节点
当前提交
982b474194
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      app/view/schedule/index.ejs

+ 8 - 0
app/view/schedule/index.ejs

@@ -243,7 +243,9 @@
                 splitLine : {show : true},
                 data : [<% if (scheduleMonth.length > 0) { %>
                 <% for (const sm of scheduleMonth) { %>
+                    <% if (sm.stage_gcl_used === 1) { %>
                     '<%- sm.yearmonth.split('-')[0] %>年<%- parseInt(sm.yearmonth.split('-')[1]) %>月',
+                    <% } %>
                 <% } %>
             <% } %>]
             }
@@ -276,8 +278,10 @@
                 stack: '计划',
                 data:[<% if (scheduleMonth.length > 0) { %>
                     <% for (const sm of scheduleMonth) { %>
+                    <% if (sm.stage_gcl_used === 1) { %>
                     '<%- sm.plan_tp ? sm.plan_tp : 0  %>',
                     <% } %>
+                    <% } %>
                     <% } %>]
             },
             {
@@ -287,8 +291,10 @@
                 stack: '实际',
                 data:[<% if (scheduleMonth.length > 0) { %>
                     <% for (const sm of scheduleMonth) { %>
+                    <% if (sm.stage_gcl_used === 1) { %>
                     '<%- sm.sj_tp ? sm.sj_tp : 0  %>',
                     <% } %>
+                    <% } %>
                     <% } %>]
             },
             {
@@ -298,8 +304,10 @@
                 yAxisIndex: 1,
                 data:[<% if (scheduleMonth.length > 0) { %>
                     <% for (const sm of scheduleMonth) { %>
+                    <% if (sm.stage_gcl_used === 1) { %>
                     '<%- sm.sj_tp ? ctx.helper.round(ctx.helper.div(sm.sj_tp, schedule.total_tp)*100, 2) : 0  %>',
                     <% } %>
+                    <% } %>
                     <% } %>]
             },
         ]