This commit is contained in:
weiz 2024-02-27 11:11:01 +08:00
parent e7716013c8
commit 1e86fae201

View File

@ -40,6 +40,11 @@ class SupervisionSpecialOperationPersonnel extends BaseModel
return !empty($value) ? date('Y-m-d H:i:s', $value) : '';
}
public function getValidityPeriodAttr($value): string
{
return !empty($value) ? date('Y-m-d H:i:s', $value) : '';
}
public function getStatusTextAttr($value,$data){
$arr = [0=>'有效', 1=>'无效'];
return $arr[$data['status']];