You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
461 B

<?php
namespace app\fire\model;
use app\base\model\user\UserInfo;
use think\model\concern\SoftDelete;
class FireSupply extends Base
{
use SoftDelete;
public function userHead()
{
return $this->hasOne(UserInfo::class,'user_id','user_id')->bind(['head_img']);
}
public function getStatusTextAttr($value,$data)
{
$status = [1=>'待审核',2=>'已通过',3=>'已拒绝'];
return $status[$data['status']];
}
}