whj 2 years ago
parent
commit
584ca281b3
1 changed files with 40 additions and 4 deletions
  1. 40 4
      src/views/report/repairdetail/RepairDetail.vue

+ 40 - 4
src/views/report/repairdetail/RepairDetail.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="page-header-index-wide">
-    <a-card title="出入库数据" :loading="loading" v-show="visible" :bordered="false" :body-style="{padding: '0'}">
+    <a-card title="维修数据" :loading="loading" v-show="visible" :bordered="false" :body-style="{padding: '0'}">
       <div class="salesCard">
         <a-tabs default-active-key="1" size="large" :tab-bar-style="{marginBottom: '24px', paddingLeft: '16px'}">
           <div class="extra-wrapper" slot="tabBarExtraContent">
@@ -155,17 +155,53 @@ export default {
           {
             name: this.chartsData.dianQiName,
             type: 'bar',
-            data: this.chartsData.dianQiNums
+            data: this.chartsData.dianQiNums,
+            itemStyle: {
+              normal: {
+                label: {
+                  show: true, // 开启显示
+                  position: 'top', // 在上方显示
+                  textStyle: { // 数值样式
+                    color: 'black',
+                    fontSize: 16
+                  }
+                }
+              }
+            }
           },
           {
             name: this.chartsData.jiXiName,
             type: 'bar',
-            data: this.chartsData.jiXiNums
+            data: this.chartsData.jiXiNums,
+            itemStyle: {
+              normal: {
+                label: {
+                  show: true, // 开启显示
+                  position: 'top', // 在上方显示
+                  textStyle: { // 数值样式
+                    color: 'black',
+                    fontSize: 16
+                  }
+                }
+              }
+            }
           },
           {
             name: this.chartsData.yiBiaoName,
             type: 'bar',
-            data: this.chartsData.yiBiaoNums
+            data: this.chartsData.yiBiaoNums,
+            itemStyle: {
+              normal: {
+                label: {
+                  show: true, // 开启显示
+                  position: 'top', // 在上方显示
+                  textStyle: { // 数值样式
+                    color: 'black',
+                    fontSize: 16
+                  }
+                }
+              }
+            }
           }
         ]
       }