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 @@
+
同比分析图
@@ -33,12 +34,12 @@ export default { chartData: [], tableProps: [], list: [], - tableH: this.tableHeight(600) + tableH: this.tableHeight(640) } }, mounted() { window.addEventListener('resize', () => { - this.tableH = this.tableHeight(600) + this.tableH = this.tableHeight(640) }) }, methods: { @@ -122,4 +123,20 @@ export default { } } } - \ No newline at end of file + + \ No newline at end of file diff --git a/src/views/energy/base/energyPlcConnect/components/energyPlcParam.vue b/src/views/energy/base/energyPlcConnect/components/energyPlcParam.vue index 41b9cd36..ab1dd648 100644 --- a/src/views/energy/base/energyPlcConnect/components/energyPlcParam.vue +++ b/src/views/energy/base/energyPlcConnect/components/energyPlcParam.vue @@ -130,7 +130,7 @@ export default { this.plcTableName = data.plcTableName this.objName = data.objName this.getList() - if (title === 'view') { + if (title === 'detail') { this.showBtn = false this.tableBtn = [] } else { diff --git a/src/views/energy/base/energyPlcConnect/index.vue b/src/views/energy/base/energyPlcConnect/index.vue index f7177ff0..f3f30916 100644 --- a/src/views/energy/base/energyPlcConnect/index.vue +++ b/src/views/energy/base/energyPlcConnect/index.vue @@ -113,22 +113,22 @@ export default { ], tableProps, tableBtn: [ + this.$auth.hasPermi('base:energy-plc-connect:bind') + ? { + type: 'connect', + btnName: '绑定' + } + : undefined, + { + type: 'detail', + btnName: '详情' + }, this.$auth.hasPermi('base:energy-plc-connect:update') ? { type: 'edit', btnName: '编辑' } : undefined, - { - type: 'view', - btnName: '查看' - }, - this.$auth.hasPermi('base:energy-plc-connect:bind') - ? { - type: 'connect', - btnName: '绑定' - } - : undefined, this.$auth.hasPermi('base:energy-plc-connect:delete') ? { type: 'delete', @@ -205,10 +205,10 @@ export default { case 'delete': this.handleDelete(val.data) break - case 'view': + case 'detail': this.paramVisible = true this.$nextTick(() => { - this.$refs.plcParam.init(val.data, 'view') + this.$refs.plcParam.init(val.data, 'detail') }) break default: diff --git a/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue b/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue index cd63836d..d3bf793a 100644 --- a/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue +++ b/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue @@ -1,54 +1,72 @@