更换后台UI,使用adminlteUI

This commit is contained in:
2020-04-07 12:47:03 +08:00
parent 209af6285a
commit c12a265034
462 changed files with 111399 additions and 948 deletions

View File

@@ -49,7 +49,8 @@ class Content extends Base {
'list' => $list,
'page' => $list->render(),
'model_name' => $this->modelInfo['name'],
'model_id' => $this->modelInfo['id']
'model_id' => $this->modelInfo['id'],
'meta_title' => $this->modelInfo['title'].'列表'
);
if ($this->modelInfo['template_list']) {
$template = 'admin/content/' . $this->modelInfo['template_list'];
@@ -74,11 +75,12 @@ class Content extends Base {
} else {
$info = [
'model_name' => $this->modelInfo['name'],
'model_id' => $this->modelInfo['id'],
'model_id' => $this->modelInfo['id']
];
$this->data = [
'info' => $info,
'fieldGroup' => Attribute::getField($this->modelInfo),
'meta_title' => $this->modelInfo['title'].'添加'
];
if ($this->modelInfo['template_add']) {
@@ -114,6 +116,7 @@ class Content extends Base {
$this->data = array(
'info' => $info,
'fieldGroup' => Attribute::getField($this->modelInfo, 'edit'),
'meta_title' => $this->modelInfo['title'].'修改'
);
if ($this->modelInfo['template_edit']) {
$template = 'admin/content/' . $this->modelInfo['template_edit'];