Browse Source

允许更新父级菜单

hsun 1 year ago
parent
commit
6352c94896
1 changed files with 2 additions and 1 deletions
  1. 2 1
      controllers/eta_business/eta_business_menu.go

+ 2 - 1
controllers/eta_business/eta_business_menu.go

@@ -475,10 +475,11 @@ func (this *EtaBusinessMenuController) Edit() {
 	item.Component = req.Component
 	item.Hidden = req.Hidden
 	item.ButtonCode = req.ButtonCode
+	item.ParentId = req.ParentId
 	item.ModifyTime = time.Now().Local()
 	// TODO:多级菜单
 	cols := make([]string, 0)
-	cols = append(cols, "Name", "Sort", "Path", "IconPath", "Component", "Hidden", "ButtonCode", "ModifyTime")
+	cols = append(cols, "Name", "Sort", "Path", "IconPath", "Component", "Hidden", "ButtonCode", "ParentId", "ModifyTime")
 	if item.ParentId > 0 {
 		item.LevelPath = item.Component
 		cols = append(cols, "LevelPath")