diff --git a/src/views/data/electricity/network.vue b/src/views/data/electricity/network.vue
index fbaeaa9..d623a5c 100644
--- a/src/views/data/electricity/network.vue
+++ b/src/views/data/electricity/network.vue
@@ -38,7 +38,7 @@
// { text: '配电网区域', value: 'electricityArea', align: 'center' },
// { text: '上传人', value: 'uploaderName', align: 'center' },
// { text: '上传时间', value: 'uploadTime', align: 'center' },
- { text: '基准功率', value: 'basePower', align: 'center' },
+ { text: '基准功率(MVA)', value: 'basePower', align: 'center' },
{ text: '系统节点数', value: 'nodeNum', align: 'center' },
{ text: '发电机数', value: 'genNum', align: 'center' },
{ text: '系统负荷数', value: 'loadNum', align: 'center' },
diff --git a/src/views/data/electricity/page.vue b/src/views/data/electricity/page.vue
index 93492d1..e414999 100644
--- a/src/views/data/electricity/page.vue
+++ b/src/views/data/electricity/page.vue
@@ -30,16 +30,16 @@
const columns = ref([
{ text: '机组名称', value: 'stationName', align: 'center' },
{ text: '发电机组对应节点数', value: 'nodeId', align: 'center' },
- { text: '发电机有功/MW', value: 'pg', align: 'center' },
- { text: '发电机无功', value: 'qg', align: 'center' },
- { text: '最大无功', value: 'qmax', align: 'center' },
- { text: '最小无功', value: 'qmin', align: 'center' },
+ { text: '发电机有功(MW)', value: 'pg', align: 'center' },
+ { text: '发电机无功(MW)', value: 'qg', align: 'center' },
+ { text: '最大无功(MVAr)', value: 'qmax', align: 'center' },
+ { text: '最小无功(MVAr)', value: 'qmin', align: 'center' },
{ text: '节点电压', value: 'vg', align: 'center' },
{ text: '发电机容量', value: 'mbase', align: 'center' },
{ text: '运行状态', value: 'sttusName', align: 'center' },
- { text: '最大有功', value: 'pmax', align: 'center' },
- { text: '最小有功', value: 'pmin', align: 'center' },
- { text: '碳排强度', value: 'strength', align: 'center' },
+ { text: '最大有功(MW)', value: 'pmax', align: 'center' },
+ { text: '最小有功(MW)', value: 'pmin', align: 'center' },
+ { text: '碳排强度(gCO2·/kWh)', value: 'strength', align: 'center' },
]) // 表格
const total = ref
(0)
const list = ref([])
diff --git a/src/assets/images/carbon-result-bg-1.png b/src/assets/images/carbon-result-bg-1.png
index d1f724e..d414efe 100644
--- a/src/assets/images/carbon-result-bg-1.png
+++ b/src/assets/images/carbon-result-bg-1.png
Binary files differ
diff --git a/src/components.d.ts b/src/components.d.ts
index ab9c1f9..d4f61cb 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -57,5 +57,6 @@
SystemInfo: typeof import('./components/SystemInfo/index.vue')['default']
TableContainer: typeof import('./components/TableContainer/index.vue')['default']
Trend: typeof import('./components/Trend/index.vue')['default']
+ TrendChart: typeof import('./components/map/trendChart.vue')['default']
}
}
diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue
index 869036b..8ebf01a 100644
--- a/src/components/Echart/LineChart.vue
+++ b/src/components/Echart/LineChart.vue
@@ -30,7 +30,7 @@
default: () => {
return {
top: 50,
- left: 10,
+ left: 20,
right: 20,
bottom: 10,
containLabel: true, // 是否包含坐标轴的刻度标签
@@ -174,6 +174,13 @@
type: Boolean,
default: false,
},
+ /**
+ * 工具
+ */
+ toolbox: {
+ type: Boolean,
+ default: false,
+ },
})
// 图表对象
@@ -183,6 +190,7 @@
// 监听数据变化
watch(
[() => props.xAxisData, props.data], ([newName, newNums], [oldName, oldNums]) => {
+ console.log(newName, newNums)
refreshChart()
},
{
@@ -196,7 +204,7 @@
grid: props.grid,
legend: props.legend, // 图例
toolbox: {
- show: true,
+ show: props.toolbox,
feature: {
dataZoom: {
yAxisIndex: 'none',
diff --git a/src/components/map/index.vue b/src/components/map/index.vue
index fbcdc2f..62cbbd3 100644
--- a/src/components/map/index.vue
+++ b/src/components/map/index.vue
@@ -379,6 +379,7 @@
// 切换用电检测/用热监测
const changeFlagType = () => {
map.value.clearMap()
+ map.value.setCenter([111.765785, 40.718114])
if (flagType.value) {
useHot()
}
diff --git a/src/components/map/infoWindow.vue b/src/components/map/infoWindow.vue
index 430bd46..b1d8cc9 100644
--- a/src/components/map/infoWindow.vue
+++ b/src/components/map/infoWindow.vue
@@ -4,14 +4,17 @@
Date: 2023-05-10
-->
+
+
+
+
+ 节点监测趋势
+
+
+
+ 日
+
+
+ 月
+
+
+ 年
+
+
+
+
+
+
+
diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue
index 0bb95a0..9f395ae 100644
--- a/src/views/dashboard/index.vue
+++ b/src/views/dashboard/index.vue
@@ -24,7 +24,7 @@
-
+
diff --git a/src/views/data/electricity/network.vue b/src/views/data/electricity/network.vue
index fbaeaa9..d623a5c 100644
--- a/src/views/data/electricity/network.vue
+++ b/src/views/data/electricity/network.vue
@@ -38,7 +38,7 @@
// { text: '配电网区域', value: 'electricityArea', align: 'center' },
// { text: '上传人', value: 'uploaderName', align: 'center' },
// { text: '上传时间', value: 'uploadTime', align: 'center' },
- { text: '基准功率', value: 'basePower', align: 'center' },
+ { text: '基准功率(MVA)', value: 'basePower', align: 'center' },
{ text: '系统节点数', value: 'nodeNum', align: 'center' },
{ text: '发电机数', value: 'genNum', align: 'center' },
{ text: '系统负荷数', value: 'loadNum', align: 'center' },
diff --git a/src/views/data/electricity/page.vue b/src/views/data/electricity/page.vue
index 93492d1..e414999 100644
--- a/src/views/data/electricity/page.vue
+++ b/src/views/data/electricity/page.vue
@@ -30,16 +30,16 @@
const columns = ref([
{ text: '机组名称', value: 'stationName', align: 'center' },
{ text: '发电机组对应节点数', value: 'nodeId', align: 'center' },
- { text: '发电机有功/MW', value: 'pg', align: 'center' },
- { text: '发电机无功', value: 'qg', align: 'center' },
- { text: '最大无功', value: 'qmax', align: 'center' },
- { text: '最小无功', value: 'qmin', align: 'center' },
+ { text: '发电机有功(MW)', value: 'pg', align: 'center' },
+ { text: '发电机无功(MW)', value: 'qg', align: 'center' },
+ { text: '最大无功(MVAr)', value: 'qmax', align: 'center' },
+ { text: '最小无功(MVAr)', value: 'qmin', align: 'center' },
{ text: '节点电压', value: 'vg', align: 'center' },
{ text: '发电机容量', value: 'mbase', align: 'center' },
{ text: '运行状态', value: 'sttusName', align: 'center' },
- { text: '最大有功', value: 'pmax', align: 'center' },
- { text: '最小有功', value: 'pmin', align: 'center' },
- { text: '碳排强度', value: 'strength', align: 'center' },
+ { text: '最大有功(MW)', value: 'pmax', align: 'center' },
+ { text: '最小有功(MW)', value: 'pmin', align: 'center' },
+ { text: '碳排强度(gCO2·/kWh)', value: 'strength', align: 'center' },
]) // 表格
const total = ref
(0)
const list = ref([])
diff --git a/src/views/data/environment/page.vue b/src/views/data/environment/page.vue
index 08abe7d..0a337c9 100644
--- a/src/views/data/environment/page.vue
+++ b/src/views/data/environment/page.vue
@@ -21,9 +21,9 @@
}, { deep: true })
const loadingTable = ref(true)
const columns = ref([
- { text: '环境温度', value: 'temperature', align: 'center' },
- { text: '相对湿度', value: 'humidity', align: 'center' },
- { text: '风速', value: 'windSpeed', align: 'center' },
+ { text: '环境温度(°C)', value: 'temperature', align: 'center' },
+ { text: '相对湿度(%rh)', value: 'humidity', align: 'center' },
+ { text: '风速(km/h)', value: 'windSpeed', align: 'center' },
{ text: '风向', value: 'windDirection', align: 'center' },
{ text: '大气压力', value: 'atmos', align: 'center' },
{ text: '降雨量', value: 'rainfall', align: 'center' },
diff --git a/src/assets/images/carbon-result-bg-1.png b/src/assets/images/carbon-result-bg-1.png
index d1f724e..d414efe 100644
--- a/src/assets/images/carbon-result-bg-1.png
+++ b/src/assets/images/carbon-result-bg-1.png
Binary files differ
diff --git a/src/components.d.ts b/src/components.d.ts
index ab9c1f9..d4f61cb 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -57,5 +57,6 @@
SystemInfo: typeof import('./components/SystemInfo/index.vue')['default']
TableContainer: typeof import('./components/TableContainer/index.vue')['default']
Trend: typeof import('./components/Trend/index.vue')['default']
+ TrendChart: typeof import('./components/map/trendChart.vue')['default']
}
}
diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue
index 869036b..8ebf01a 100644
--- a/src/components/Echart/LineChart.vue
+++ b/src/components/Echart/LineChart.vue
@@ -30,7 +30,7 @@
default: () => {
return {
top: 50,
- left: 10,
+ left: 20,
right: 20,
bottom: 10,
containLabel: true, // 是否包含坐标轴的刻度标签
@@ -174,6 +174,13 @@
type: Boolean,
default: false,
},
+ /**
+ * 工具
+ */
+ toolbox: {
+ type: Boolean,
+ default: false,
+ },
})
// 图表对象
@@ -183,6 +190,7 @@
// 监听数据变化
watch(
[() => props.xAxisData, props.data], ([newName, newNums], [oldName, oldNums]) => {
+ console.log(newName, newNums)
refreshChart()
},
{
@@ -196,7 +204,7 @@
grid: props.grid,
legend: props.legend, // 图例
toolbox: {
- show: true,
+ show: props.toolbox,
feature: {
dataZoom: {
yAxisIndex: 'none',
diff --git a/src/components/map/index.vue b/src/components/map/index.vue
index fbcdc2f..62cbbd3 100644
--- a/src/components/map/index.vue
+++ b/src/components/map/index.vue
@@ -379,6 +379,7 @@
// 切换用电检测/用热监测
const changeFlagType = () => {
map.value.clearMap()
+ map.value.setCenter([111.765785, 40.718114])
if (flagType.value) {
useHot()
}
diff --git a/src/components/map/infoWindow.vue b/src/components/map/infoWindow.vue
index 430bd46..b1d8cc9 100644
--- a/src/components/map/infoWindow.vue
+++ b/src/components/map/infoWindow.vue
@@ -4,14 +4,17 @@
Date: 2023-05-10
-->
+
+
+
+
+ 节点监测趋势
+
+
+
+ 日
+
+
+ 月
+
+
+ 年
+
+
+
+
+
+
+
diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue
index 0bb95a0..9f395ae 100644
--- a/src/views/dashboard/index.vue
+++ b/src/views/dashboard/index.vue
@@ -24,7 +24,7 @@
-
+
diff --git a/src/views/data/electricity/network.vue b/src/views/data/electricity/network.vue
index fbaeaa9..d623a5c 100644
--- a/src/views/data/electricity/network.vue
+++ b/src/views/data/electricity/network.vue
@@ -38,7 +38,7 @@
// { text: '配电网区域', value: 'electricityArea', align: 'center' },
// { text: '上传人', value: 'uploaderName', align: 'center' },
// { text: '上传时间', value: 'uploadTime', align: 'center' },
- { text: '基准功率', value: 'basePower', align: 'center' },
+ { text: '基准功率(MVA)', value: 'basePower', align: 'center' },
{ text: '系统节点数', value: 'nodeNum', align: 'center' },
{ text: '发电机数', value: 'genNum', align: 'center' },
{ text: '系统负荷数', value: 'loadNum', align: 'center' },
diff --git a/src/views/data/electricity/page.vue b/src/views/data/electricity/page.vue
index 93492d1..e414999 100644
--- a/src/views/data/electricity/page.vue
+++ b/src/views/data/electricity/page.vue
@@ -30,16 +30,16 @@
const columns = ref([
{ text: '机组名称', value: 'stationName', align: 'center' },
{ text: '发电机组对应节点数', value: 'nodeId', align: 'center' },
- { text: '发电机有功/MW', value: 'pg', align: 'center' },
- { text: '发电机无功', value: 'qg', align: 'center' },
- { text: '最大无功', value: 'qmax', align: 'center' },
- { text: '最小无功', value: 'qmin', align: 'center' },
+ { text: '发电机有功(MW)', value: 'pg', align: 'center' },
+ { text: '发电机无功(MW)', value: 'qg', align: 'center' },
+ { text: '最大无功(MVAr)', value: 'qmax', align: 'center' },
+ { text: '最小无功(MVAr)', value: 'qmin', align: 'center' },
{ text: '节点电压', value: 'vg', align: 'center' },
{ text: '发电机容量', value: 'mbase', align: 'center' },
{ text: '运行状态', value: 'sttusName', align: 'center' },
- { text: '最大有功', value: 'pmax', align: 'center' },
- { text: '最小有功', value: 'pmin', align: 'center' },
- { text: '碳排强度', value: 'strength', align: 'center' },
+ { text: '最大有功(MW)', value: 'pmax', align: 'center' },
+ { text: '最小有功(MW)', value: 'pmin', align: 'center' },
+ { text: '碳排强度(gCO2·/kWh)', value: 'strength', align: 'center' },
]) // 表格
const total = ref
(0)
const list = ref([])
diff --git a/src/views/data/environment/page.vue b/src/views/data/environment/page.vue
index 08abe7d..0a337c9 100644
--- a/src/views/data/environment/page.vue
+++ b/src/views/data/environment/page.vue
@@ -21,9 +21,9 @@
}, { deep: true })
const loadingTable = ref(true)
const columns = ref([
- { text: '环境温度', value: 'temperature', align: 'center' },
- { text: '相对湿度', value: 'humidity', align: 'center' },
- { text: '风速', value: 'windSpeed', align: 'center' },
+ { text: '环境温度(°C)', value: 'temperature', align: 'center' },
+ { text: '相对湿度(%rh)', value: 'humidity', align: 'center' },
+ { text: '风速(km/h)', value: 'windSpeed', align: 'center' },
{ text: '风向', value: 'windDirection', align: 'center' },
{ text: '大气压力', value: 'atmos', align: 'center' },
{ text: '降雨量', value: 'rainfall', align: 'center' },
diff --git a/src/views/data/useHeat/page.vue b/src/views/data/useHeat/page.vue
index b26d0f2..2ad63d0 100644
--- a/src/views/data/useHeat/page.vue
+++ b/src/views/data/useHeat/page.vue
@@ -46,8 +46,8 @@
{ text: '设备类型', value: 'deviceTypeName', align: 'center' },
{ text: '设备编号', value: 'deviceNo', align: 'center' },
{ text: '安装位置', value: 'installLocaltion', align: 'center' },
- { text: props.type === '0' ? '负荷有功功率' : '数值', value: props.type === '0' ? 'pd' : 'monitorVal', align: 'center' },
- { text: props.type === '0' ? '负荷无功功率' : '单位', value: props.type === '0' ? 'qd' : 'monitorUnit', align: 'center' },
+ { text: props.type === '0' ? '负荷有功功率(MW)' : '数值', value: props.type === '0' ? 'pd' : 'monitorVal', align: 'center' },
+ { text: props.type === '0' ? '负荷无功功率(MW)' : '单位', value: props.type === '0' ? 'qd' : 'monitorUnit', align: 'center' },
{ text: '上传时间', value: 'createTime', align: 'center' },
]) // 表格
const total = ref(0)