diff --git a/frontend/src/components/widget/DeWidget/DeTabs.vue b/frontend/src/components/widget/DeWidget/DeTabs.vue index b4f635e8ae..42e7f607c6 100644 --- a/frontend/src/components/widget/DeWidget/DeTabs.vue +++ b/frontend/src/components/widget/DeWidget/DeTabs.vue @@ -3,8 +3,10 @@ class="de-tabs-div" :class="headClass" > -
-
+
{ + if (ele.id !== playload.id) return false + state.componentData.splice(index, 1, playload) + return true + }) + }, + setCurComponent(state, { component, index }) { // 当前视图操作状态置空 if (component) { diff --git a/frontend/src/views/panel/ViewSelect/multiplexing.vue b/frontend/src/views/panel/ViewSelect/multiplexing.vue index 33970e6670..ff8494595a 100644 --- a/frontend/src/views/panel/ViewSelect/multiplexing.vue +++ b/frontend/src/views/panel/ViewSelect/multiplexing.vue @@ -41,7 +41,7 @@ import DeMainContainer from '@/components/dataease/DeMainContainer' import DeContainer from '@/components/dataease/DeContainer' import DeAsideContainer from '@/components/dataease/DeAsideContainer' import { findOne } from '@/api/panel/panel' -import { deepCopy, getNowCanvasComponentData, panelDataPrepare } from '@/components/canvas/utils/utils' +import { deepCopy, panelDataPrepare } from '@/components/canvas/utils/utils' import Preview from '@/components/canvas/components/Editor/Preview' import MultiplexingView from '@/views/panel/ViewSelect/multiplexingView' import { DEFAULT_COMMON_CANVAS_STYLE_STRING } from '@/views/panel/panel' diff --git a/frontend/src/views/panel/edit/index.vue b/frontend/src/views/panel/edit/index.vue index ac92de88cb..9edc605344 100644 --- a/frontend/src/views/panel/edit/index.vue +++ b/frontend/src/views/panel/edit/index.vue @@ -1154,6 +1154,7 @@ export default { this.$store.commit('setComponentWithId', this.currentFilterCom) this.$store.commit('recordSnapshot', 'sureFilter') this.$store.commit('setCurComponent', { component: this.currentFilterCom, index: this.curComponentIndex }) + this.$store.commit('setComponentFromList', this.currentFilterCom) bus.$emit('reset-default-value', this.currentFilterCom.id) this.closeFilter() },