diff --git a/application/admin/controller/Role.php b/application/admin/controller/Role.php index 6f5f875b6..50b87cd5f 100644 --- a/application/admin/controller/Role.php +++ b/application/admin/controller/Role.php @@ -12,8 +12,10 @@ use controller\BasicAdmin; */ class Role extends BasicAdmin { - public function index() { + protected $table = 'SystemRole'; + public function index() { + parent::_list($this->table); } } \ No newline at end of file diff --git a/application/admin/controller/User.php b/application/admin/controller/User.php index d505333bd..ed04ff309 100644 --- a/application/admin/controller/User.php +++ b/application/admin/controller/User.php @@ -12,8 +12,10 @@ use controller\BasicAdmin; */ class User extends BasicAdmin { - public function index() { + protected $table = 'SystemUser'; + public function index() { + parent::_list($this->table); } } \ No newline at end of file