This commit is contained in:
weiz 2024-05-30 09:13:20 +08:00
parent 71013b56a6
commit a282798408

View File

@ -142,7 +142,7 @@ class OaFlowTypeLogic extends BaseLogic
public static function all(): array public static function all(): array
{ {
$data = DictData::field('name,value')->where('type_value', 'oa_approve_cate')->select()->each(function($data){ $data = DictData::field('name,value')->where('type_value', 'oa_approve_cate')->select()->each(function($data){
$data['children'] = OaFlowType::field('id,title')->where('type',$data['value'])->select()->toArray(); $data['children'] = OaFlowType::field('id,title,icon')->where('type',$data['value'])->select()->toArray();
})->toArray(); })->toArray();
return $data; return $data;
} }