From 4fd41d31cc5bf5563df3977c66694b8e6ae5e855 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 07 Mar 2023 17:28:47 +0800
Subject: [PATCH] 修改
---
src/views/activity/components/drawBtnBox.vue | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/views/activity/components/drawBtnBox.vue b/src/views/activity/components/drawBtnBox.vue
index 210fea7..e524cc0 100644
--- a/src/views/activity/components/drawBtnBox.vue
+++ b/src/views/activity/components/drawBtnBox.vue
@@ -125,7 +125,7 @@
overlay.policeType = policeType
- that.$parent.overlayObj = overlay
+ that.$emit('setOverlayObj', overlay)
document.oncontextmenu = function () {
if (flag == true && poltType == 'billboard') {
@@ -135,7 +135,8 @@
that.$parent.choosePoliceColor = '#FF0000'
that.$parent.policeChooseVisible = true
} else if (policeType == 'policecar') {
- that.$parent.policeOption = that.$parent.policecarOption
+ that.$emit('setPoliceOption')
+
that.$parent.chooseCarColor = '#FF0000'
that.$parent.policeChooseCarVisible = true
}
@@ -199,7 +200,6 @@
}
}, { material: global.DC.Color.RED })
} else if (type == 'billboard') {
- console.log(11)
const that = this
let flag = false
@@ -338,8 +338,11 @@
},
destroyed () {
- this.removeDraw()
- this.removeDrawArrow()
+ drawLayers.remove()
+ drawLayers = null
+
+ drawArrowLayers.clear()
+ drawArrowLayers = null
},
}
</script>
--
Gitblit v1.9.3