update
This commit is contained in:
parent
23d58ab61a
commit
2baaa1848d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user