Browse Source

标段概况章节数据套用

laiguoran 3 years ago
parent
commit
49b2fe020e
1 changed files with 16 additions and 3 deletions
  1. 16 3
      app/view/tender/detail.ejs

+ 16 - 3
app/view/tender/detail.ejs

@@ -543,18 +543,31 @@
         },
         xAxis: {
             type: 'category',
-            data: ['100章', '200章', '300章', '400章', '500章', '600章', '700章', '800章', '900章']
+            data: [
+                <% for (const gcl of gclChapter) { %>
+                '<%- gcl.code %>章',
+                <% } %>
+            ]
+
         },
         series: [
             {
                 name: '台帐金额',
                 type: 'bar',
-                data: [18203, 23489, 29034, 104970, 131744, 630230, 104970, 131744, 630230]
+                data: [
+                    <% for (const gcl of gclChapter) { %>
+                    <%- gcl.total_price %>,
+                    <% } %>
+                ]
             },
             {
                 name: '截止本期计量',
                 type: 'bar',
-                data: [19325, 23438, 31000, 121594, 134141, 681807, 121594, 134141, 681807]
+                data: [
+                    <% for (const gcl of gclChapter) { %>
+                    <%- gcl.end_gather_tp %>,
+                    <% } %>
+                ]
             }
         ]
     };