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
4a311364
Commit
4a311364
authored
Sep 02, 2022
by
mahui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
c7994539
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
95 additions
and
90 deletions
+95
-90
site-detail.vue
pc/src/views/site-detail.vue
+95
-90
No files found.
pc/src/views/site-detail.vue
View file @
4a311364
...
...
@@ -443,6 +443,9 @@
function
tabActive
(
item
)
{
if
(
state
.
tab
!=
item
.
value
)
{
state
.
tab
=
item
.
value
;
if
(
item
.
value
==
'base'
){
initGauge
();
}
if
(
item
.
value
==
'history'
){
getList
();
}
...
...
@@ -452,6 +455,7 @@
}
}
function
initGauge
(){
nextTick
(()
=>
{
state
.
myChart
=
echarts
.
init
(
chart
.
value
);
let
option
=
{
series
:
[
...
...
@@ -541,7 +545,10 @@
}
]
};
state
.
myChart
.
clear
();
state
.
myChart
.
setOption
(
option
);
state
.
myChart
.
resize
();
})
}
function
getList
(){
...
...
@@ -585,11 +592,9 @@
return
{
text
:
'...'
,
color
:
'#f78131'
};
}
}
onMounted
(
async
()
=>
{
onMounted
(()
=>
{
getDetail
();
await
nextTick
(()
=>
{
initGauge
();
})
});
return
{
...
toRefs
(
state
),
...
...
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