Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZiBoYingJI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Kimber
ZiBoYingJI
Commits
7a8d619c
Commit
7a8d619c
authored
Nov 15, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
detail markerline color
parent
a3c4e519
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
4 deletions
+32
-4
shape-monitor.html
public/datav/detail/shape-monitor.html
+9
-1
public-detail.js
public/datav/detail/static/js/public-detail.js
+2
-2
temperature-monitor.html
public/datav/detail/temperature-monitor.html
+10
-1
wind-monitor.html
public/datav/detail/wind-monitor.html
+11
-0
No files found.
public/datav/detail/shape-monitor.html
View file @
7a8d619c
...
...
@@ -408,6 +408,7 @@
chartsOption
.
xAxis
.
data
=
result
.
xData
.
data
var
colors
=
[
'
#7CB5EC
'
,
'
#90ED7D
'
,
'
#F7A35C
'
,
'
#8085E9
'
];
var
marklineColors
=
[
'
red
'
,
'
orange
'
,
'
yellow
'
,
'
blue
'
];
chartsOption
.
series
=
result
.
yData
.
map
((
item
,
index
)
=>
{
var
tempObj
=
JSON
.
parse
(
JSON
.
stringify
(
yAxisOption
));
tempObj
.
data
=
item
.
data
...
...
@@ -415,7 +416,14 @@
tempObj
.
itemStyle
.
color
=
colors
[
index
];
tempObj
.
markLine
.
data
=
item
.
alarm
tempObj
.
markLine
.
data
=
item
.
alarm
.
map
((
item1
,
index1
)
=>
{
item1
.
lineStyle
=
{
color
:
marklineColors
[
index1
]
}
return
item1
})
delete
tempObj
[
'
markLine
'
]
return
tempObj
})
...
...
public/datav/detail/static/js/public-detail.js
View file @
7a8d619c
...
...
@@ -33,9 +33,9 @@ let jessibucaPlayer = {};
}
);
var
host
=
location
.
protocol
+
'
//
'
+
(
location
.
hostname
===
'
192.168.
3.38
'
?
'
192.168.3
.37
'
:
'
192.168.13.200
'
)
+
'
:8013
'
;
var
host
=
location
.
protocol
+
'
//
'
+
(
location
.
hostname
===
'
192.168.
2.11
'
?
'
192.168.2
.37
'
:
'
192.168.13.200
'
)
+
'
:8013
'
;
var
selfHost
=
location
.
hostname
===
'
192.168.
3.38
'
?
'
http://192.168.3.38
:8057
'
:
location
.
protocol
+
'
//
'
+
window
.
location
.
host
;
var
selfHost
=
location
.
hostname
===
'
192.168.
2.11
'
?
'
http://192.168.2.11
:8057
'
:
location
.
protocol
+
'
//
'
+
window
.
location
.
host
;
// 请求 token 用
...
...
public/datav/detail/temperature-monitor.html
View file @
7a8d619c
...
...
@@ -330,11 +330,20 @@
const
result
=
res
.
data
.
body
;
if
(
result
)
{
chartsOption
.
xAxis
.
data
=
result
.
xData
.
data
var
marklineColors
=
[
'
red
'
,
'
orange
'
,
'
yellow
'
,
'
blue
'
];
chartsOption
.
series
=
result
.
yData
.
map
((
item
,
index
)
=>
{
var
tempObj
=
JSON
.
parse
(
JSON
.
stringify
(
yAxisOption
));
tempObj
.
data
=
item
.
data
tempObj
.
name
=
item
.
name
tempObj
.
markLine
.
data
=
item
.
alarm
tempObj
.
markLine
.
data
=
item
.
alarm
.
map
((
item1
,
index1
)
=>
{
item1
.
lineStyle
=
{
color
:
marklineColors
[
index1
]
}
return
item1
})
delete
tempObj
[
'
markLine
'
]
return
tempObj
})
...
...
public/datav/detail/wind-monitor.html
View file @
7a8d619c
...
...
@@ -320,11 +320,22 @@
const
result
=
res
.
data
.
body
;
if
(
result
)
{
chartsOption
.
xAxis
.
data
=
result
.
xData
.
data
var
marklineColors
=
[
'
red
'
,
'
orange
'
,
'
yellow
'
,
'
blue
'
];
chartsOption
.
series
=
result
.
yData
.
map
((
item
,
index
)
=>
{
var
tempObj
=
JSON
.
parse
(
JSON
.
stringify
(
yAxisOption
));
tempObj
.
data
=
item
.
data
tempObj
.
name
=
item
.
name
tempObj
.
markLine
.
data
=
item
.
alarm
tempObj
.
markLine
.
data
=
item
.
alarm
.
map
((
item1
,
index1
)
=>
{
item1
.
lineStyle
=
{
color
:
marklineColors
[
index1
]
}
return
item1
})
delete
tempObj
[
'
markLine
'
]
return
tempObj
})
...
...
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