Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
鲁尚清
4 years ago
Commit
03f8fb8642b527a6e01f5c8fd2fe33987b12a4d6
1 parent
ddb2ea6e
lineChart封装为组件
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
10 deletions
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/zjdaping/components/declareLine/index.js
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/zjdaping/components/lineChart/index.html
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/zjdaping/components/lineChart/index.js
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/zjdaping/index.html
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/zjdaping/components/declareLine/index.js
View file @
03f8fb8
...
...
@@ -16,6 +16,9 @@ export default {
chartId
:
'line-echart-declare'
}
},
watch
:{
},
setup
(
props
,
{
attrs
,
slots
,
emit
})
{
const
{
proxy
}
=
Vue
.
getCurrentInstance
();
...
...
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/zjdaping/components/lineChart/index.html
View file @
03f8fb8
<div
class=
"lineChart"
>
<!-- <div :id="chartId" style="width:100%;height:225px;"></div>-->
<div
id=
"line-echart"
style=
"width:100%;height:225px;"
></div>
</div>
\ No newline at end of file
<div
:id=
"chartId"
style=
"width:100%;height:225px;"
></div>
...
...
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/zjdaping/components/lineChart/index.js
View file @
03f8fb8
...
...
@@ -24,11 +24,8 @@ export default {
proxy
.
yAxisData
=
props
.
yAxisData
;
proxy
.
seriesData
=
props
.
seriesData
;
proxy
.
chartId
=
props
.
chartId
;
console
.
log
(
'ddd'
,
proxy
.
chartId
)
const
chartDom
=
document
.
getElementById
(
'line-echart'
);
// const chartDom = document.getElementById(proxy.chartId);
console
.
log
(
'd3e3'
,
$
(
proxy
.
chartId
))
// const chartDom = document.getElementById('line-echart-declare');
const
chartDom
=
proxy
.
$el
const
myChart
=
echarts
.
init
(
chartDom
);
let
option
;
...
...
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/zjdaping/index.html
View file @
03f8fb8
...
...
@@ -13,7 +13,7 @@
<section
class=
"screen-left left-40"
>
<div
class=
"left-top"
>
<!--省局网络拓扑-->
<NetworkTopology
></NetworkTopology
>
<!-- <NetworkTopology ></NetworkTopology>--
>
</div>
<div
class=
"left-bottom data-cloud"
>
<div
class=
"left-bottom-left flex-data"
>
...
...
Please
register
or
login
to post a comment