完成日志管理和管理员分组管理

This commit is contained in:
augushong
2019-09-16 13:35:53 +08:00
parent c487090181
commit 0db279315c
8 changed files with 247 additions and 28 deletions

View File

@@ -21,4 +21,15 @@ class AdminPermission extends Model
return $status[intval($value)];
}
public function getNameAttr($value)
{
if(empty($value)){
$value = $this->getData('app').'/'.$this->getData('controller').'/'.$this->getData('action');
}
return $value;
}
}