* Add fetch api for screen preview chart data.

This commit is contained in:
qixinzhi
2023-12-12 17:22:24 +08:00
parent 345b9292ca
commit df96e69034
4 changed files with 11 additions and 4 deletions
+7 -1
View File
@@ -84,7 +84,7 @@ class screen extends control
return;
}
$screen = $this->screen->getByID($screenID, $year, $month, $dept, $account);
$screen = $this->screen->getByID($screenID, $year, $month, $dept, $account, false);
$this->view->title = $screen->name;
$this->view->screen = $screen;
@@ -106,6 +106,12 @@ class screen extends control
}
}
public function ajaxGetScreenScheme($screenID, $year = 0, $month = 0, $dept = 0, $account = '')
{
$screen = $this->screen->getByID($screenID, $year, $month, $dept, $account);
echo(json_encode($screen));
}
/**
* Ajax get chart.
*