浏览代码

feat:首页

liujt 3 天之前
父节点
当前提交
d38be52ca6
共有 2 个文件被更改,包括 6 次插入4 次删除
  1. 2 2
      src/components/ChartBarLine/index.vue
  2. 4 2
      src/views/warehouseManagement/index/yuxin.vue

+ 2 - 2
src/components/ChartBarLine/index.vue

@@ -95,12 +95,12 @@
             {
               type: 'value',
               name: this.barYAxisName,
-              axisLabel: { formatter: (v) => Math.round(v) }
+              minInterval: 1
             },
             {
               type: 'value',
               name: this.lineYAxisName,
-              axisLabel: { formatter: (v) => Math.round(v) + '%' }
+              minInterval: 1
             }
           ],
           series: [

+ 4 - 2
src/views/warehouseManagement/index/yuxin.vue

@@ -158,7 +158,8 @@ import chartBarLine from '@/components/ChartBarLine/index.vue';
           {
             title: '来煤累计数',
             key: 'coalInbound',
-            count: '吨',
+            count: '',
+            unit: '吨',
             icon: require('../../../assets/index/Vector@2x.png')
           },
           {
@@ -170,7 +171,8 @@ import chartBarLine from '@/components/ChartBarLine/index.vue';
           },
           {
             title: '煤库存数',
-            count: '吨',
+            count: '',
+            unit: '吨',
             key: 'coalInventory',
             icon: require('../../../assets/index/Vector@2x.png')
           },