From c59cd84777893fe7673c1439e4317f2251d528be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Thu, 16 Feb 2017 13:58:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Role.php | 4 +++- application/admin/controller/User.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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