Revert "Revert "* Refactor to ajax get chart data when enter design and preview.""

This reverts commit f3356158a2.
This commit is contained in:
qixinzhi
2024-01-02 09:27:56 +08:00
parent 39d891efa5
commit 8a46e48f11
2 changed files with 100 additions and 36 deletions
+1
View File
@@ -119,6 +119,7 @@ class screen extends control
$chartID = $this->post->sourceID;
$type = $this->post->type;
$queryType = isset($_POST['queryType']) ? $this->post->queryType : 'filter';
$component = isset($_POST['component']) ? json_decode($this->post->component) : null;
$type = ($type == 'Tables' or $type == 'pivot') ? 'pivot' : 'chart';