From 5ded44a5de22aeefe46e3fe85f4aac1875aed9bd Mon Sep 17 00:00:00 2001 From: lb Date: Tue, 22 Nov 2022 14:26:12 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=B4=A8=E9=87=8F=E7=AE=A1=E7=90=86?= =?UTF-8?q?=20techy-analysis-header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/QualityManager/HomePage.vue | 65 ++++++++++++------- .../components/TechyAnalysisHeader.vue | 17 ++++- .../components/charts/newLineStack.vue | 9 +-- 3 files changed, 62 insertions(+), 29 deletions(-) diff --git a/src/views/QualityManager/HomePage.vue b/src/views/QualityManager/HomePage.vue index a815b9c..cd31a1b 100644 --- a/src/views/QualityManager/HomePage.vue +++ b/src/views/QualityManager/HomePage.vue @@ -138,6 +138,7 @@ +
- 产品成品率 + + 产品成品率 + +
-
- - 日 - - - 月 - -
@@ -581,11 +586,15 @@ export default { .pl-select, .date-select { position: absolute; - top: calc(16px * var(--beilv)); - right: calc(22px * var(--beilv)); + top: 0; + right: 0; + /* top: calc(16px * var(--beilv)); */ + /* right: calc(22px * var(--beilv)); */ border-radius: calc(2px * var(--beilv)); overflow: hidden; display: flex; + align-items: center; + height: 100%; cursor: pointer; } @@ -613,4 +622,14 @@ export default { .width-222 { width: calc(375px * var(--beilv)); } + +@media all and (max-width: 2000px) { + .production-rate { + /* text-align: left; */ + } + + .production-rate >>> .top-icon:last-of-type { + display: none; + } +} diff --git a/src/views/QualityManager/components/TechyAnalysisHeader.vue b/src/views/QualityManager/components/TechyAnalysisHeader.vue index 6232a5c..8b2eb85 100644 --- a/src/views/QualityManager/components/TechyAnalysisHeader.vue +++ b/src/views/QualityManager/components/TechyAnalysisHeader.vue @@ -55,7 +55,7 @@ - + @@ -219,6 +219,8 @@ + + @@ -245,6 +247,9 @@ export default { .techy-analysis-header { text-align: center; margin-bottom: calc(16px * var(--beilv)); + position: relative; + white-space: nowrap; + z-index: 1; } .techy-analysis-header__title { @@ -260,11 +265,19 @@ export default { margin-bottom: calc(2px * var(--beilv)); } +.legend-right { + display: flex; + gap: calc(8px * var(--beilv)); + white-space: nowrap; + overflow: hidden; +} + .legend-item { font-size: calc(10px * var(--beilv)); line-height: 1.5; color: #dff1fe; - display: inline-block; + display: flex; + align-items: center; } .legend-item::before { diff --git a/src/views/QualityManager/components/charts/newLineStack.vue b/src/views/QualityManager/components/charts/newLineStack.vue index 237a764..04c9663 100644 --- a/src/views/QualityManager/components/charts/newLineStack.vue +++ b/src/views/QualityManager/components/charts/newLineStack.vue @@ -36,7 +36,7 @@ export default { } }, grid: { - top: '25%', + top: 56, left: '2%', right: '5%', bottom: '5%', @@ -66,14 +66,15 @@ export default { yAxis: [ { - name: '成品率', + name: '成品率 ', type: 'value', min: 'dataMin', splitNumber: 4, nameTextStyle: { color: 'rgba(255,255,255,0.7)', - fontSize: 12, - align: 'right' + fontSize: 10, + align: 'left', + verticalAlign: 'bottom' }, axisLine: { lineStyle: {