This commit is contained in:
小鱼开发
2024-07-12 22:09:42 +08:00
parent 18b1ec066b
commit 85735da8a9
@@ -459,6 +459,7 @@ class GroupsStatistics extends BaseController
$name = date('Y-m-d', $start_Time);
$times[] = ['name' => $name, 'start' => $start, 'end' => $end];
$xAxisData[] = $name;
$i++;
}
foreach ($legend_data as $v) {
$legendData[] = $v['name'];
@@ -941,9 +942,11 @@ class GroupsStatistics extends BaseController
}
}
$list1 = [];
foreach ($levels as $k2 => $v2) {
$levelId = $v2['levelId'];
$list1[$v2['prop']] = $map_groups[$v[$levelId]] ? $map_groups[$v[$levelId]] : '';
if($levels){
foreach ($levels as $k2 => $v2) {
$levelId = $v2['levelId'];
$list1[$v2['prop']] = $map_groups[$v[$levelId]] ? $map_groups[$v[$levelId]] : '';
}
}
$list2 = ['bizName' => $bizName, 'consultantName' => $consultantName, 'browse' => $browse,
'subscribe' => $subscribe, 'beforeOrder' => $beforeOrderTotal, 'order' => $order, 'watch' => $watch, 'livePV' => $livePV, 'watchDuration' => $watchDuration];
@@ -958,8 +961,10 @@ class GroupsStatistics extends BaseController
$columns = '';
if ($page == 1) {
$columns1 = [];
foreach ($levels as $k => $v) {
$columns1[] = ['prop' => $v['prop'], 'label' => $v['label'], 'align' => 'center', 'showOverflowTooltip' => true, 'minWidth' => 80];
if($levels){
foreach ($levels as $k => $v) {
$columns1[] = ['prop' => $v['prop'], 'label' => $v['label'], 'align' => 'center', 'showOverflowTooltip' => true, 'minWidth' => 80];
}
}
$columns2 = [
['prop' => 'bizName', 'label' => '门店', 'align' => 'center', 'showOverflowTooltip' => true, 'minWidth' => 120],