Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qsh-wc
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
honghuiliu
qsh-wc
Commits
474788ed
Commit
474788ed
authored
Sep 07, 2022
by
mahui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
2b69db9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
92 additions
and
89 deletions
+92
-89
site-detail.vue
pc/src/views/site-detail.vue
+92
-89
No files found.
pc/src/views/site-detail.vue
View file @
474788ed
...
@@ -457,98 +457,100 @@
...
@@ -457,98 +457,100 @@
}
}
function
initGauge
(){
function
initGauge
(){
nextTick
(()
=>
{
nextTick
(()
=>
{
state
.
myChart
=
echarts
.
init
(
chart
.
value
);
setTimeout
(()
=>
{
let
option
=
{
state
.
myChart
=
echarts
.
init
(
chart
.
value
);
series
:
[
let
option
=
{
{
series
:
[
type
:
'gauge'
,
{
progress
:
{
type
:
'gauge'
,
show
:
true
,
progress
:
{
width
:
18
,
show
:
true
,
width
:
18
,
itemStyle
:{
color
:
'#3396fb'
,
}
},
pointer
:
{
icon
:
'path://M2.9,0.7L2.9,0.7c1.4,0,2.6,1.2,2.6,2.6v115c0,1.4-1.2,2.6-2.6,2.6l0,0c-1.4,0-2.6-1.2-2.6-2.6V3.3C0.3,1.9,1.4,0.7,2.9,0.7z'
,
width
:
4
,
length
:
'60%'
,
offsetCenter
:
[
0
,
'8%'
]
},
itemStyle
:{
itemStyle
:{
color
:
'#3396fb'
,
color
:
'#3396fb'
}
},
pointer
:
{
icon
:
'path://M2.9,0.7L2.9,0.7c1.4,0,2.6,1.2,2.6,2.6v115c0,1.4-1.2,2.6-2.6,2.6l0,0c-1.4,0-2.6-1.2-2.6-2.6V3.3C0.3,1.9,1.4,0.7,2.9,0.7z'
,
width
:
4
,
length
:
'60%'
,
offsetCenter
:
[
0
,
'8%'
]
},
itemStyle
:{
color
:
'#3396fb'
},
axisLine
:
{
lineStyle
:
{
width
:
18
}
},
axisTick
:
{
show
:
true
,
distance
:
0
,
},
splitLine
:
{
distance
:
5
,
length
:
8
,
lineStyle
:
{
width
:
1
,
color
:
'#999'
}
},
axisLabel
:
{
distance
:
22
,
color
:
'#999'
,
fontSize
:
12
},
anchor
:
{
show
:
true
,
showAbove
:
true
,
size
:
20
,
itemStyle
:
{
borderWidth
:
4
,
borderColor
:
'#3396fb'
,
color
:
'#fff'
,
}
},
title
:
{
show
:
false
},
detail
:
{
valueAnimation
:
true
,
fontSize
:
24
,
offsetCenter
:
[
0
,
'70%'
],
formatter
(
p
){
return
`{a|
${
p
}
m}\n{b|液位}`
},
},
axisLine
:
{
rich
:
{
lineStyle
:
{
a
:
{
width
:
18
color
:
'#333'
,
}
lineHeight
:
20
,
},
fontSize
:
18
axisTick
:
{
show
:
true
,
distance
:
0
,
},
splitLine
:
{
distance
:
5
,
length
:
8
,
lineStyle
:
{
width
:
1
,
color
:
'#999'
}
},
axisLabel
:
{
distance
:
22
,
color
:
'#999'
,
fontSize
:
12
},
anchor
:
{
show
:
true
,
showAbove
:
true
,
size
:
20
,
itemStyle
:
{
borderWidth
:
4
,
borderColor
:
'#3396fb'
,
color
:
'#fff'
,
}
},
title
:
{
show
:
false
},
detail
:
{
valueAnimation
:
true
,
fontSize
:
24
,
offsetCenter
:
[
0
,
'70%'
],
formatter
(
p
){
return
`{a|
${
p
}
m}\n{b|液位}`
},
},
b
:
{
color
:
'#666'
,
rich
:
{
lineHeight
:
20
,
a
:
{
fontSize
:
14
color
:
'#333'
,
lineHeight
:
20
,
fontSize
:
18
},
b
:
{
color
:
'#666'
,
lineHeight
:
20
,
fontSize
:
14
}
}
}
}
}
,
},
data
:
[
data
:
[
{
{
value
:
state
.
detail
.
yewei
value
:
state
.
detail
.
yewei
}
}
],
]
,
radius
:
"95%"
,
radius
:
"95%"
,
startAngle
:
210
,
startAngle
:
21
0
,
endAngle
:
-
3
0
,
endAngle
:
-
30
,
max
:
1
max
:
1
}
}
]
]
};
}
;
state
.
myChart
.
clear
()
;
state
.
myChart
.
clear
(
);
state
.
myChart
.
setOption
(
option
);
state
.
myChart
.
setOption
(
option
);
state
.
myChart
.
resize
(
);
state
.
myChart
.
resize
();
},
500
)
})
})
}
}
function
getList
(){
function
getList
(){
...
@@ -559,7 +561,7 @@
...
@@ -559,7 +561,7 @@
page
:
page
,
page
:
page
,
page_size
:
state
.
list
.
pageSize
,
page_size
:
state
.
list
.
pageSize
,
};
};
if
(
state
.
filter
.
time_order
[
0
]
&&
state
.
filter
.
time_order
[
1
]){
if
(
state
.
filter
.
time_order
&&
state
.
filter
.
time_order
[
0
]
&&
state
.
filter
.
time_order
[
1
]){
p
.
start_time
=
state
.
filter
.
time_order
[
0
];
p
.
start_time
=
state
.
filter
.
time_order
[
0
];
p
.
end_time
=
state
.
filter
.
time_order
[
1
];
p
.
end_time
=
state
.
filter
.
time_order
[
1
];
}
}
...
@@ -834,6 +836,7 @@
...
@@ -834,6 +836,7 @@
align-items: center;
align-items: center;
margin-right: 55px;
margin-right: 55px;
.filter-name{
.filter-name{
flex-shrink: 0;
color: #666;
color: #666;
margin-right: 20px;
margin-right: 20px;
}
}
...
...
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