From 5ed4eed5de3346e320076966370a3483be6e42fc Mon Sep 17 00:00:00 2001 From: "DESKTOP-FUDKNA8\\znjsz" Date: Mon, 29 Apr 2024 13:26:38 +0800 Subject: [PATCH 1/7] update efficiency --- src/views/copilot/{yield => }/assets/icon.png | Bin .../copilot/efficiency/components/ChipOee.vue | 25 ++++++ .../efficiency/components/ChipRate.vue | 27 ++++++ .../copilot/efficiency/components/StdRate.vue | 65 ++++++++++++++ .../efficiency/components/TransformRate.vue | 25 ++++++ .../efficiency/components/sub/CityName.vue | 68 +++++++++++++++ .../efficiency/components/sub/ProgressBar.vue | 82 ++++++++++++++++++ .../efficiency/components/sub/StdRateItem.vue | 65 ++++++++++++++ src/views/copilot/efficiency/index.vue | 34 ++++++-- .../yield/components/sub/city/CityName.vue | 2 +- 10 files changed, 386 insertions(+), 7 deletions(-) rename src/views/copilot/{yield => }/assets/icon.png (100%) create mode 100644 src/views/copilot/efficiency/components/ChipOee.vue create mode 100644 src/views/copilot/efficiency/components/ChipRate.vue create mode 100644 src/views/copilot/efficiency/components/StdRate.vue create mode 100644 src/views/copilot/efficiency/components/TransformRate.vue create mode 100644 src/views/copilot/efficiency/components/sub/CityName.vue create mode 100644 src/views/copilot/efficiency/components/sub/ProgressBar.vue create mode 100644 src/views/copilot/efficiency/components/sub/StdRateItem.vue diff --git a/src/views/copilot/yield/assets/icon.png b/src/views/copilot/assets/icon.png similarity index 100% rename from src/views/copilot/yield/assets/icon.png rename to src/views/copilot/assets/icon.png diff --git a/src/views/copilot/efficiency/components/ChipOee.vue b/src/views/copilot/efficiency/components/ChipOee.vue new file mode 100644 index 0000000..5eb554e --- /dev/null +++ b/src/views/copilot/efficiency/components/ChipOee.vue @@ -0,0 +1,25 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/ChipRate.vue b/src/views/copilot/efficiency/components/ChipRate.vue new file mode 100644 index 0000000..d1fed9e --- /dev/null +++ b/src/views/copilot/efficiency/components/ChipRate.vue @@ -0,0 +1,27 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/StdRate.vue b/src/views/copilot/efficiency/components/StdRate.vue new file mode 100644 index 0000000..7563fdc --- /dev/null +++ b/src/views/copilot/efficiency/components/StdRate.vue @@ -0,0 +1,65 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/TransformRate.vue b/src/views/copilot/efficiency/components/TransformRate.vue new file mode 100644 index 0000000..e68597b --- /dev/null +++ b/src/views/copilot/efficiency/components/TransformRate.vue @@ -0,0 +1,25 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/sub/CityName.vue b/src/views/copilot/efficiency/components/sub/CityName.vue new file mode 100644 index 0000000..6483fce --- /dev/null +++ b/src/views/copilot/efficiency/components/sub/CityName.vue @@ -0,0 +1,68 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/sub/ProgressBar.vue b/src/views/copilot/efficiency/components/sub/ProgressBar.vue new file mode 100644 index 0000000..b0c16be --- /dev/null +++ b/src/views/copilot/efficiency/components/sub/ProgressBar.vue @@ -0,0 +1,82 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/sub/StdRateItem.vue b/src/views/copilot/efficiency/components/sub/StdRateItem.vue new file mode 100644 index 0000000..6b3ed7c --- /dev/null +++ b/src/views/copilot/efficiency/components/sub/StdRateItem.vue @@ -0,0 +1,65 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/index.vue b/src/views/copilot/efficiency/index.vue index 7ea9aab..5303c81 100644 --- a/src/views/copilot/efficiency/index.vue +++ b/src/views/copilot/efficiency/index.vue @@ -7,18 +7,37 @@ @@ -58,7 +52,8 @@ export default { flex: 1; margin: 6px; display: flex; - gap: 2px; + gap: 12px; + height: 60px; flex-direction: column; justify-content: center; } From e066a7c4c7f29ecce63afa058b3f7b762f51532e Mon Sep 17 00:00:00 2001 From: "DESKTOP-FUDKNA8\\znjsz" Date: Mon, 29 Apr 2024 16:00:07 +0800 Subject: [PATCH 3/7] =?UTF-8?q?update=20=E8=8A=AF=E7=89=87=E8=89=AF?= =?UTF-8?q?=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../efficiency/components/ChipRate.vue | 40 +++-- .../copilot/efficiency/components/StdRate.vue | 2 +- .../components/sub/chip/ChipRateItem.vue | 139 ++++++++++++++++ .../components/sub/{ => std}/CityName.vue | 0 .../components/sub/{ => std}/ProgressBar.vue | 0 .../components/sub/{ => std}/StdRateItem.vue | 0 .../copilot/efficiency/options/chipOptions.js | 156 ++++++++++++++++++ 7 files changed, 326 insertions(+), 11 deletions(-) create mode 100644 src/views/copilot/efficiency/components/sub/chip/ChipRateItem.vue rename src/views/copilot/efficiency/components/sub/{ => std}/CityName.vue (100%) rename src/views/copilot/efficiency/components/sub/{ => std}/ProgressBar.vue (100%) rename src/views/copilot/efficiency/components/sub/{ => std}/StdRateItem.vue (100%) create mode 100644 src/views/copilot/efficiency/options/chipOptions.js diff --git a/src/views/copilot/efficiency/components/ChipRate.vue b/src/views/copilot/efficiency/components/ChipRate.vue index d1fed9e..8d71f73 100644 --- a/src/views/copilot/efficiency/components/ChipRate.vue +++ b/src/views/copilot/efficiency/components/ChipRate.vue @@ -6,22 +6,42 @@ --> diff --git a/src/views/copilot/efficiency/components/StdRate.vue b/src/views/copilot/efficiency/components/StdRate.vue index 42aaa3f..42d7d26 100644 --- a/src/views/copilot/efficiency/components/StdRate.vue +++ b/src/views/copilot/efficiency/components/StdRate.vue @@ -20,7 +20,7 @@ + + +l diff --git a/src/views/copilot/efficiency/components/sub/CityName.vue b/src/views/copilot/efficiency/components/sub/std/CityName.vue similarity index 100% rename from src/views/copilot/efficiency/components/sub/CityName.vue rename to src/views/copilot/efficiency/components/sub/std/CityName.vue diff --git a/src/views/copilot/efficiency/components/sub/ProgressBar.vue b/src/views/copilot/efficiency/components/sub/std/ProgressBar.vue similarity index 100% rename from src/views/copilot/efficiency/components/sub/ProgressBar.vue rename to src/views/copilot/efficiency/components/sub/std/ProgressBar.vue diff --git a/src/views/copilot/efficiency/components/sub/StdRateItem.vue b/src/views/copilot/efficiency/components/sub/std/StdRateItem.vue similarity index 100% rename from src/views/copilot/efficiency/components/sub/StdRateItem.vue rename to src/views/copilot/efficiency/components/sub/std/StdRateItem.vue diff --git a/src/views/copilot/efficiency/options/chipOptions.js b/src/views/copilot/efficiency/options/chipOptions.js new file mode 100644 index 0000000..bb27d43 --- /dev/null +++ b/src/views/copilot/efficiency/options/chipOptions.js @@ -0,0 +1,156 @@ +export default function ({ + single = false, + color, + titleValue, + subtitle, + previousSum, + currentSum, + targetSum, +}) { + return { + grid: { + left: 0, + right: 0, + bottom: 0, + top: 0, + containLabel: true, + }, + tooltip: {}, + title: { + text: titleValue, + left: "49%", + top: "39%", + textAlign: "center", + textStyle: { + fontWeight: 600, + fontSize: 32, + color: "#fffd", + }, + subtext: `\u2002${subtitle}\u2002`, + subtextStyle: { + fontSize: 14, + fontWeight: 100, + color: "#fffd", + align: "right", + }, + }, + series: [ + // 背景 series + { + type: "pie", + name: "当前目标", + radius: ["70%", "85%"], + center: ["50%", "52%"], + emptyCircleStyle: { + color: "#040c5f45", + }, + }, + // 数据 series + { + type: "pie", + radius: ["70%", "85%"], + center: ["50%", "52%"], + avoidLabelOvervlap: false, + label: { + show: false, + }, + labelLine: { + show: false, + }, + data: [ + { + value: currentSum, + name: "当前累计产出", + selected: false, + itemStyle: { + borderJoin: "round", + borderCap: "round", + borderWidth: 12, + borderRadius: "50%", + color: { + type: "linear", + x: 1, + y: 0, + x2: 0, + y2: 1, + colorStops: single + ? [ + { offset: 0, color: `${color}11` }, + { offset: 1, color: `${color}` }, + ] + : [ + { offset: 0, color: "#4CF0E811" }, + { offset: 1, color: "#4CF0E8" }, + ], + }, + }, + }, + { + value: + targetSum > currentSum + ? targetSum - currentSum + : targetSum == 0 + ? currentSum == 0 + ? 1 + : 0 + : 0, + + name: "未达成累计", + itemStyle: { color: "transparent" }, + label: { show: false }, + }, + ], + }, + // 数据 series2 - 2023累计 + single + ? null + : { + type: "pie", + radius: ["55%", "70%"], + center: ["50%", "52%"], + avoidLabelOvervlap: false, + label: { + show: false, + }, + labelLine: { + show: false, + }, + data: [ + { + value: previousSum, + name: "上期累计产出", + selected: false, + itemStyle: { + borderJoin: "round", + borderCap: "round", + borderWidth: 12, + borderRadius: "50%", + color: { + type: "linear", + x: 1, + y: 0, + x2: 0, + y2: 1, + colorStops: [ + { offset: 0, color: "#1065ff66" }, + { offset: 1, color: "#1065ff" }, + ], + }, + }, + }, + { + value: + targetSum > previousSum + ? targetSum - previousSum + : previousSum == 0 + ? 1 + : 0, + name: "-", + itemStyle: { color: "transparent" }, + label: { show: false }, + }, + ], + }, + ], + }; +} From bc3a68a9a730817e66c557492a16d18e503777cd Mon Sep 17 00:00:00 2001 From: "DESKTOP-FUDKNA8\\znjsz" Date: Mon, 29 Apr 2024 16:06:59 +0800 Subject: [PATCH 4/7] =?UTF-8?q?update=20=E8=8A=AF=E7=89=87OEE=E5=92=8C?= =?UTF-8?q?=E8=BD=AC=E5=8C=96=E6=95=88=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/copilot/components/BarChartBase.vue | 257 ++++++++++++++++++ .../copilot/efficiency/components/ChipOee.vue | 107 +++++++- .../efficiency/components/TransformRate.vue | 107 +++++++- src/views/copilot/efficiency/index.vue | 4 +- .../copilot/yield/components/FtoInvest.vue | 2 +- 5 files changed, 452 insertions(+), 25 deletions(-) create mode 100644 src/views/copilot/components/BarChartBase.vue diff --git a/src/views/copilot/components/BarChartBase.vue b/src/views/copilot/components/BarChartBase.vue new file mode 100644 index 0000000..ea5cfdf --- /dev/null +++ b/src/views/copilot/components/BarChartBase.vue @@ -0,0 +1,257 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/ChipOee.vue b/src/views/copilot/efficiency/components/ChipOee.vue index 5eb554e..5bc43db 100644 --- a/src/views/copilot/efficiency/components/ChipOee.vue +++ b/src/views/copilot/efficiency/components/ChipOee.vue @@ -5,21 +5,106 @@ description: 芯片OEE --> - + - + diff --git a/src/views/copilot/efficiency/components/TransformRate.vue b/src/views/copilot/efficiency/components/TransformRate.vue index e68597b..73ccb90 100644 --- a/src/views/copilot/efficiency/components/TransformRate.vue +++ b/src/views/copilot/efficiency/components/TransformRate.vue @@ -5,21 +5,106 @@ description: 转化效率 --> - + - + diff --git a/src/views/copilot/efficiency/index.vue b/src/views/copilot/efficiency/index.vue index 5303c81..c07ffbd 100644 --- a/src/views/copilot/efficiency/index.vue +++ b/src/views/copilot/efficiency/index.vue @@ -14,10 +14,10 @@ - + - + diff --git a/src/views/copilot/yield/components/FtoInvest.vue b/src/views/copilot/yield/components/FtoInvest.vue index b41bd1b..c56adce 100644 --- a/src/views/copilot/yield/components/FtoInvest.vue +++ b/src/views/copilot/yield/components/FtoInvest.vue @@ -16,7 +16,7 @@ + + diff --git a/src/views/copilot/energy/components/NatGas.vue b/src/views/copilot/energy/components/NatGas.vue new file mode 100644 index 0000000..2c0ff1d --- /dev/null +++ b/src/views/copilot/energy/components/NatGas.vue @@ -0,0 +1,30 @@ + + + + + + + diff --git a/src/views/copilot/energy/components/StockMonitor.vue b/src/views/copilot/energy/components/StockMonitor.vue new file mode 100644 index 0000000..ea4ce6c --- /dev/null +++ b/src/views/copilot/energy/components/StockMonitor.vue @@ -0,0 +1,30 @@ + + + + + + + diff --git a/src/views/copilot/energy/components/WaterCost.vue b/src/views/copilot/energy/components/WaterCost.vue new file mode 100644 index 0000000..dab648f --- /dev/null +++ b/src/views/copilot/energy/components/WaterCost.vue @@ -0,0 +1,30 @@ + + + + + + + diff --git a/src/views/copilot/energy/index.vue b/src/views/copilot/energy/index.vue index 5e4ae78..21bc61f 100644 --- a/src/views/copilot/energy/index.vue +++ b/src/views/copilot/energy/index.vue @@ -2,24 +2,81 @@ filename: index.vue author: liubin date: 2024-04-16 14:40:15 - description: 能源驾驶舱 + description: 综合驾驶舱 --> - + diff --git a/src/views/copilot/yield/components/ChipInvest.vue b/src/views/copilot/yield/components/ChipInvest.vue index 9fea832..52e8938 100644 --- a/src/views/copilot/yield/components/ChipInvest.vue +++ b/src/views/copilot/yield/components/ChipInvest.vue @@ -16,7 +16,7 @@ - - From ea63cb5730f3188974f7556b3b3835a780ac3146 Mon Sep 17 00:00:00 2001 From: "DESKTOP-FUDKNA8\\znjsz" Date: Tue, 30 Apr 2024 09:35:44 +0800 Subject: [PATCH 6/7] =?UTF-8?q?update=20=E7=BB=BC=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/copilot/components/Container.vue | 8 +- .../copilot/components/LineChartBase.vue | 296 ++++++++++++++++++ .../copilot/energy/components/ElecCost.vue | 112 ++++++- .../copilot/energy/components/NatGas.vue | 101 +++++- .../energy/components/StockMonitor.vue | 41 ++- .../copilot/energy/components/WaterCost.vue | 112 ++++++- .../components/sub/monitor/MonitorItem.vue | 139 ++++++++ src/views/copilot/energy/index.vue | 4 +- .../copilot/energy/options/monitorOptions.js | 156 +++++++++ 9 files changed, 940 insertions(+), 29 deletions(-) create mode 100644 src/views/copilot/components/LineChartBase.vue create mode 100644 src/views/copilot/energy/components/sub/monitor/MonitorItem.vue create mode 100644 src/views/copilot/energy/options/monitorOptions.js diff --git a/src/views/copilot/components/Container.vue b/src/views/copilot/components/Container.vue index 1e59c2c..58af7bc 100644 --- a/src/views/copilot/components/Container.vue +++ b/src/views/copilot/components/Container.vue @@ -9,6 +9,7 @@