This commit is contained in:
weiz 2024-05-27 13:32:31 +08:00
parent 4e43a77092
commit f51c412d88

View File

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