Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
海康威视
web-project
Commits
13fb6153
Commit
13fb6153
authored
Oct 17, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大屏修改
parent
e3832c7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
screenDisplay.vue
src/components/screenDisplay.vue
+15
-6
No files found.
src/components/screenDisplay.vue
View file @
13fb6153
...
...
@@ -2236,7 +2236,7 @@ export default defineComponent({
this
.
heatSourceList
=
this
.
flowList
this
.
heatTrendX
=
this
.
flowListX
.
map
(
time
=>
this
.
formatTime
(
time
))
}
console
.
log
(
'this.this.heatType ='
,
this
.
heatSourceList
)
this
.
heatTrendY
=
[]
for
(
let
i
=
0
;
i
<
this
.
heatSourceList
.
length
;
i
++
)
{
const
name
=
this
.
heatSourceList
[
i
][
0
].
supplyName
...
...
@@ -2246,6 +2246,9 @@ export default defineComponent({
}
console
.
log
(
'this.heatTrendY'
,
this
.
heatTrendY
)
if
(
document
.
querySelector
(
"#secondLeftLayer1"
))
{
var
chartDom
=
document
.
getElementById
(
"secondLeftLayer1"
);
var
myChart
=
echarts
.
init
(
chartDom
);
myChart
.
dispose
()
this
.
echartInitHeatSource
();
// 热源趋势echarts
}
})
...
...
@@ -3603,11 +3606,17 @@ export default defineComponent({
var
chartDom
=
document
.
getElementById
(
"secondLeftLayer1"
);
var
myChart
=
echarts
.
init
(
chartDom
);
var
option
;
const
legendData
=
this
.
heatTrendY
.
map
(
item
=>
item
.
name
)
option
=
{
tooltip
:
{
trigger
:
"axis"
,
},
legend
:
{
data
:
legendData
,
textStyle
:
{
color
:
'#ffffff'
// 设置字体颜色为红色
}
},
xAxis
:
{
type
:
'category'
,
data
:
this
.
heatTrendX
,
...
...
@@ -3640,7 +3649,7 @@ export default defineComponent({
grid
:
{
left
:
30
,
right
:
20
,
top
:
10
,
top
:
65
,
bottom
:
35
,
},
series
:
this
.
heatTrendY
.
map
(
series
=>
({
...
...
@@ -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%
);
}
.secondLeftLayer_one
{
height
:
26
%
;
height
:
30
%
;
border
:
rgba
(
129
,
210
,
230
,
0
.5
)
solid
1px
;
//padding: 0 0 0 10px;
background
:
linear-gradient
(
318deg
,
rgba
(
29
,
70
,
128
,
0
.8
)
0%
,
rgba
(
13
,
23
,
76
,
0
.8
)
100%
);
}
.secondLeftLayer_two
{
height
:
2
6
%
;
height
:
2
4
%
;
border
:
rgba
(
129
,
210
,
230
,
0
.5
)
solid
1px
;
//padding: 0 0 0 10px;
background
:
linear-gradient
(
318deg
,
rgba
(
29
,
70
,
128
,
0
.8
)
0%
,
rgba
(
13
,
23
,
76
,
0
.8
)
100%
);
}
.secondLeftLayer_three
{
height
:
4
6
%
;
height
:
4
4
%
;
border
:
rgba
(
129
,
210
,
230
,
0
.5
)
solid
1px
;
//padding: 0 0 0 10px;
background
:
linear-gradient
(
318deg
,
rgba
(
29
,
70
,
128
,
0
.8
)
0%
,
rgba
(
13
,
23
,
76
,
0
.8
)
100%
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment