refactor: 样式控制面板视图结果在编辑界面也可生效

This commit is contained in:
wangjiahao 2022-06-29 18:19:30 +08:00
parent d0ecfd1289
commit 013d5d5de9

View File

@ -285,7 +285,7 @@ public class ChartViewService {
try { try {
ChartViewDTO view = this.getOne(id, request.getQueryFrom()); ChartViewDTO view = this.getOne(id, request.getQueryFrom());
// 如果是从仪表板获取视图数据则仪表板的查询模式查询结果的数量覆盖视图对应的属性 // 如果是从仪表板获取视图数据则仪表板的查询模式查询结果的数量覆盖视图对应的属性
if (CommonConstants.VIEW_QUERY_FROM.PANEL.equals(request.getQueryFrom()) && CommonConstants.VIEW_RESULT_MODE.CUSTOM.equals(request.getResultMode())) { if (CommonConstants.VIEW_RESULT_MODE.CUSTOM.equals(request.getResultMode())) {
view.setResultMode(request.getResultMode()); view.setResultMode(request.getResultMode());
view.setResultCount(request.getResultCount()); view.setResultCount(request.getResultCount());
} }