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/yield/components/sub/bar/BarChartBase.vue b/src/views/copilot/components/BarChartBase.vue similarity index 98% rename from src/views/copilot/yield/components/sub/bar/BarChartBase.vue rename to src/views/copilot/components/BarChartBase.vue index 5369183..ea5cfdf 100644 --- a/src/views/copilot/yield/components/sub/bar/BarChartBase.vue +++ b/src/views/copilot/components/BarChartBase.vue @@ -26,7 +26,7 @@ + + diff --git a/src/views/copilot/container.vue b/src/views/copilot/container.vue index 2bb12b8..4dd3478 100644 --- a/src/views/copilot/container.vue +++ b/src/views/copilot/container.vue @@ -15,7 +15,7 @@ /> - + diff --git a/src/views/copilot/efficiency/components/ChipOee.vue b/src/views/copilot/efficiency/components/ChipOee.vue new file mode 100644 index 0000000..f645336 --- /dev/null +++ b/src/views/copilot/efficiency/components/ChipOee.vue @@ -0,0 +1,110 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/ChipRate.vue b/src/views/copilot/efficiency/components/ChipRate.vue new file mode 100644 index 0000000..425ea68 --- /dev/null +++ b/src/views/copilot/efficiency/components/ChipRate.vue @@ -0,0 +1,60 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/StdRate.vue b/src/views/copilot/efficiency/components/StdRate.vue new file mode 100644 index 0000000..42d7d26 --- /dev/null +++ b/src/views/copilot/efficiency/components/StdRate.vue @@ -0,0 +1,57 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/TransformRate.vue b/src/views/copilot/efficiency/components/TransformRate.vue new file mode 100644 index 0000000..73ccb90 --- /dev/null +++ b/src/views/copilot/efficiency/components/TransformRate.vue @@ -0,0 +1,110 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue b/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue new file mode 100644 index 0000000..8ab9eb7 --- /dev/null +++ b/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue @@ -0,0 +1,257 @@ + + + + + + diff --git a/src/views/copilot/efficiency/components/sub/chip/ChipRateItem.vue b/src/views/copilot/efficiency/components/sub/chip/ChipRateItem.vue new file mode 100644 index 0000000..a084331 --- /dev/null +++ b/src/views/copilot/efficiency/components/sub/chip/ChipRateItem.vue @@ -0,0 +1,195 @@ + + + + + + + +l diff --git a/src/views/copilot/efficiency/components/sub/std/CityName.vue b/src/views/copilot/efficiency/components/sub/std/CityName.vue new file mode 100644 index 0000000..f157336 --- /dev/null +++ b/src/views/copilot/efficiency/components/sub/std/CityName.vue @@ -0,0 +1,66 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/sub/std/ProgressBar.vue b/src/views/copilot/efficiency/components/sub/std/ProgressBar.vue new file mode 100644 index 0000000..4ae66f0 --- /dev/null +++ b/src/views/copilot/efficiency/components/sub/std/ProgressBar.vue @@ -0,0 +1,113 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/sub/std/StdRateItem.vue b/src/views/copilot/efficiency/components/sub/std/StdRateItem.vue new file mode 100644 index 0000000..e9422c1 --- /dev/null +++ b/src/views/copilot/efficiency/components/sub/std/StdRateItem.vue @@ -0,0 +1,60 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/index.vue b/src/views/copilot/efficiency/index.vue index 1afd590..f8f0571 100644 --- a/src/views/copilot/efficiency/index.vue +++ b/src/views/copilot/efficiency/index.vue @@ -1,7 +1,7 @@ @@ -9,21 +9,36 @@ + + diff --git a/src/views/copilot/energy/components/NatGas.vue b/src/views/copilot/energy/components/NatGas.vue new file mode 100644 index 0000000..eb9febd --- /dev/null +++ b/src/views/copilot/energy/components/NatGas.vue @@ -0,0 +1,115 @@ + + + + + + + diff --git a/src/views/copilot/energy/components/StockMonitor.vue b/src/views/copilot/energy/components/StockMonitor.vue new file mode 100644 index 0000000..d5ada52 --- /dev/null +++ b/src/views/copilot/energy/components/StockMonitor.vue @@ -0,0 +1,63 @@ + + + + + + + diff --git a/src/views/copilot/energy/components/WaterCost.vue b/src/views/copilot/energy/components/WaterCost.vue new file mode 100644 index 0000000..0adfd9d --- /dev/null +++ b/src/views/copilot/energy/components/WaterCost.vue @@ -0,0 +1,128 @@ + + + + + + + diff --git a/src/views/copilot/energy/components/sub/monitor/MonitorItem.vue b/src/views/copilot/energy/components/sub/monitor/MonitorItem.vue new file mode 100644 index 0000000..10df11b --- /dev/null +++ b/src/views/copilot/energy/components/sub/monitor/MonitorItem.vue @@ -0,0 +1,139 @@ + + + + + + + +l diff --git a/src/views/copilot/energy/index.vue b/src/views/copilot/energy/index.vue index 5e4ae78..e92d39b 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/energy/options/monitorOptions.js b/src/views/copilot/energy/options/monitorOptions.js new file mode 100644 index 0000000..a503461 --- /dev/null +++ b/src/views/copilot/energy/options/monitorOptions.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 }, + }, + ], + }, + ], + }; +} 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 @@