菜单
This commit is contained in:
1 parent
8107c0e6ba
commit
565a6eb2d1
13 files changed
+236
-102
No files matched your search
@@ -36,6 +36,19 @@ class AuthRule extends Base
|
||||
return $this->where('id',$value)->value('title');
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 获取二级菜单
|
||||
public function getMymenuAttr($value)
|
||||
{
|
||||
return $this
|
||||
->where('pid',$this->getAttr('id'))
|
||||
->where('status&ismenu',1)
|
||||
->field('title,url')
|
||||
->order(['paixu'])
|
||||
->select();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user