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