From 814fe4605acac0451f7e5161f8070cf4b38a7d8e Mon Sep 17 00:00:00 2001
From: juzi <819872918@qq.com>
Date: Wed, 11 Oct 2023 14:30:18 +0800
Subject: [PATCH] =?UTF-8?q?UI=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9=E8=83=BD?=
=?UTF-8?q?=E6=BA=90&=E7=8F=AD=E7=BB=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../contrastAnalysis/components/barChart.vue | 22 +-
.../contrastAnalysis/components/lineChart.vue | 3 +-
.../components/searchArea.vue | 14 +-
.../qoqAnalysis/components/lineChart.vue | 30 ++-
.../qoqAnalysis/components/searchArea.vue | 16 +-
.../energy/analysis/qoqAnalysis/index.vue | 22 +-
.../trendAnalysis/components/barChart.vue | 6 -
.../trendAnalysis/components/lineChart.vue | 6 +-
.../trendAnalysis/components/searchArea.vue | 14 +-
.../yoyAnalysis/components/lineChart.vue | 3 +-
.../yoyAnalysis/components/searchArea.vue | 26 +-
.../energy/analysis/yoyAnalysis/index.vue | 23 +-
.../components/energyPlcParam.vue | 2 +-
.../energy/base/energyPlcConnect/index.vue | 24 +-
.../energyLimit/components/energyLimitAdd.vue | 116 +++++----
.../components/energyStatisticsDet.vue | 2 +-
.../monitoring/energyStatistics/index.vue | 24 +-
src/views/group/base/groupClasses/index.vue | 14 +-
.../groupTeam/components/groupTeamAdd.vue | 36 ++-
.../group/base/groupTeamScheduling/index.vue | 10 +
yarn.lock | 235 ++++++++----------
21 files changed, 385 insertions(+), 263 deletions(-)
diff --git a/src/views/energy/analysis/contrastAnalysis/components/barChart.vue b/src/views/energy/analysis/contrastAnalysis/components/barChart.vue
index 943c5a36..075996b6 100644
--- a/src/views/energy/analysis/contrastAnalysis/components/barChart.vue
+++ b/src/views/energy/analysis/contrastAnalysis/components/barChart.vue
@@ -97,6 +97,22 @@ export default {
trigger: 'axis',
axisPointer: {
type: 'shadow'
+ },
+ formatter: function(params) {
+ return (
+ params[0].axisValue +
+ `
` +
+ params.map((item) => {
+ let str = ``
+ let seriesNameStr = `${item.seriesName}`
+ let value = item.value ? item.value : '-'
+ let valueStr = `${value}`
+ return `
+ ${str}${seriesNameStr}
+ ${valueStr}
+ `
+ }).join(``)
+ )
}
},
grid: {
@@ -106,7 +122,11 @@ export default {
containLabel: true
},
legend: {
- data: legendData
+ data: legendData,
+ right: '1%',
+ icon: 'rect',
+ itemHeight: 8,
+ itemWidth: 8
},
xAxis: {
type: 'category',
diff --git a/src/views/energy/analysis/contrastAnalysis/components/lineChart.vue b/src/views/energy/analysis/contrastAnalysis/components/lineChart.vue
index ae958da9..b1cc088e 100644
--- a/src/views/energy/analysis/contrastAnalysis/components/lineChart.vue
+++ b/src/views/energy/analysis/contrastAnalysis/components/lineChart.vue
@@ -103,7 +103,8 @@ export default {
containLabel: true
},
legend: {
- data: legendData
+ data: legendData,
+ right: '1%'
},
xAxis: {
type: 'category',
diff --git a/src/views/energy/analysis/contrastAnalysis/components/searchArea.vue b/src/views/energy/analysis/contrastAnalysis/components/searchArea.vue
index 4d7d48ea..4370bfec 100644
--- a/src/views/energy/analysis/contrastAnalysis/components/searchArea.vue
+++ b/src/views/energy/analysis/contrastAnalysis/components/searchArea.vue
@@ -425,7 +425,7 @@ export default {
}
}
-
-
-
-
\ No newline at end of file
diff --git a/src/views/energy/analysis/trendAnalysis/components/barChart.vue b/src/views/energy/analysis/trendAnalysis/components/barChart.vue
index f777a64f..4b4e91b9 100644
--- a/src/views/energy/analysis/trendAnalysis/components/barChart.vue
+++ b/src/views/energy/analysis/trendAnalysis/components/barChart.vue
@@ -68,12 +68,6 @@ export default {
}
var option = {
color:['#288AFF'],
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'shadow'
- }
- },
grid: {
left: '4%',
right: '1%',
diff --git a/src/views/energy/analysis/trendAnalysis/components/lineChart.vue b/src/views/energy/analysis/trendAnalysis/components/lineChart.vue
index bb403169..82c8c900 100644
--- a/src/views/energy/analysis/trendAnalysis/components/lineChart.vue
+++ b/src/views/energy/analysis/trendAnalysis/components/lineChart.vue
@@ -70,9 +70,9 @@ export default {
var option = {
color:['#288AFF'],
- tooltip: {
- trigger: 'axis'
- },
+ // tooltip: {
+ // trigger: 'axis'
+ // },
grid: {
left: '4%',
right: '1%',
diff --git a/src/views/energy/analysis/trendAnalysis/components/searchArea.vue b/src/views/energy/analysis/trendAnalysis/components/searchArea.vue
index 67842ab3..22262036 100644
--- a/src/views/energy/analysis/trendAnalysis/components/searchArea.vue
+++ b/src/views/energy/analysis/trendAnalysis/components/searchArea.vue
@@ -385,7 +385,7 @@ export default {
}
}
-
-
-
\ No newline at end of file
diff --git a/src/views/energy/analysis/yoyAnalysis/index.vue b/src/views/energy/analysis/yoyAnalysis/index.vue
index 670c2563..2b098f03 100644
--- a/src/views/energy/analysis/yoyAnalysis/index.vue
+++ b/src/views/energy/analysis/yoyAnalysis/index.vue
@@ -3,6 +3,7 @@