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
wangtao
3 years ago
Commit
179974cc00c38fca820e35aa097d859fbf6b2a79
1 parent
842fb398
监控集成插件:X6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
65 additions
and
0 deletions
hg-monitor-web-base/src/main/resources/static/vue3/public/lib/x6/x6.js
hg-monitor-web-base/src/main/resources/static/vue3/src/router/index.js
hg-monitor-web-base/src/main/resources/static/vue3/src/views/x6/index.html
hg-monitor-web-base/src/main/resources/static/vue3/src/views/x6/index.js
hg-monitor-web-qh/src/main/resources/static/vue3/src/router/index.js
hg-monitor-web-base/src/main/resources/static/vue3/public/lib/x6/x6.js
0 → 100644
View file @
179974c
This diff could not be displayed because it is too large.
hg-monitor-web-base/src/main/resources/static/vue3/src/router/index.js
View file @
179974c
...
...
@@ -189,6 +189,12 @@ const routes = [{
path
:
'/vue3/operationLog/userList'
,
name
:
'operationLogUserList'
,
component
:
()
=>
myImport
(
'views/operationLog/userList'
)
},
//x6
{
path
:
'/vue3/x6/index'
,
name
:
'operationLogUserList'
,
component
:
()
=>
myImport
(
'views/x6/index'
)
}
];
...
...
hg-monitor-web-base/src/main/resources/static/vue3/src/views/x6/index.html
0 → 100644
View file @
179974c
<div>
<div
id=
"container"
style=
"width: 600px; height: 400px"
></div>
</div>
...
...
hg-monitor-web-base/src/main/resources/static/vue3/src/views/x6/index.js
0 → 100644
View file @
179974c
import
(
'../../../public/lib/x6/x6.js'
);
export
default
{
name
:
"x6Index"
,
template
:
""
,
setup
()
{
const
init
=
()
=>
{
if
(
window
.
X6
==
undefined
)
{
setTimeout
(
function
()
{
init
();
},
1000
)
return
;
}
const
{
Graph
}
=
window
.
X6
// 创建 Graph 的实例
const
graph
=
new
window
.
X6
.
Graph
({
container
:
document
.
getElementById
(
'container'
),
grid
:
true
})
// 渲染源节点
const
source
=
graph
.
addNode
({
x
:
300
,
y
:
40
,
width
:
80
,
height
:
40
,
label
:
'Hello'
,
})
// 渲染目标节点
const
target
=
graph
.
addNode
({
x
:
420
,
y
:
180
,
width
:
80
,
height
:
40
,
label
:
'World'
,
})
// 渲染边
graph
.
addEdge
({
source
,
target
,
})
}
Vue
.
onMounted
(()
=>
{
init
();
})
}
}
...
...
hg-monitor-web-qh/src/main/resources/static/vue3/src/router/index.js
View file @
179974c
...
...
@@ -290,6 +290,12 @@ const routes = [{
path
:
'/vue3/operationLog/userList'
,
name
:
'operationLogUserList'
,
component
:
()
=>
myImport
(
'views/operationLog/userList'
)
},
//x6
{
path
:
'/vue3/x6/index'
,
name
:
'operationLogUserList'
,
component
:
()
=>
myImport
(
'views/x6/index'
)
}
];
...
...
Please
register
or
login
to post a comment