liujt 3 дней назад
Родитель
Сommit
5256344787

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

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

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

@@ -4,9 +4,9 @@
       <div v-for="item in list">
         <div class="item">
           <div class="title"
-            >{{ item.title }}<span>{{ item.unit }}</span></div
+            >{{ item.title }}</div
           >
-          <div class="count">{{ item.count }}</div>
+          <div class="count">{{ item.count }}<span>{{ item.unit }}</span></div>
         </div>
         <div class="icon">
           <img :src="item.icon" />
@@ -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')
           },