更新审核机制
This commit is contained in:
parent
95793298c9
commit
d4da4b7161
|
@ -79,7 +79,15 @@ class Department extends BaseController
|
|||
//包括自己部门在内
|
||||
$department_array[] = $id;
|
||||
$users = Db::name('Admin')->where([['did','in',$department_array], ['status','=',1]])->select();
|
||||
|
||||
$department_list = get_data_node($department, 0);
|
||||
$department_array = array_column($department_list, 'id');
|
||||
//包括自己部门在内
|
||||
$department_array[] = $id;
|
||||
$allusers = Db::name('Admin')->where([['did','in',$department_array], ['status','=',1]])->select();
|
||||
|
||||
View::assign('users', $users);
|
||||
View::assign('allusers', $allusers);
|
||||
View::assign('detail', $detail);
|
||||
}
|
||||
View::assign('department', $department);
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
<td>
|
||||
<select name="leader_id">
|
||||
<option value="0">请选择分管领导</option>
|
||||
{volist name="users" id="v"}
|
||||
{volist name="allusers" id="v"}
|
||||
<option value="{$v.id}" {eq name="detail.leader_id" value="$v.id"} selected{/eq}>{$v.name}</option>
|
||||
{/volist}
|
||||
</select>
|
||||
|
|
Loading…
Reference in New Issue