Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
065f0cec
authored
2020-12-07 11:53:49 +0800
by
zhaoqian
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
历史回溯
1 parent
28f6f8fd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
4 deletions
src/views/zd/lshs/index.vue
src/views/zd/lshs/index.vue
View file @
065f0ce
<
template
>
<div
class=
""
>
历史回溯
<div
id=
"mountNode"
></div>
<div
class=
"lshs-content"
>
<div
class=
"slot"
>
<div><span
class=
"tip-title"
>
范围属性变更:
</span></div>
<div><span
class=
"tip-title"
>
宗地分割:
</span></div>
<div><span
class=
"tip-title"
>
宗地合并:
</span></div>
</div>
<div
id=
"mountNode"
ref=
"containerWidth"
></div>
</div>
</
template
>
...
...
@@ -38,6 +43,8 @@ export default {
methods
:
{
initG6
()
{
const
data
=
this
.
data
;
const
eWidth
=
this
.
$refs
.
containerWidth
.
clientWidth
console
.
log
(
eWidth
+
":width"
)
G6
.
registerNode
(
'sql'
,
{
...
...
@@ -131,11 +138,11 @@ export default {
});
const
container
=
document
.
getElementById
(
'mountNode'
);
console
.
log
(
container
)
const
graph
=
new
G6
.
Graph
({
container
:
'mountNode'
,
width
:
1000
,
height
:
8
00
,
height
:
10
00
,
layout
:
{
type
:
'dagre'
,
nodesepFunc
:
(
d
)
=>
{
...
...
@@ -244,4 +251,21 @@ export default {
</
script
>
<
style
scoped
lang=
"less"
>
.lshs-content
{
width
:
100%
;
}
#mountNode
{
width
:
100%
;
}
.slot
{
margin-left
:
50px
;
margin-top
:
20px
;
width
:
300px
;
}
.tip-title
{
font-weight
:
700
;
}
</
style
>
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment