diff --git a/backend/src/main/java/io/dataease/service/panel/PanelGroupService.java b/backend/src/main/java/io/dataease/service/panel/PanelGroupService.java index 225e37213d..35d2293ad3 100644 --- a/backend/src/main/java/io/dataease/service/panel/PanelGroupService.java +++ b/backend/src/main/java/io/dataease/service/panel/PanelGroupService.java @@ -314,7 +314,9 @@ public class PanelGroupService { panelGroup.setPanelStyle(sourcePanel.getPanelStyle()); panelGroup.setSourcePanelName(sourcePanel.getName()); } - panelGroup.setWatermarkInfo(panelWatermarkMapper.selectByPrimaryKey("system_default")); + if (panelGroup != null) { + panelGroup.setWatermarkInfo(panelWatermarkMapper.selectByPrimaryKey("system_default")); + } return panelGroup; } diff --git a/frontend/src/views/panel/appTemplateMarket/log/index.vue b/frontend/src/views/panel/appTemplateMarket/log/index.vue index 543045c5ea..307ca921e1 100644 --- a/frontend/src/views/panel/appTemplateMarket/log/index.vue +++ b/frontend/src/views/panel/appTemplateMarket/log/index.vue @@ -2,6 +2,7 @@ @@ -35,8 +36,8 @@ icon="iconfont icon-icon-filter" @click="filterShow" >{{ - $t('user.filter') - }} + $t('user.filter') + }} @@ -49,7 +50,7 @@ > {{ paginationConfig.total }} {{ $t('user.result_one') }} - + {{ ele }} + class="el-icon-close" + @click="clearOneFilter(index)" + />

{ - this.closeDel() - this.search() + const _this = this + deleteLogAndResource(_this.deleteItemInfo).then(() => { + if (_this.deleteItemInfo.deleteResource) { + _this.clearLocalStorage() + } + _this.closeDel() + _this.search() + }) + }, + clearLocalStorage() { + const clearParams = [ + 'panel-main-tree', + 'panel-default-tree', + 'chart-tree', + 'dataset-tree' + ] + clearParams.forEach(item => { + localStorage.removeItem(item) }) }, closeDraw() {