fix(仪表板): 修复历史仪表板复制出现大小变形问题 #9596

This commit is contained in:
wangjiahao 2024-05-23 16:12:19 +08:00
parent 309602ad39
commit 043bbe4c39

View File

@ -109,6 +109,7 @@ public class CoreVisualizationManage {
@XpackInteract(value = "visualizationResourceTree", before = false) @XpackInteract(value = "visualizationResourceTree", before = false)
public Long innerSave(DataVisualizationInfo visualizationInfo) { public Long innerSave(DataVisualizationInfo visualizationInfo) {
visualizationInfo.setVersion(3);
return preInnerSave(visualizationInfo); return preInnerSave(visualizationInfo);
} }
@ -123,7 +124,6 @@ public class CoreVisualizationManage {
visualizationInfo.setCreateTime(System.currentTimeMillis()); visualizationInfo.setCreateTime(System.currentTimeMillis());
visualizationInfo.setUpdateTime(System.currentTimeMillis()); visualizationInfo.setUpdateTime(System.currentTimeMillis());
visualizationInfo.setOrgId(AuthUtils.getUser().getDefaultOid()); visualizationInfo.setOrgId(AuthUtils.getUser().getDefaultOid());
visualizationInfo.setVersion(3);
mapper.insert(visualizationInfo); mapper.insert(visualizationInfo);
coreOptRecentManage.saveOpt(visualizationInfo.getId(), OptConstants.OPT_RESOURCE_TYPE.VISUALIZATION, OptConstants.OPT_TYPE.NEW); coreOptRecentManage.saveOpt(visualizationInfo.getId(), OptConstants.OPT_RESOURCE_TYPE.VISUALIZATION, OptConstants.OPT_TYPE.NEW);
return visualizationInfo.getId(); return visualizationInfo.getId();