This commit is contained in:
巴掌 committed 2018-10-26 13:00:05 +08:00
1 parent 8107c0e6ba
commit 565a6eb2d1
13 files changed
+236 -102

No files matched your search

+14 -1
View File
@@ -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();
}
}