* Adjust code.

This commit is contained in:
tianshujie98
2021-04-29 08:26:38 +08:00
parent 6530f01c2f
commit b0ee3e7ada
2 changed files with 8 additions and 2 deletions
+6 -2
View File
@@ -256,7 +256,12 @@ class group extends control
$groupUsers = $this->group->getUserPairs($groupID);
$allUsers = $this->loadModel('dept')->getDeptUserPairs($deptID);
$otherUsers = array_diff_assoc($allUsers, $groupUsers);
$outsideUsers = $this->user->getPairs('outside|noclosed|noletter|noempty');
if($this->config->systemMode == 'new')
{
$outsideUsers = $this->user->getPairs('outside|noclosed|noletter|noempty');
$this->view->outsideUsers = array_diff_assoc($outsideUsers, $groupUsers);
}
$title = $this->lang->company->common . $this->lang->colon . $group->name . $this->lang->colon . $this->lang->group->manageMember;
$position[] = $group->name;
@@ -268,7 +273,6 @@ class group extends control
$this->view->deptTree = $this->loadModel('dept')->getTreeMenu($rooteDeptID = 0, array('deptModel', 'createGroupManageMemberLink'), $groupID);
$this->view->groupUsers = $groupUsers;
$this->view->otherUsers = $otherUsers;
$this->view->outsideUsers = array_diff_assoc($outsideUsers, $groupUsers);
$this->display();
}
+2
View File
@@ -58,6 +58,7 @@
<?php endforeach;?>
</td>
</tr>
<?php if($config->systemMode == 'new'):?>
<tr>
<th class='w-140px'>
<div class="checkbox-primary checkbox-inline checkbox-right check-all">
@@ -71,6 +72,7 @@
<?php endforeach;?>
</td>
</tr>
<?php endif;?>
<tr>
<td class='text-center form-actions' colspan='2'>
<?php