历史回shu
Showing
1 changed file
with
8 additions
and
1 deletions
... | @@ -52,6 +52,7 @@ export default { | ... | @@ -52,6 +52,7 @@ export default { |
52 | }, | 52 | }, |
53 | methods: { | 53 | methods: { |
54 | initG6() { | 54 | initG6() { |
55 | const self=this; | ||
55 | const data = this.data; | 56 | const data = this.data; |
56 | const eWidth = this.$refs.containerWidth.clientWidth; | 57 | const eWidth = this.$refs.containerWidth.clientWidth; |
57 | const eHeight = this.$refs.containerWidth.clientHeight; | 58 | const eHeight = this.$refs.containerWidth.clientHeight; |
... | @@ -63,6 +64,11 @@ export default { | ... | @@ -63,6 +64,11 @@ export default { |
63 | 'sql', | 64 | 'sql', |
64 | { | 65 | { |
65 | drawShape(cfg, group) { | 66 | drawShape(cfg, group) { |
67 | var dClor='#ffffff'; | ||
68 | if(cfg.id==self.bsm){ | ||
69 | dClor='#C6E5FF'; | ||
70 | } | ||
71 | |||
66 | const rect = group.addShape('rect', { | 72 | const rect = group.addShape('rect', { |
67 | attrs: { | 73 | attrs: { |
68 | x: -100, | 74 | x: -100, |
... | @@ -71,7 +77,7 @@ export default { | ... | @@ -71,7 +77,7 @@ export default { |
71 | height: 50, | 77 | height: 50, |
72 | radius: 10, | 78 | radius: 10, |
73 | stroke: '#5B8FF9', | 79 | stroke: '#5B8FF9', |
74 | fill: '#C6E5FF', | 80 | fill: dClor, |
75 | lineWidth: 1, | 81 | lineWidth: 1, |
76 | }, | 82 | }, |
77 | name: 'rect-shape', | 83 | name: 'rect-shape', |
... | @@ -147,6 +153,7 @@ export default { | ... | @@ -147,6 +153,7 @@ export default { |
147 | defaultEdge: { | 153 | defaultEdge: { |
148 | type: 'polyline1', | 154 | type: 'polyline1', |
149 | style: { | 155 | style: { |
156 | endArrow: true, | ||
150 | radius: 10, | 157 | radius: 10, |
151 | offset: 10, | 158 | offset: 10, |
152 | // endArrow: true, | 159 | // endArrow: true, | ... | ... |
-
Please register or sign in to post a comment