mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-06 01:52:48 +08:00
切换新版layui;增加表格多模板机制;增加local操作方法;增加页面记忆操作方法;删除多余代码;
This commit is contained in:
@@ -19,6 +19,8 @@ class AdminControllerBase extends BaseController
|
||||
{
|
||||
use \app\common\traits\JumpTrait;
|
||||
|
||||
protected $pageKeyName = null;
|
||||
|
||||
/**
|
||||
* 当前模型.
|
||||
* @Model
|
||||
@@ -108,6 +110,10 @@ class AdminControllerBase extends BaseController
|
||||
*/
|
||||
protected function initialize()
|
||||
{
|
||||
if(empty($this->pageKeyName)){
|
||||
$this->pageKeyName = $this->request->controller().'_'. $this->request->action();
|
||||
}
|
||||
|
||||
parent::initialize();
|
||||
$this->layout && $this->app->view->engine()->layout($this->layout);
|
||||
$this->isDemo = Env::get('adminsystem.is_demo', false);
|
||||
@@ -364,18 +370,12 @@ class AdminControllerBase extends BaseController
|
||||
'autoloadJs' => $autoloadJs,
|
||||
'isSuperAdmin' => $isSuperAdmin,
|
||||
'version' => env('app_debug') ? time() : sysconfig('site', 'site_version'),
|
||||
'pageKeyName'=>$this->pageKeyName
|
||||
];
|
||||
|
||||
View::assign($data);
|
||||
|
||||
if ($this->request->isMobile()) {
|
||||
$logo_info = [
|
||||
'title' => sysconfig('site', 'logo_title'),
|
||||
'image' => sysconfig('site', 'logo_image'),
|
||||
'href' => __url('index/index'),
|
||||
];
|
||||
$this->assign('logo_info', $logo_info);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user