发布v2.5.7版本

This commit is contained in:
雨中磐石
2023-05-11 16:19:42 +08:00
parent 8145b2df84
commit 8c2983b577
63 changed files with 1371 additions and 162 deletions

View File

@@ -38,12 +38,32 @@ class mode_userinfoClassAction extends inputAction{
public function storeafter($table, $rows)
{
$deptdata = false;
if($this->loadci==1 && $this->post('showdept')=='1'){
$drows = m('dept')->getall('1=1','`id`,`name`,`pid`');
$deptdata = $this->depttreeshu($drows, '0', '0');
}
return array(
'statearr' => $this->flow->statearrs,
'isadd' => false
'isadd' => false,
'deptdata' => $deptdata,
);
}
//组织结构活动得到树形数据
private function depttreeshu($rows, $pid, $fids)
{
$barr = array();
foreach($rows as $k=>$rs){
if($rs['pid']==$pid){
$rs['children'] = $this->depttreeshu($rows, $rs['id'], $fids);
$rs['expanded'] = $pid==$fids;
$barr[] = $rs;
}
}
return $barr;
}
//人员状态切换保存后处理
public function userstateafter($table, $cans, $id)
{