-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/energyManagement/components/BillingDegreeChart.vue b/src/views/energyManagement/components/BillingDegreeChart.vue
index bfdca33..38a5f15 100644
--- a/src/views/energyManagement/components/BillingDegreeChart.vue
+++ b/src/views/energyManagement/components/BillingDegreeChart.vue
@@ -6,81 +6,101 @@ const defaultChartOption = ref({
tooltip: {
trigger: "axis",
axisPointer: {
- type: "shadow"
- }
+ type: "shadow",
+ },
},
legend: {
- data: ['尖峰', '半尖峰', '離峰度數'],
+ data: ["尖峰", "半尖峰", "離峰度數"],
textStyle: {
color: "#ffffff",
fontSize: 16,
},
- orient: "horizontal",
+ orient: "horizontal",
bottom: "0%",
},
grid: {
- top: '5%',
- left: '0%',
- right: '0%',
- bottom: '10%',
- containLabel: true
+ top: "5%",
+ left: "0%",
+ right: "0%",
+ bottom: "15%",
+ containLabel: true,
},
xAxis: {
- type: 'category',
- data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
+ type: "category",
+ data: [
+ "1月",
+ "2月",
+ "3月",
+ "4月",
+ "5月",
+ "6月",
+ "7月",
+ "8月",
+ "9月",
+ "10月",
+ "11月",
+ "12月",
+ ],
axisLabel: {
color: "#ffffff",
},
},
yAxis: {
- type: 'value',
+ type: "value",
axisLabel: {
color: "#ffffff",
},
},
series: [
{
- name: '尖峰',
- type: 'bar',
- stack: 'total',
- data: [5000, 5500, 7000, 7500, 9000, 9500, 11000, 11500, 11000, 7500, 6500, 5500],
+ name: "尖峰",
+ type: "bar",
+ stack: "total",
+ data: [
+ 5000, 5500, 7000, 7500, 9000, 9500, 11000, 11500, 11000, 7500, 6500,
+ 5500,
+ ],
itemStyle: {
- color: '#3c50e0',
+ color: "#45f4ef",
},
},
{
- name: '半尖峰',
- type: 'bar',
- stack: 'total',
- data: [3000, 3200, 4500, 4800, 5200, 5800, 6000, 6100, 6200, 5300, 4500, 4000],
+ name: "半尖峰",
+ type: "bar",
+ stack: "total",
+ data: [
+ 3000, 3200, 4500, 4800, 5200, 5800, 6000, 6100, 6200, 5300, 4500, 4000,
+ ],
itemStyle: {
- color: '#6577f3',
+ color: "#ffd345",
},
},
{
- name: '離峰度數',
- type: 'bar',
- stack: 'total',
- data: [2000, 2500, 3500, 4000, 4500, 5000, 5200, 5300, 5400, 4500, 4000, 3500],
+ name: "離峰度數",
+ type: "bar",
+ stack: "total",
+ data: [
+ 2000, 2500, 3500, 4000, 4500, 5000, 5200, 5300, 5400, 4500, 4000, 3500,
+ ],
itemStyle: {
- color: '#8fd0ef',
+ color: "#64ed81",
},
- }
- ]
+ },
+ ],
});
onMounted(() => {
- //
+ //
});
-
-
-
每月計費度數 (kWh)
+
+
每月計費度數 (kWh)
+
diff --git a/src/views/energyManagement/components/CarbonEmissionChart.vue b/src/views/energyManagement/components/CarbonEmissionChart.vue
new file mode 100644
index 0000000..b5043e1
--- /dev/null
+++ b/src/views/energyManagement/components/CarbonEmissionChart.vue
@@ -0,0 +1,99 @@
+
+
+
+
+
+ 每月碳排當量 (kgCO2e) 與減量目標
+
+
+
+
+
+
diff --git a/src/views/energyManagement/components/ElecConsumption.vue b/src/views/energyManagement/components/ElecConsumption.vue
index fd51b92..272857e 100644
--- a/src/views/energyManagement/components/ElecConsumption.vue
+++ b/src/views/energyManagement/components/ElecConsumption.vue
@@ -59,19 +59,34 @@ onMounted(() => {
-
-
-
用電即時分佈
-
+
+
用電即時分佈
+
+
+
+ -
+ 總用電 (kWh)
+ 160.05
+
+ -
+ 綠電 (kWh)
+ 39.50
+
+
-
diff --git a/src/views/energyManagement/components/ElectricityBillChart.vue b/src/views/energyManagement/components/ElectricityBillChart.vue
deleted file mode 100644
index 5c73cde..0000000
--- a/src/views/energyManagement/components/ElectricityBillChart.vue
+++ /dev/null
@@ -1,80 +0,0 @@
-
-
-
-
-
diff --git a/src/views/energyManagement/components/ImmediateDemandChart.vue b/src/views/energyManagement/components/ImmediateDemandChart.vue
index fd03231..cea5fb9 100644
--- a/src/views/energyManagement/components/ImmediateDemandChart.vue
+++ b/src/views/energyManagement/components/ImmediateDemandChart.vue
@@ -113,19 +113,29 @@ onMounted(() => {
-
-
-
-
即時需量279.09Kw
-
-
+
+
+
+ 即時需量
+ 245.48 kw
+
+
+ 平均需量
+ 230.8 kw
+
+
-
+
diff --git a/src/views/energyManagement/components/IntervalBillChart.vue b/src/views/energyManagement/components/IntervalBillChart.vue
new file mode 100644
index 0000000..d50c96e
--- /dev/null
+++ b/src/views/energyManagement/components/IntervalBillChart.vue
@@ -0,0 +1,111 @@
+
+
+
+
+
+ 區間計費度數 2024 / 11 / 01 ~ 2024 / 11 / 15
+
+
+
+
+
+
+
+
diff --git a/src/views/energyManagement/components/MonthlyElecBillChart.vue b/src/views/energyManagement/components/MonthlyElecBillChart.vue
new file mode 100644
index 0000000..beca711
--- /dev/null
+++ b/src/views/energyManagement/components/MonthlyElecBillChart.vue
@@ -0,0 +1,112 @@
+
+
+
+
+
diff --git a/src/views/energyManagement/components/UsageInformation.vue b/src/views/energyManagement/components/UsageInformation.vue
index 937869f..aaab3c9 100644
--- a/src/views/energyManagement/components/UsageInformation.vue
+++ b/src/views/energyManagement/components/UsageInformation.vue
@@ -1,35 +1,60 @@
-
-
-
-
今年電費總計 (元)
-
516,519
-
2024-01-01 ~ 2024-08-08
-
-
-
區間電費總計 (元)
-
22,432
-
2024-07-01 ~ 2024-07-31
-
-
-
-
-
-
-
今年用電度數 (kWh)
-
172,173
-
2024-01-01 ~ 2024-08-08
-
-
-
區間用電度數 (kWh)
-
7,477
-
2024-07-01 ~ 2024-07-31
+
+
+
{{ item.title }}
+
{{ item.time }}
+
{{ item.data }}
-
+
diff --git a/vite.config.js b/vite.config.js
index 0f3edd8..00df2bc 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -16,7 +16,7 @@ export default defineConfig({
server: {
proxy: {
'/upload': {
- target: "http://220.132.206.5:8008",
+ target: "http://192.168.0.206:8088/upload",
changeOrigin: true,
secure: false,
},