Accept Merge Request #59: (feature/zy -> develop)
Merge Request: feature: 面板 Created By: @zhuyu Accepted By: @zhuyu URL: https://g-bcrc3009.coding.net/p/allocatr/d/allocatr/git/merge/59?initial=true
This commit is contained in:
commit
c3c19bda19
|
|
@ -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