diff --git a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue
index a0bc770939..07ea81f995 100644
--- a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue
+++ b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue
@@ -855,14 +855,16 @@ function removeItemById(componentId) {
function removeItem(index) {
let item = componentData.value[index]
if (item && isSameCanvas(item, canvasId.value)) {
- removeItemFromPositionBox(item)
- let belowItems = findBelowItems(item)
- _.forEach(belowItems, function (upItem) {
- let canGoUpRows = canItemGoUp(upItem)
- if (canGoUpRows > 0) {
- moveItemUp(upItem, canGoUpRows)
- }
- })
+ if (isDashboard()) {
+ removeItemFromPositionBox(item)
+ let belowItems = findBelowItems(item)
+ _.forEach(belowItems, function (upItem) {
+ let canGoUpRows = canItemGoUp(upItem)
+ if (canGoUpRows > 0) {
+ moveItemUp(upItem, canGoUpRows)
+ }
+ })
+ }
let checkedFields = []
if (item.innerType === 'VQuery') {
;(item.propValue || []).forEach(ele => {
diff --git a/core/core-frontend/src/custom-component/de-tabs/Component.vue b/core/core-frontend/src/custom-component/de-tabs/Component.vue
index fab42d4736..e77a2c7360 100644
--- a/core/core-frontend/src/custom-component/de-tabs/Component.vue
+++ b/core/core-frontend/src/custom-component/de-tabs/Component.vue
@@ -301,6 +301,7 @@ const componentMoveIn = component => {
dvMainStore.setCurComponent({ component: null, index: null })
component.canvasId = element.value.id + '--' + tabItem.name
dataVTabComponentAdd(component, element.value.style)
+ tabItem.componentData.push(component)
}
}
})
diff --git a/core/core-frontend/src/custom-component/de-tabs/DataVComponent.vue b/core/core-frontend/src/custom-component/de-tabs/DataVComponent.vue
deleted file mode 100644
index f4faa5e5f3..0000000000
--- a/core/core-frontend/src/custom-component/de-tabs/DataVComponent.vue
+++ /dev/null
@@ -1,523 +0,0 @@
-
-
-
-
-
-
- {{ tabItem.title }}
-
-
-
-
-
-
-
- 编辑标题
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-