feature: 面板
This commit is contained in:
parent
5de62ecdb6
commit
6d31f1493d
|
|
@ -139,10 +139,14 @@ class Dashboard extends Backend
|
||||||
$groupId = $groupIds[0] ?? 0;
|
$groupId = $groupIds[0] ?? 0;
|
||||||
|
|
||||||
$kpiTemplate = (new Template())
|
$kpiTemplate = (new Template())
|
||||||
->where('group_id','=', 6)
|
->where('group_id','=', $groupId)
|
||||||
->with('kpiitem')
|
->with('kpiitem')
|
||||||
->find();
|
->find();
|
||||||
|
|
||||||
|
if (!$kpiTemplate) {
|
||||||
|
$this->error('kpi模板未找到');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$kpiItems = $kpiTemplate['kpiitem'];
|
$kpiItems = $kpiTemplate['kpiitem'];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user