From 9dd1f274817c1ffac33dfee1a550eb2760b6f675 Mon Sep 17 00:00:00 2001 From: lb Date: Fri, 18 Nov 2022 16:56:10 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=B4=A8=E9=87=8F=E7=BC=BA=E9=99=B7?= =?UTF-8?q?=E5=88=86=E6=9E=90=E7=9A=84=E6=A0=87=E9=A2=98+legend?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/TechyAnalysisHeader.vue | 28 +- src/views/QualityManager/HomePage.vue | 18 +- .../components/TechyAnalysisHeader.vue | 323 +++++++++++++----- .../components/charts/newBar.vue | 7 +- 4 files changed, 270 insertions(+), 106 deletions(-) diff --git a/src/views/EquipmentManager/components/TechyAnalysisHeader.vue b/src/views/EquipmentManager/components/TechyAnalysisHeader.vue index 43ca9a0..8ad3ede 100644 --- a/src/views/EquipmentManager/components/TechyAnalysisHeader.vue +++ b/src/views/EquipmentManager/components/TechyAnalysisHeader.vue @@ -1,10 +1,22 @@ @@ -109,6 +121,12 @@ const titleRightSVG = `
-
-
- - 产线缺陷日对比 +
+
+ + 产线缺陷日对比
-
- - 产线缺陷月对比 +
+ + 产线缺陷月对比
-
+
产线缺陷分析 @@ -554,7 +554,7 @@ export default { .date-select { position: absolute; top: calc(16px * var(--beilv)); - right: calc(10px * var(--beilv)); + right: calc(22px * var(--beilv)); border-radius: calc(2px * var(--beilv)); overflow: hidden; display: flex; diff --git a/src/views/QualityManager/components/TechyAnalysisHeader.vue b/src/views/QualityManager/components/TechyAnalysisHeader.vue index f1669e1..0ca14ec 100644 --- a/src/views/QualityManager/components/TechyAnalysisHeader.vue +++ b/src/views/QualityManager/components/TechyAnalysisHeader.vue @@ -1,104 +1,221 @@ + +
@@ -106,6 +223,10 @@ export default { name: 'TechyAnalysisHeader', props: { + type: { + type: String, + default: 'dafault-type' + }, showTopIcon: { type: Boolean, default: true @@ -132,6 +253,30 @@ export default { .top-icon { display: inline-block; width: calc(56px * var(--beilv)); - height: calc(13px * var(--beilv)); + height: calc(12px * var(--beilv)); + margin-bottom: calc(2px * var(--beilv)); +} + +.legend-item { + font-size: calc(10px * var(--beilv)); + line-height: 1.5; + color: #dff1fe; + display: inline-block; +} + +.legend-item::before { + content: ''; + display: inline-block; + width: calc(8px * var(--beilv)); + height: calc(8px * var(--beilv)); + background: #fffc; + margin-right: calc(8px * var(--beilv)); +} + +.pla::before { + background: linear-gradient(to top, #49fbd6, transparent); +} +.plb::before { + background: linear-gradient(to top, #49b2ff, transparent); } diff --git a/src/views/QualityManager/components/charts/newBar.vue b/src/views/QualityManager/components/charts/newBar.vue index 378fb92..5fbdacf 100644 --- a/src/views/QualityManager/components/charts/newBar.vue +++ b/src/views/QualityManager/components/charts/newBar.vue @@ -250,14 +250,15 @@ export default { containLabel: true }, legend: { - itemWidth: 8, - itemHeight: 8, + show: false, + itemWidth: 10, + itemHeight: 10, selectedMode: false, top: '7%', right: '2%', textStyle: { color: '#fff9', - fontSize: 10 + fontSize: 12 } }, xAxis: {