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
cf376333
Commit
cf376333
authored
Nov 18, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情内页,图表坐标值max min设置
parent
991c7e3b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
+17
-6
shape-monitor.html
public/datav/detail/shape-monitor.html
+4
-2
temperature-monitor.html
public/datav/detail/temperature-monitor.html
+5
-4
water-monitor.html
public/datav/detail/water-monitor.html
+8
-0
No files found.
public/datav/detail/shape-monitor.html
View file @
cf376333
...
@@ -399,11 +399,13 @@
...
@@ -399,11 +399,13 @@
const
result
=
res
.
data
.
body
;
const
result
=
res
.
data
.
body
;
if
(
result
)
{
if
(
result
)
{
const
max
=
result
.
max
const
max
=
result
.
max
const
min
=
result
.
min
if
(
max
){
if
(
max
){
chartsOption
.
yAxis
[
0
].
max
=
max
chartsOption
.
yAxis
[
0
].
max
=
max
chartsOption
.
yAxis
[
0
].
min
=
-
max
chartsOption
.
yAxis
[
0
].
min
=
min
||
-
5
chartsOption
.
yAxis
[
1
].
max
=
max
chartsOption
.
yAxis
[
1
].
max
=
max
chartsOption
.
yAxis
[
1
].
min
=
-
max
chartsOption
.
yAxis
[
1
].
min
=
min
||
-
5
}
}
chartsOption
.
xAxis
.
data
=
result
.
xData
.
data
chartsOption
.
xAxis
.
data
=
result
.
xData
.
data
...
...
public/datav/detail/temperature-monitor.html
View file @
cf376333
...
@@ -266,7 +266,7 @@
...
@@ -266,7 +266,7 @@
show
:
true
show
:
true
},
},
axisTick
:
{
show
:
true
},
axisTick
:
{
show
:
true
},
min
:
-
20
,
//
min: -20,
max
:
50
,
max
:
50
,
title
:
{
title
:
{
text
:
'
Precipitation
'
,
// 这是你的 Y 轴标题
text
:
'
Precipitation
'
,
// 这是你的 Y 轴标题
...
@@ -290,7 +290,7 @@
...
@@ -290,7 +290,7 @@
show
:
true
show
:
true
},
},
axisTick
:
{
show
:
true
},
axisTick
:
{
show
:
true
},
min
:
-
20
,
//
min: -20,
max
:
50
,
max
:
50
,
}],
}],
grid
:
{
right
:
45
,
top
:
10
,
left
:
40
,
bottom
:
25
},
grid
:
{
right
:
45
,
top
:
10
,
left
:
40
,
bottom
:
25
},
...
@@ -331,11 +331,12 @@
...
@@ -331,11 +331,12 @@
if
(
result
)
{
if
(
result
)
{
const
max
=
result
.
max
// 必返
const
max
=
result
.
max
// 必返
const
min
=
result
.
min
// 必返
if
(
max
){
if
(
max
){
chartsOption
.
yAxis
[
0
].
max
=
max
chartsOption
.
yAxis
[
0
].
max
=
max
chartsOption
.
yAxis
[
0
].
min
=
-
20
chartsOption
.
yAxis
[
0
].
min
=
min
||
-
5
chartsOption
.
yAxis
[
1
].
max
=
max
chartsOption
.
yAxis
[
1
].
max
=
max
chartsOption
.
yAxis
[
1
].
min
=
-
20
chartsOption
.
yAxis
[
1
].
min
=
min
||
-
5
}
}
chartsOption
.
xAxis
.
data
=
result
.
xData
.
data
chartsOption
.
xAxis
.
data
=
result
.
xData
.
data
...
...
public/datav/detail/water-monitor.html
View file @
cf376333
...
@@ -333,6 +333,14 @@
...
@@ -333,6 +333,14 @@
}).
then
(
res
=>
{
}).
then
(
res
=>
{
const
result
=
res
.
data
.
body
;
const
result
=
res
.
data
.
body
;
if
(
result
)
{
if
(
result
)
{
const
max
=
result
.
max
// 必返
const
min
=
result
.
min
// 必返
if
(
max
){
chartsOption
.
yAxis
[
0
].
max
=
max
chartsOption
.
yAxis
[
1
].
max
=
max
}
chartsOption
.
xAxis
.
data
=
result
.
xData
.
data
chartsOption
.
xAxis
.
data
=
result
.
xData
.
data
chartsOption
.
series
=
result
.
yData
.
map
((
item
,
index
)
=>
{
chartsOption
.
series
=
result
.
yData
.
map
((
item
,
index
)
=>
{
if
(
index
===
0
){
if
(
index
===
0
){
...
...
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