瀏覽代碼

图表显示单位更改

laiguoran 3 年之前
父節點
當前提交
5e57b58a28
共有 1 個文件被更改,包括 4 次插入27 次删除
  1. 4 27
      app/view/tender/detail.ejs

+ 4 - 27
app/view/tender/detail.ejs

@@ -457,11 +457,6 @@
             position:'left',
             axisLabel : {
                 rotate: 30,
-                <% if (ctx.tender.info.display.thousandth) { %>
-                formatter: function (value, index) {
-                    return value.format2Str('#,##0.######') + ' 元'
-                }
-                <% } else { %>
                 formatter: function (value, index) {
                     if (value < 0) {
                         let newValue = Math.abs(value);
@@ -479,7 +474,6 @@
                     }
                     return value;
                 }
-                <% } %>
             },
             splitArea : {show : true}
         },
@@ -525,11 +519,10 @@
             name : '金额',
             position:'left',
             axisLabel : {
-                <% if (ctx.tender.info.display.thousandth) { %>
-                formatter: function (value, index) {
-                    return value.format2Str('#,##0.######') + ' 元'
-                }
-                <% } else { %>
+                // if (ctx.tender.info.display.thousandth) {
+                // formatter: function (value, index) {
+                //     return value.format2Str('#,##0.######') + ' 元'
+                // }
                 formatter: function (value, index) {
                     if (value < 0) {
                         let newValue = Math.abs(value);
@@ -547,16 +540,6 @@
                     }
                     return value;
                 }
-                // formatter: '{value} 元'
-                <% } %>
-                // formatter: function (value, index) {
-                //     if (value >= 10000 && value < 10000000) {
-                //         value = value / 10000 + "万";
-                //     } else if (value >= 10000000) {
-                //         value = value / 10000000 + "千万";
-                //     }
-                //     return value;
-                // }
             },
             splitArea : {show : true}
         },
@@ -630,11 +613,6 @@
                 name : '金额',
                 position:'left',
                 axisLabel : {
-                    <% if (ctx.tender.info.display.thousandth) { %>
-                    formatter: function (value, index) {
-                        return value.format2Str('#,##0.######') + ' 元'
-                    }
-                    <% } else { %>
                     formatter: function (value, index) {
                         if (value < 0) {
                             let newValue = Math.abs(value);
@@ -652,7 +630,6 @@
                         }
                         return value;
                     }
-                    <% } %>
                 },
                 splitArea : {show : true},
                 splitLine : {show : true},