浏览代码

章节图表修正

laiguoran 3 年之前
父节点
当前提交
c0fc41be84
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      app/view/tender/detail.ejs

+ 6 - 0
app/view/tender/detail.ejs

@@ -547,8 +547,10 @@
             type: 'category',
             data: [
                 <% for (const gcl of gclChapter) { %>
+                <% if (parseInt(gcl.code) <= 900 || (parseInt(gcl.code) > 900 && (gcl.total_price !== 0 || gcl.end_gather_tp !== 0))) { %>
                 '<%- gcl.code %>章',
                 <% } %>
+                <% } %>
             ]
 
         },
@@ -558,8 +560,10 @@
                 type: 'bar',
                 data: [
                     <% for (const gcl of gclChapter) { %>
+                    <% if (parseInt(gcl.code) <= 900 || (parseInt(gcl.code) > 900 && (gcl.total_price !== 0 || gcl.end_gather_tp !== 0))) { %>
                     <%- gcl.total_price %>,
                     <% } %>
+                    <% } %>
                 ]
             },
             {
@@ -567,8 +571,10 @@
                 type: 'bar',
                 data: [
                     <% for (const gcl of gclChapter) { %>
+                    <% if (parseInt(gcl.code) <= 900 || (parseInt(gcl.code) > 900 && (gcl.total_price !== 0 || gcl.end_gather_tp !== 0))) { %>
                     <%- gcl.end_gather_tp %>,
                     <% } %>
+                    <% } %>
                 ]
             }
         ]