This commit is contained in:
weiz 2024-01-31 18:03:50 +08:00
parent 54b4f4344d
commit 408da97ca7
2 changed files with 4 additions and 1 deletions
app/adminapi

@ -40,7 +40,7 @@ class FlowTypeLists extends BaseAdminDataLists implements ListsSearchInterface
public function setSearch(): array
{
return [
'=' => ['type'],
'=' => ['type','status'],
'%like%' => ['title'],
];
}

@ -112,6 +112,9 @@ class FlowValidate extends BaseValidate
if($data->isEmpty()){
return '审批类型信息不存在';
}
if($data['status'] != 2){
return '该审批类型已被禁用';
}
return true;
}