段少珍 3 years ago
parent
commit
97a1dbc8de
  1. 4
      controllers/BaseController.go
  2. 4
      views/data/footerjs.html

4
controllers/BaseController.go

@ -18,8 +18,8 @@ func (c *BaseController) Prepare() {
//附值
c.controllerName, c.actionName = c.GetControllerAndAction()
beego.Informational(c.controllerName, c.actionName)
//user := c.auth()
//c.Data["Menu"] = models.MenuTreeStruct(user)
user := c.auth()
c.Data["Menu"] = models.MenuTreeStruct(user)
}
// 设置模板

4
views/data/footerjs.html

@ -28,7 +28,7 @@ layui.use('table', function(){
case 'add':
layer.open({
type:2,
area: ['800px','500px'],
area: ['800px','600px'],
offset: 'auto',
title:'添加',
content:"/data/add/{{.Mid}}"
@ -50,7 +50,7 @@ layui.use('table', function(){
} else if(obj.event === 'edit'){
layer.open({
type:2,
area: ['800px','500px'],
area: ['800px','600px'],
offset: 'auto',
title:'编辑',
content:"/data/edit/{{.Mid}}?did="+data.did

Loading…
Cancel
Save