fix(数据大屏): 修复部分多选无法选中问题

This commit is contained in:
wangjiahao 2024-06-04 18:14:06 +08:00
parent 51e026118a
commit 6503617c22
3 changed files with 6 additions and 2 deletions

View File

@ -1380,6 +1380,11 @@ const groupAreaClickChange = async () => {
groupAreaCom.style.top = areaData.value.style.top
groupAreaCom.style.width = areaData.value.style.width
groupAreaCom.style.height = areaData.value.style.height
dvMainStore.setClickComponentStatus(true)
dvMainStore.setCurComponent({
component: groupAreaCom,
index: dvMainStore.componentData.length - 1
})
} else if (groupAreaCom) {
groupAreaHis.forEach(ele => {
dvMainStore.deleteComponentById(ele.id)

View File

@ -37,7 +37,7 @@ const handleMouseDown = e => {
return
}
const index = areaData.value.components.findIndex(component => component === props.element)
if (index != -1) {
if (index != -1 && props.element.component !== 'GroupArea') {
areaData.value.components.splice(index, 1)
e.stopPropagation()
}

View File

@ -424,7 +424,6 @@ const handleInnerMouseDownOnShape = e => {
if (curComponent.value && curComponent.value.id !== element.value.id) {
areaDataPush(curComponent.value)
}
dvMainStore.setCurComponent({ component: null, index: null })
e.stopPropagation()
return
}