Merge pull request #2528 from dataease/refactor_panel

Refactor panel
This commit is contained in:
王嘉豪 2022-06-29 18:20:19 +08:00 committed by GitHub
commit 2896763547
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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());
} }