From 4821d3728a97761e7a5162757b8a88c262a4a148 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Sat, 18 Nov 2023 12:03:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=A1=E6=A0=B8=E6=9C=BA?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Index.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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'];