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
da0931d1
authored
2021-01-13 16:16:17 +0800
by
焦泽平
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
历史回shu
1 parent
a4706e73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
src/components/lshs/index.vue
src/components/lshs/index.vue
View file @
da0931d
...
...
@@ -52,6 +52,7 @@ export default {
},
methods
:
{
initG6
()
{
const
self
=
this
;
const
data
=
this
.
data
;
const
eWidth
=
this
.
$refs
.
containerWidth
.
clientWidth
;
const
eHeight
=
this
.
$refs
.
containerWidth
.
clientHeight
;
...
...
@@ -63,6 +64,11 @@ export default {
'sql'
,
{
drawShape
(
cfg
,
group
)
{
var
dClor
=
'#ffffff'
;
if
(
cfg
.
id
==
self
.
bsm
){
dClor
=
'#C6E5FF'
;
}
const
rect
=
group
.
addShape
(
'rect'
,
{
attrs
:
{
x
:
-
100
,
...
...
@@ -71,7 +77,7 @@ export default {
height
:
50
,
radius
:
10
,
stroke
:
'#5B8FF9'
,
fill
:
'#C6E5FF'
,
fill
:
dClor
,
lineWidth
:
1
,
},
name
:
'rect-shape'
,
...
...
@@ -147,6 +153,7 @@ export default {
defaultEdge
:
{
type
:
'polyline1'
,
style
:
{
endArrow
:
true
,
radius
:
10
,
offset
:
10
,
// endArrow: true,
...
...
Please
register
or
sign in
to post a comment