update
This commit is contained in:
parent
dd2e9da0f1
commit
b00e624d64
@ -34,73 +34,73 @@ class Project extends BaseModel
|
||||
public function getStatusTextAttr($value,$data)
|
||||
{
|
||||
$dictData = DictData::where('type_value','project_status')->column('name','value');
|
||||
return $dictData[$data['status']];
|
||||
return empty($data['project_status']) ? '' : $dictData[$data['status']];
|
||||
}
|
||||
|
||||
public function getProjectContentTextAttr($value,$data)
|
||||
{
|
||||
$dictData = DictData::where('type_value','project_content')->column('name','value');
|
||||
return $dictData[$data['project_content']];
|
||||
return empty($data['project_content']) ? '' : $dictData[$data['project_content']];
|
||||
}
|
||||
|
||||
public function getBiddingMethodTextAttr($value,$data)
|
||||
{
|
||||
$dictData = DictData::where('type_value','bidding_method')->column('name','value');
|
||||
return $dictData[$data['bidding_method']];
|
||||
return empty($data['bidding_method']) ? '' : $dictData[$data['bidding_method']];
|
||||
}
|
||||
|
||||
public function getRelationshipTextAttr($value,$data)
|
||||
{
|
||||
$dictData = DictData::where('type_value','relationship')->column('name','value');
|
||||
return $dictData[$data['relationship']];
|
||||
return empty($data['relationship']) ? '' : $dictData[$data['relationship']];
|
||||
}
|
||||
|
||||
public function getInformationSourcesTextAttr($value,$data)
|
||||
{
|
||||
$dictData = DictData::where('type_value','information_sources')->column('name','value');
|
||||
return $dictData[$data['information_sources']];
|
||||
return empty($data['information_sources']) ? '' : $dictData[$data['information_sources']];
|
||||
}
|
||||
|
||||
public function getConstructionFundsSourcesTextAttr($value,$data)
|
||||
{
|
||||
$dictData = DictData::where('type_value','construction_funds_sources')->column('name','value');
|
||||
return $dictData[$data['construction_funds_sources']];
|
||||
return empty($data['construction_funds_sources']) ? '' : $dictData[$data['construction_funds_sources']];
|
||||
}
|
||||
|
||||
public function getConstructionFinancialStatusTextAttr($value,$data)
|
||||
{
|
||||
$dictData = DictData::where('type_value','construction_financial_status')->column('name','value');
|
||||
return $dictData[$data['construction_financial_status']];
|
||||
return empty($data['construction_financial_status']) ? '' : $dictData[$data['construction_financial_status']];
|
||||
}
|
||||
|
||||
public function getConstructionRecognitionTextAttr($value,$data)
|
||||
{
|
||||
$dictData = DictData::where('type_value','construction_recognition')->column('name','value');
|
||||
return $dictData[$data['construction_recognition']];
|
||||
return empty($data['construction_recognition']) ? '' : $dictData[$data['construction_recognition']];
|
||||
}
|
||||
|
||||
public function getMyConstructionRecognitionTextAttr($value,$data)
|
||||
{
|
||||
$dictData = DictData::where('type_value','my_construction_recognition')->column('name','value');
|
||||
return $dictData[$data['my_construction_recognition']];
|
||||
return empty($data['my_construction_recognition']) ? '' : $dictData[$data['my_construction_recognition']];
|
||||
}
|
||||
|
||||
public function getStrategicSignificanceTextAttr($value,$data)
|
||||
{
|
||||
$dictData = DictData::where('type_value','strategic_significance')->column('name','value');
|
||||
return $dictData[$data['strategic_significance']];
|
||||
return empty($data['strategic_significance']) ? '' : $dictData[$data['strategic_significance']];
|
||||
}
|
||||
|
||||
public function getIndustryTextAttr($value,$data)
|
||||
{
|
||||
$dictData = DictData::where('type_value','industry')->column('name','value');
|
||||
return $dictData[$data['industry']];
|
||||
return empty($data['industry']) ? '' : $dictData[$data['industry']];
|
||||
}
|
||||
|
||||
public function getUnitNatureTextAttr($value,$data)
|
||||
{
|
||||
$dictData = DictData::where('type_value','unit_nature')->column('name','value');
|
||||
return $dictData[$data['unit_nature']];
|
||||
return empty($data['unit_nature']) ? '' : $dictData[$data['unit_nature']];
|
||||
}
|
||||
|
||||
public function getBiddingTimeAttr($value): string
|
||||
|
Loading…
x
Reference in New Issue
Block a user