From c98eb23e4d33f9bcb905f78bda255722858e9afa Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Wed, 18 Dec 2024 16:26:35 +0800 Subject: [PATCH] * [task#134889,doing,0.5h]. --- module/report/control.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module/report/control.php b/module/report/control.php index 7b209b77eb..82c95d366e 100644 --- a/module/report/control.php +++ b/module/report/control.php @@ -116,6 +116,11 @@ class report extends control /* Assign annual data. */ $this->reportZen->assignAnnualReport($year, $dept, $account); + $mode = 'company'; + if((int)$dept && empty($account)) $mode = 'dept'; + if($account) $mode = 'user'; + + $this->view->mode = $mode; $this->view->account = $account; $this->display(); }