构筑物右键菜单关闭
Showing
1 changed file
with
8 additions
and
1 deletions
... | @@ -202,6 +202,13 @@ export default { | ... | @@ -202,6 +202,13 @@ export default { |
202 | document.body.removeEventListener("click", this.closeMenu); | 202 | document.body.removeEventListener("click", this.closeMenu); |
203 | } | 203 | } |
204 | }, | 204 | }, |
205 | gzwVisible(value) { | ||
206 | if (value) { | ||
207 | document.body.addEventListener("click", this.closeMenu); | ||
208 | } else { | ||
209 | document.body.removeEventListener("click", this.closeMenu); | ||
210 | } | ||
211 | }, | ||
205 | 212 | ||
206 | // createVisible(value) { | 213 | // createVisible(value) { |
207 | // if (value) { | 214 | // if (value) { |
... | @@ -379,7 +386,7 @@ export default { | ... | @@ -379,7 +386,7 @@ export default { |
379 | closeMenu(){ | 386 | closeMenu(){ |
380 | this.lpbvisible = false; | 387 | this.lpbvisible = false; |
381 | this.dzVisible = false; | 388 | this.dzVisible = false; |
382 | // this.createVisible = false; | 389 | this.gzwVisible = false; |
383 | }, | 390 | }, |
384 | //楼盘表右键菜单项打开父组件弹框 | 391 | //楼盘表右键菜单项打开父组件弹框 |
385 | openLpbDialog(type){ | 392 | openLpbDialog(type){ | ... | ... |
-
Please register or sign in to post a comment