Merge pull request #10086 from dataease/pr@dev-v2@fix_batch3

fix(数据大屏): 修复部分多选无法选中问题
This commit is contained in:
王嘉豪 2024-06-04 18:32:21 +08:00 committed by GitHub
commit 3885e9b9b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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
}