sprint_59471

This commit is contained in:
sunjun
2022-07-06 03:23:53 +00:00
parent c7b10921f4
commit 720bc02308
2 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ class deptModel extends model
krsort($deptMenu);
$topMenu = array_pop($deptMenu);
$topMenu = explode("\n", trim((string)$topMenu));
$lastMenu[] = '/';
$lastMenu[] = '/无部门';
foreach($topMenu as $menu)
{
if(!strpos($menu, '|')) continue;
+8 -1
View File
@@ -315,7 +315,14 @@ class report extends control
$users[''] = $this->lang->report->annualData->allUser;
$depts = $this->loadModel('dept')->getOptionMenu();
$depts = array('' => $this->lang->report->annualData->allDept) + $depts;
if(!$this->app->user->admin)
{
foreach($depts as $id => $name) if($id != $this->app->user->dept) unset($depts[$id]);
}
else
{
$depts = array('' => $this->lang->report->annualData->allDept) + $depts;
}
if(empty($userID)) unset($depts[0]);
$accounts = array();