后台UI更新

This commit is contained in:
2019-09-01 15:45:59 +08:00
parent fef0360a8f
commit dd9fbd85fd
9 changed files with 251 additions and 356 deletions

View File

@@ -26,4 +26,46 @@ class Menu extends Admin{
return $this->data;
}
}
/**
* @title 编辑菜单
*/
public function edit(){
if($this->request->isAjax()){
$menu = new MenuModel();
$res = $menu->select();
$this->data['data'] = $res;
return $this->data;
}
}
/**
* @title 添加菜单
*/
public function add(){
if($this->request->isAjax()){
$menu = new MenuModel();
$res = $menu->select();
$this->data['data'] = $res;
return $this->data;
}
}
/**
* @title 移除菜单
*/
public function remove(){
if($this->request->isAjax()){
$menu = new MenuModel();
$res = $menu->select();
$this->data['data'] = $res;
return $this->data;
}
}
}