Commit 13fb6153 authored by 张伯涛's avatar 张伯涛

大屏修改

parent e3832c7c
...@@ -2236,7 +2236,7 @@ export default defineComponent({ ...@@ -2236,7 +2236,7 @@ export default defineComponent({
this.heatSourceList = this.flowList this.heatSourceList = this.flowList
this.heatTrendX = this.flowListX.map(time => this.formatTime(time)) this.heatTrendX = this.flowListX.map(time => this.formatTime(time))
} }
console.log('this.this.heatType =',this.heatSourceList)
this.heatTrendY = [] this.heatTrendY = []
for (let i = 0; i < this.heatSourceList.length; i++) { for (let i = 0; i < this.heatSourceList.length; i++) {
const name = this.heatSourceList[i][0].supplyName const name = this.heatSourceList[i][0].supplyName
...@@ -2246,6 +2246,9 @@ export default defineComponent({ ...@@ -2246,6 +2246,9 @@ export default defineComponent({
} }
console.log('this.heatTrendY',this.heatTrendY) console.log('this.heatTrendY',this.heatTrendY)
if (document.querySelector("#secondLeftLayer1")) { if (document.querySelector("#secondLeftLayer1")) {
var chartDom = document.getElementById("secondLeftLayer1");
var myChart = echarts.init(chartDom);
myChart.dispose()
this.echartInitHeatSource(); // 热源趋势echarts this.echartInitHeatSource(); // 热源趋势echarts
} }
}) })
...@@ -3603,11 +3606,17 @@ export default defineComponent({ ...@@ -3603,11 +3606,17 @@ export default defineComponent({
var chartDom = document.getElementById("secondLeftLayer1"); var chartDom = document.getElementById("secondLeftLayer1");
var myChart = echarts.init(chartDom); var myChart = echarts.init(chartDom);
var option; var option;
const legendData = this.heatTrendY.map(item => item.name)
option = { option = {
tooltip: { tooltip: {
trigger: "axis", trigger: "axis",
}, },
legend: {
data: legendData,
textStyle: {
color: '#ffffff' // 设置字体颜色为红色
}
},
xAxis: { xAxis: {
type: 'category', type: 'category',
data: this.heatTrendX, data: this.heatTrendX,
...@@ -3640,7 +3649,7 @@ export default defineComponent({ ...@@ -3640,7 +3649,7 @@ export default defineComponent({
grid: { grid: {
left: 30, left: 30,
right: 20, right: 20,
top: 10, top: 65,
bottom: 35, bottom: 35,
}, },
series: this.heatTrendY.map(series => ({ series: this.heatTrendY.map(series => ({
...@@ -4426,19 +4435,19 @@ export default defineComponent({ ...@@ -4426,19 +4435,19 @@ export default defineComponent({
background: linear-gradient(318deg, rgba(29, 70, 128, 0.8) 0%, rgba(13, 23, 76, 0.8) 100%); background: linear-gradient(318deg, rgba(29, 70, 128, 0.8) 0%, rgba(13, 23, 76, 0.8) 100%);
} }
.secondLeftLayer_one{ .secondLeftLayer_one{
height: 26%; height: 30%;
border: rgba(129, 210, 230, 0.5) solid 1px; border: rgba(129, 210, 230, 0.5) solid 1px;
//padding: 0 0 0 10px; //padding: 0 0 0 10px;
background: linear-gradient(318deg, rgba(29, 70, 128, 0.8) 0%, rgba(13, 23, 76, 0.8) 100%); background: linear-gradient(318deg, rgba(29, 70, 128, 0.8) 0%, rgba(13, 23, 76, 0.8) 100%);
} }
.secondLeftLayer_two{ .secondLeftLayer_two{
height: 26%; height: 24%;
border: rgba(129, 210, 230, 0.5) solid 1px; border: rgba(129, 210, 230, 0.5) solid 1px;
//padding: 0 0 0 10px; //padding: 0 0 0 10px;
background: linear-gradient(318deg, rgba(29, 70, 128, 0.8) 0%, rgba(13, 23, 76, 0.8) 100%); background: linear-gradient(318deg, rgba(29, 70, 128, 0.8) 0%, rgba(13, 23, 76, 0.8) 100%);
} }
.secondLeftLayer_three{ .secondLeftLayer_three{
height: 46%; height: 44%;
border: rgba(129, 210, 230, 0.5) solid 1px; border: rgba(129, 210, 230, 0.5) solid 1px;
//padding: 0 0 0 10px; //padding: 0 0 0 10px;
background: linear-gradient(318deg, rgba(29, 70, 128, 0.8) 0%, rgba(13, 23, 76, 0.8) 100%); background: linear-gradient(318deg, rgba(29, 70, 128, 0.8) 0%, rgba(13, 23, 76, 0.8) 100%);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment