liujt 3 dienas atpakaļ
vecāks
revīzija
5256344787

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

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

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

@@ -4,9 +4,9 @@
       <div v-for="item in list">
       <div v-for="item in list">
         <div class="item">
         <div class="item">
           <div class="title"
           <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>
         <div class="icon">
         <div class="icon">
           <img :src="item.icon" />
           <img :src="item.icon" />
@@ -158,7 +158,8 @@ import chartBarLine from '@/components/ChartBarLine/index.vue';
           {
           {
             title: '来煤累计数',
             title: '来煤累计数',
             key: 'coalInbound',
             key: 'coalInbound',
-            count: '吨',
+            count: '',
+            unit: '吨',
             icon: require('../../../assets/index/Vector@2x.png')
             icon: require('../../../assets/index/Vector@2x.png')
           },
           },
           {
           {
@@ -170,7 +171,8 @@ import chartBarLine from '@/components/ChartBarLine/index.vue';
           },
           },
           {
           {
             title: '煤库存数',
             title: '煤库存数',
-            count: '吨',
+            count: '',
+            unit: '吨',
             key: 'coalInventory',
             key: 'coalInventory',
             icon: require('../../../assets/index/Vector@2x.png')
             icon: require('../../../assets/index/Vector@2x.png')
           },
           },