Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JINRUN-DP
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
xinzhedeai
JINRUN-DP
Commits
dc7aed58
Commit
dc7aed58
authored
Dec 23, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dp 降雨量 警戒线显示
parent
d5b302d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
LeftRainfallTrend.vue
src/components/MineMonitor/LeftRainfallTrend.vue
+21
-3
No files found.
src/components/MineMonitor/LeftRainfallTrend.vue
View file @
dc7aed58
...
...
@@ -134,7 +134,16 @@ const updateChartData = () => {
symbol
:
'
none
'
,
data
:
warningLines
.
value
.
map
(
line
=>
({
label
:
{
show
:
false
show
:
false
,
// 确保标签显示
position
:
'
insideStartTop
'
,
// 标签位置:内侧顶部
offset
:
[
0
,
-
5
],
// 偏移量:向上偏移5px避免重叠
formatter
:
`
${
line
.
name
}
: {c}mm`
,
// 格式化显示内容(名称+值+单位)
textStyle
:
{
color
:
`#
${
line
.
color
}
`
,
// 标签颜色与警戒线一致
fontSize
:
12
,
whiteSpace
:
'
nowrap
'
// 禁止文本换行
},
padding
:
[
2
,
5
]
// 增加内边距让文本更清晰
},
name
:
line
.
name
,
yAxis
:
line
.
value
,
...
...
@@ -203,7 +212,16 @@ const initChart = () => {
symbol
:
'
none
'
,
data
:
warningLines
.
value
.
map
(
line
=>
({
label
:
{
show
:
false
show
:
false
,
// 确保标签显示
position
:
'
insideStartTop
'
,
// 标签位置:内侧顶部
offset
:
[
0
,
-
5
],
// 偏移量:向上偏移5px避免重叠
formatter
:
`
${
line
.
name
}
: {c}mm`
,
// 格式化显示内容(名称+值+单位)
textStyle
:
{
color
:
`#
${
line
.
color
}
`
,
// 标签颜色与警戒线一致
fontSize
:
12
,
whiteSpace
:
'
nowrap
'
// 禁止文本换行
},
padding
:
[
2
,
5
]
// 增加内边距让文本更清晰
},
name
:
line
.
name
,
yAxis
:
line
.
value
,
...
...
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