mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
更新后台模板
This commit is contained in:
parent
fce4707d09
commit
ae49b216c7
@ -12,8 +12,11 @@ use controller\BasicAdmin;
|
||||
*/
|
||||
class Auth extends BasicAdmin {
|
||||
|
||||
public function index() {
|
||||
protected $table = 'SystemAuth';
|
||||
|
||||
public function index() {
|
||||
$this->title = '系统权限管理';
|
||||
parent::_list($this->table);
|
||||
}
|
||||
|
||||
}
|
@ -49,6 +49,6 @@ class Login extends BasicAdmin {
|
||||
*/
|
||||
public function out() {
|
||||
session('user', null);
|
||||
$this->success('退出登录成功!', '@admin/login');
|
||||
$this->success('退出登录成功!', '@admin / login');
|
||||
}
|
||||
}
|
@ -17,12 +17,6 @@ use think\Db;
|
||||
*/
|
||||
class Menu extends BasicAdmin {
|
||||
|
||||
/**
|
||||
* 模块标题
|
||||
* @var string
|
||||
*/
|
||||
public $title = '系统菜单';
|
||||
|
||||
/**
|
||||
* 绑定操作模型
|
||||
* @var string
|
||||
@ -44,6 +38,7 @@ class Menu extends BasicAdmin {
|
||||
* 菜单列表
|
||||
*/
|
||||
public function index() {
|
||||
$this->title = '系统菜单管理';
|
||||
parent::_list($this->table, false);
|
||||
}
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
<meta name="renderer" content="webkit"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<link rel="shortcut icon" href="{:sysconf('app_logo')}" />
|
||||
<title>{block name="title"}{$title|default=''}{/block}</title>
|
||||
<title>{block name="title"}{$title|default=''} {if !empty($title)}-{/if} {:sysconf('app_name')}{/block}</title>
|
||||
<link rel="stylesheet" href="__STATIC__/plugs/bootstrap/css/bootstrap.min.css"/>
|
||||
<link rel="stylesheet" href="__STATIC__/theme/default/css/console.css">
|
||||
<link rel="stylesheet" href="__STATIC__/theme/default/css/animate.css">
|
||||
|
@ -15,6 +15,12 @@ use think\db\Query;
|
||||
*/
|
||||
class BasicAdmin extends Controller {
|
||||
|
||||
/**
|
||||
* 页面标题
|
||||
* @var string
|
||||
*/
|
||||
protected $title;
|
||||
|
||||
/**
|
||||
* 默认操作数据表
|
||||
* @var string
|
||||
@ -106,6 +112,7 @@ class BasicAdmin extends Controller {
|
||||
if ($this->_callback('_data_filter', $result['list']) === false) {
|
||||
return $result;
|
||||
}
|
||||
!empty($this->title) && $this->assign('title', $this->title);
|
||||
$is_display && exit($this->fetch('', $result));
|
||||
return $result;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user