Browse Source

添加月度数据看板

callm 9 months ago
parent
commit
b09ea7fffc
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/components/labechart/right2chart/index.vue

+ 6 - 3
src/components/labechart/right2chart/index.vue

@@ -58,17 +58,20 @@ export default {
               axisLabel: {
                 fontSize: 16,
                 fontWeight: "bold",
-                formatter: '{value}通道',
+                formatter: '{value}',
               }
             }
           ],
           yAxis: [
             {
               type: 'value',
-              name: '量程',
+              name: '测量精度&规格(%FS)',
               axisLabel: {
                 fontSize: 16,
-                formatter: '{value}',
+                formatter: function (value) {
+                  // 根据需要固定的小数位数来格式化值
+                  return value.toFixed(5); // 例如,固定为两位小数
+                }
               },
               splitLine: {
                 show: true,