产线缺陷分析
@@ -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: {