From df6cdf8f130b9239ef6bc510799fbcfff2966685 Mon Sep 17 00:00:00 2001 From: lb Date: Fri, 18 Nov 2022 10:15:57 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=B4=A8=E9=87=8F=E7=AE=A1=E7=90=86?= =?UTF-8?q?=EF=BC=8C=E4=BA=A7=E7=BA=BF=E7=BC=BA=E9=99=B7=E6=9C=88=E5=AF=B9?= =?UTF-8?q?=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/QualityManager/HomePage.vue | 38 ++++++++++++------- .../charts/PlFaultAnalysisPieChart.vue | 4 +- .../components/charts/newBar.vue | 14 +++---- 3 files changed, 33 insertions(+), 23 deletions(-) diff --git a/src/views/QualityManager/HomePage.vue b/src/views/QualityManager/HomePage.vue index 36a858e..19bb8b3 100644 --- a/src/views/QualityManager/HomePage.vue +++ b/src/views/QualityManager/HomePage.vue @@ -48,7 +48,7 @@ > 产线缺陷月对比 - +
+ +
diff --git a/src/views/QualityManager/components/charts/PlFaultAnalysisPieChart.vue b/src/views/QualityManager/components/charts/PlFaultAnalysisPieChart.vue index 44fe58d..851297f 100644 --- a/src/views/QualityManager/components/charts/PlFaultAnalysisPieChart.vue +++ b/src/views/QualityManager/components/charts/PlFaultAnalysisPieChart.vue @@ -125,12 +125,12 @@ export default { } }, legend: { - top: '10%', + top: '12%', bottom: 0, left: 0, orient: 'vertical', icon: 'none', - itemGap: 5, + itemGap: 8, itemWidth: 10, formatter: name => { const testData = this.dataList diff --git a/src/views/QualityManager/components/charts/newBar.vue b/src/views/QualityManager/components/charts/newBar.vue index cd37fc5..378fb92 100644 --- a/src/views/QualityManager/components/charts/newBar.vue +++ b/src/views/QualityManager/components/charts/newBar.vue @@ -15,6 +15,10 @@ export default { name: 'OverviewBar', mixins: [resize], props: { + unitName: { + type: String, + default: '单位: 片' + }, chartName: { type: String, default: '' @@ -176,15 +180,8 @@ export default { { offset: 0, color: this.dataList[0].topColor }, { offset: 1, color: this.dataList[0].bottomColor } ]) - // borderWidth: 1, - // borderColor: this.dataList[0].bottomColor + '66' // 边框颜色+透明度 }, data: this.dataList[0].data - // backgroundStyle: { - // // borderColor: this.dataList[0].bottomColor, - // borderColor: '#ff0000', - // borderWidth: 1 - // } }, { // 柱顶 @@ -255,6 +252,7 @@ export default { legend: { itemWidth: 8, itemHeight: 8, + selectedMode: false, top: '7%', right: '2%', textStyle: { @@ -282,7 +280,7 @@ export default { }, yAxis: [ { - name: '单位:片', + name: this.unitName, // '单位: 片', nameTextStyle: { align: 'right', fontSize: 9, color: '#fff9' }, type: 'value', splitNumber: 3,