diff --git a/app/api/controller/Index.php b/app/api/controller/Index.php index a71c763..cec1ba3 100644 --- a/app/api/controller/Index.php +++ b/app/api/controller/Index.php @@ -261,6 +261,25 @@ class Index extends BaseController if(!empty($flowData)){ foreach ($flowData as $key => &$val) { $val['user_id_info'] = Db::name('Admin')->field('id,name,thumb')->where('id','in',$val['flow_uids'])->select()->toArray(); + $val['flow_type_txt'] = ''; + if($val['flow_type'] == 1){ + $val['flow_type_txt'] = '当前部门负责人'; + } + if($val['flow_type'] == 2){ + $val['flow_type_txt'] = '上级部门负责人'; + } + if($val['flow_type'] == 3){ + $val['flow_type_txt'] = '指定人员或签'; + } + if($val['flow_type'] == 4){ + $val['flow_type_txt'] = '指定人员会签'; + } + if($val['flow_type'] == 5){ + $val['flow_type_txt'] = '当前部门分管领导'; + } + if($val['flow_type'] == 6){ + $val['flow_type_txt'] = '上级部门分管领导'; + } } } $data['copy_uids'] = $flow['copy_uids'];