* Add fetch api for screen preview chart data.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user