优化后台UI
This commit is contained in:
@@ -211,14 +211,12 @@ class Form extends Base {
|
||||
return $this->error($this->Fattr->getError());
|
||||
}
|
||||
}else{
|
||||
$info = $this->Fattr->where('id', $id)->find();
|
||||
$data = array(
|
||||
$info = FormAttr::find($id);
|
||||
$this->data = array(
|
||||
'info' => $info,
|
||||
'keyList' => $this->field
|
||||
'keyList' => $this->getField()
|
||||
);
|
||||
$this->assign($data);
|
||||
$this->setMeta('添加字段');
|
||||
return $this->fetch('public/edit');
|
||||
return $this->fetch('admin/public/edit');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ class Group extends Base {
|
||||
* @title 更新权限
|
||||
*/
|
||||
public function upnode($type) {
|
||||
$reuslt = AuthRule::uprule($type);
|
||||
$result = AuthRule::uprule($type);
|
||||
if (false !== $result) {
|
||||
return $this->success("更新成功!");
|
||||
}else{
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
// +----------------------------------------------------------------------
|
||||
namespace app\controller\user;
|
||||
|
||||
/**
|
||||
* @title 内容模块
|
||||
*/
|
||||
class Content extends Base {
|
||||
|
||||
/**
|
||||
@@ -34,7 +37,7 @@ class Content extends Base {
|
||||
* @title 修改内容
|
||||
* @return [type] [description]
|
||||
*/
|
||||
public function add() {
|
||||
public function edit() {
|
||||
if ($this->request->isPost()) {
|
||||
# code...
|
||||
}else{
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
// +----------------------------------------------------------------------
|
||||
namespace app\controller\user;
|
||||
|
||||
/**
|
||||
* @title 用户中心
|
||||
*/
|
||||
class Index extends Base {
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
// +----------------------------------------------------------------------
|
||||
namespace app\controller\user;
|
||||
|
||||
/**
|
||||
* @title 登录注册
|
||||
*/
|
||||
class Login extends Base {
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user