1
This commit is contained in:
parent
54b4f4344d
commit
408da97ca7
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user