فهرست منبع

章节图表修正

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 %>,
                     <% } %>
+                    <% } %>
                 ]
             }
         ]