This commit is contained in:
weiz 2024-01-20 15:09:16 +08:00
parent 23d58ab61a
commit 2baaa1848d

View File

@ -34,13 +34,13 @@ class Project extends BaseModel
public function getStatusTextAttr($value,$data)
{
$dictData = DictData::where('type_value','project_status')->column('name','value');
return empty($data['status']) ? '' : $dictData[$data['status']];
return $dictData[$data['status']];
}
public function getProjectContentTextAttr($value,$data)
{
$dictData = DictData::where('type_value','project_content')->whereIn('value',$data['project_content'])->column('name');
return $data['project_content']?implode(',',$dictData):'';
return $data['project_content'] ? implode(',',$dictData) : '';
}
public function getBiddingMethodTextAttr($value,$data)