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

View File

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

View File

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