From 97ee3a9a4c4dd3b62b780084451da4cb7e9d606e Mon Sep 17 00:00:00 2001 From: lb Date: Wed, 23 Nov 2022 09:55:29 +0800 Subject: [PATCH 01/28] =?UTF-8?q?update=203d=20=E5=AE=8C=E6=88=90=E5=BA=A6?= =?UTF-8?q?=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/LeftContentOrder.vue | 6 +-- .../RightContentRealtimeProduction.vue | 44 ++++++++++++++++++- 2 files changed, 44 insertions(+), 6 deletions(-) diff --git a/src/views/3DOverview/components/LeftContentOrder.vue b/src/views/3DOverview/components/LeftContentOrder.vue index d6d4909..677a7ae 100644 --- a/src/views/3DOverview/components/LeftContentOrder.vue +++ b/src/views/3DOverview/components/LeftContentOrder.vue @@ -15,9 +15,6 @@ const ProcessCircle = { default: () => ({}) } }, - mounted() { - console.log('finished', this.injectData.finished) - }, methods: {}, render: function(h) { return h('el-progress', { @@ -29,7 +26,8 @@ const ProcessCircle = { percentage: this.injectData.finished, width: 14, 'stroke-width': 2, - color: '#47FF27' + color: '#47FF27', + 'define-back-color': '#6e6e6e' // 背景色 }, style: { color: 'blue' diff --git a/src/views/3DOverview/components/RightContentRealtimeProduction.vue b/src/views/3DOverview/components/RightContentRealtimeProduction.vue index d60cf22..a647828 100644 --- a/src/views/3DOverview/components/RightContentRealtimeProduction.vue +++ b/src/views/3DOverview/components/RightContentRealtimeProduction.vue @@ -187,7 +187,27 @@ export default { focus: 'series' }, data: dianliu, - symbol: 'none' + symbol: 'none', + areaStyle: { + color: { + type: 'linear', + x: 0, + y: 0, + x2: 0, + y2: 1, + colorStops: [ + { + offset: 0, + color: '#1A99FF66' // 0% 处的颜色 + }, + { + offset: 1, + color: 'transparent' // 100% 处的颜色 + } + ], + global: false // 缺省为 false + } + } }, { name: '产线2', @@ -198,7 +218,27 @@ export default { focus: 'series' }, data: dianya, - symbol: 'none' + symbol: 'none', + areaStyle: { + color: { + type: 'linear', + x: 0, + y: 0, + x2: 0, + y2: 1, + colorStops: [ + { + offset: 0, + color: '#F0D63C66' // 0% 处的颜色 + }, + { + offset: 1, + color: 'transparent' // 100% 处的颜色 + } + ], + global: false // 缺省为 false + } + } } ] } -- 2.45.2 From 779a771bb5d2c095d651940f499ab06227f8bfd2 Mon Sep 17 00:00:00 2001 From: lb Date: Wed, 23 Nov 2022 14:03:56 +0800 Subject: [PATCH 02/28] =?UTF-8?q?update=20=E5=85=AC=E7=94=A8=E5=B7=A5?= =?UTF-8?q?=E7=A8=8B=E6=B6=88=E8=80=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/3DOverview/components/DianChart.vue | 67 +++++++++---------- .../3DOverview/components/FadianChart.vue | 43 ++++-------- .../components/LeftContentEquipmentCheck.vue | 2 +- .../components/LeftContentMonitor.vue | 2 +- .../components/LeftContentOrder.vue | 12 ++-- .../components/LeftContentPublicConsume.vue | 12 ++-- .../components/RightContentAlert.vue | 2 +- .../components/RightContentFaultAnalysis.vue | 3 +- .../RightContentQualityAnalysis.vue | 2 +- .../RightContentRealtimeProduction.vue | 1 + src/views/3DOverview/index.vue | 7 +- 11 files changed, 68 insertions(+), 85 deletions(-) diff --git a/src/views/3DOverview/components/DianChart.vue b/src/views/3DOverview/components/DianChart.vue index a4ec652..45fb162 100644 --- a/src/views/3DOverview/components/DianChart.vue +++ b/src/views/3DOverview/components/DianChart.vue @@ -15,19 +15,7 @@ export default { props: { id: { type: String, - default: 'default-dian-id' - }, - title: { - type: String, - default: 'default-title' - }, - xData: { - type: Array, - default: () => [] - }, - seriesData: { - type: Array, - default: () => [] + default: 'default-dian-line-chart' } }, data() { @@ -69,29 +57,35 @@ export default { option: { color: colors, legend: { - top: 4, - right: 50, + top: 16, + right: 64, itemWidth: 8, itemHeight: 8, textStyle: { color: '#fff9', - fontSize: 8 + fontSize: 12 } // data: ['ABC三相电压/v', 'ABC三相电流/a', '电缆温度'] }, grid: { - top: 32, + top: 48, left: 64, - bottom: 28 + bottom: 36 }, tooltip: { show: true, trigger: 'axis', axisPointer: { type: 'line', - axis: 'x' + axis: 'x', + lineStyle: { + color: '#41888F90', + shadowColor: '#41888F', + shadowBlur: 10, + width: 2 + } }, - extraCssText: 'width: 152px !important; height: 100px !important;' + extraCssText: 'position: absolute !important; top: 0, left: 0; width: 152px !important; height: 100px !important;' }, xAxis: [ { @@ -99,7 +93,8 @@ export default { data: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], axisTick: { show: false }, axisLabel: { - color: '#fff9' + color: '#fff9', + fontSize: 14 }, axisLine: { lineStyle: { @@ -110,13 +105,13 @@ export default { ], yAxis: [ { - name: '电流/A', - nameTextStyle: { align: 'right', fontSize: 9, color: '#fff9' }, + name: '电流/A ', + nameTextStyle: { align: 'right', fontSize: 12, color: '#fff9' }, type: 'value', - splitNumber: 3, + splitNumber: 4, onZero: true, position: 'left', - offset: 40, + offset: 32, axisTick: { show: false }, axisLine: { show: true, @@ -127,7 +122,7 @@ export default { }, axisLabel: { color: '#fff9', - fontSize: 10 + fontSize: 12 }, splitLine: { show: true, @@ -138,10 +133,10 @@ export default { } }, { - name: '电压/V', - nameTextStyle: { align: 'right', fontSize: 9, color: '#fff9' }, + name: ' 电压/V ', + nameTextStyle: { align: 'right', fontSize: 12, color: '#fff9' }, type: 'value', - splitNumber: 3, + splitNumber: 4, axisTick: { show: false }, onZero: true, position: 'left', @@ -155,7 +150,7 @@ export default { }, axisLabel: { color: '#fff9', - fontSize: 10 + fontSize: 12 }, splitLine: { show: true, @@ -166,8 +161,8 @@ export default { } }, { - name: '温度', - nameTextStyle: { align: 'left', color: '#fff9', fontSize: 9 }, + name: ' 温度', + nameTextStyle: { align: 'left', color: '#fff9', fontSize: 12 }, axisTick: { show: false }, axisLine: { show: false, @@ -177,7 +172,7 @@ export default { } }, type: 'value', - splitNumber: 3, + splitNumber: 4, splitLine: { show: true, lineStyle: { @@ -187,7 +182,7 @@ export default { }, axisLabel: { color: '#fff9', - fontSize: 10 + fontSize: 12 } } ], @@ -251,7 +246,9 @@ export default { if (this.chart) this.chart.dispose() this.chart = null }, - methods: {} + methods: { + initOption(legendSize, labelSize, axisLabelSize, splitLineNumber) {} + } } diff --git a/src/views/3DOverview/components/LeftContentPublicConsume.vue b/src/views/3DOverview/components/LeftContentPublicConsume.vue index 8a16050..b3595c5 100644 --- a/src/views/3DOverview/components/LeftContentPublicConsume.vue +++ b/src/views/3DOverview/components/LeftContentPublicConsume.vue @@ -73,8 +73,8 @@ dian -
- +
+
@@ -85,9 +85,9 @@ fadian 发电 -
+
- +
@@ -116,7 +116,7 @@ export default { .public-consume__inner { overflow: hidden; overflow-y: auto; - height: calc(100% - 32px); + height: calc(100% - calc(32px * var(--beilv))); width: 100%; display: flex; flex-direction: column; @@ -161,7 +161,7 @@ export default { flex-direction: column; font-size: calc(12px * var(--beilv)); color: #fff9; - height: 10px; + height: calc(48px * var(--beilv)); flex: 1 1; gap: calc(4px * var(--beilv)); } diff --git a/src/views/3DOverview/components/RightContentAlert.vue b/src/views/3DOverview/components/RightContentAlert.vue index 37bb346..826a944 100644 --- a/src/views/3DOverview/components/RightContentAlert.vue +++ b/src/views/3DOverview/components/RightContentAlert.vue @@ -114,7 +114,7 @@ export default { } .right-content-alert { - height: calc(100% - 32px); + height: calc(100% - calc(32px * var(--beilv))); display: flex; gap: calc(100vw / 1920 * 16); overflow: hidden; diff --git a/src/views/3DOverview/components/RightContentFaultAnalysis.vue b/src/views/3DOverview/components/RightContentFaultAnalysis.vue index 4e7ef0d..d07bcc1 100644 --- a/src/views/3DOverview/components/RightContentFaultAnalysis.vue +++ b/src/views/3DOverview/components/RightContentFaultAnalysis.vue @@ -301,7 +301,8 @@ export default { this.configs.title.textStyle.fontSize = titleSize this.configs.title.subtextStyle.fontSize = subtitleSize - this.configs.legend.top = '24%' + this.configs.legend.top = '26%' + this.configs.legend.left = fs8 this.configs.legend.itemGap = fs8 this.configs.legend.itemWidth = fs8 diff --git a/src/views/3DOverview/components/RightContentQualityAnalysis.vue b/src/views/3DOverview/components/RightContentQualityAnalysis.vue index 919cf20..145e7d5 100644 --- a/src/views/3DOverview/components/RightContentQualityAnalysis.vue +++ b/src/views/3DOverview/components/RightContentQualityAnalysis.vue @@ -47,7 +47,7 @@ export default { diff --git a/src/views/QualityManager/components/TechyAnalysisHeader.vue b/src/views/QualityManager/components/TechyAnalysisHeader.vue index 8b2eb85..d54c7b6 100644 --- a/src/views/QualityManager/components/TechyAnalysisHeader.vue +++ b/src/views/QualityManager/components/TechyAnalysisHeader.vue @@ -55,7 +55,131 @@ - + + + + + + right + + + + + + + + + + + + + + + + + + + + + +
+
产线A
+
产线B
+
+ + + +