Quellcode durchsuchen

修改: 菜单树bug

master
FLYPHT vor 2 Jahren
Ursprung
Commit
1b54eb5505
2 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  1. +0
    -1
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/sys/user/menuPlan/MenuPlanContent.java
  2. +4
    -0
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/sys/user/menuPlan/MenuPlanHandler.java

+ 0
- 1
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/sys/user/menuPlan/MenuPlanContent.java Datei anzeigen

@@ -92,7 +92,6 @@ public class MenuPlanContent {
}
}
}

// 转换成字符串
public String toContentStr() {
return JsonUtil.encodeString(list);


+ 4
- 0
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/sys/user/menuPlan/MenuPlanHandler.java Datei anzeigen

@@ -184,13 +184,17 @@ public class MenuPlanHandler {
}
MenuPlanContent menuPlanContent = new MenuPlanContent(menuPlan.getContent());
MenuPlanItem menuPlanItem = menuPlanContent.findById(id);
MenuPlanItem parent;
if (menuPlanItem == null) {
return new SwMap();
}else {
parent = menuPlanContent.findParentById(menuPlanItem.getId());
}
SwMap r = new SwMap();
r.putAll(menuPlanItem.getData());
r.put("plan_id", plan_id);
r.put("type", menuPlanItem.getMenu() > 0 ? 1 : 0);
r.put("parent_id",parent == null ? -1 : parent.getId());
return r;
}
return super.loadData(filter, pageDataSet);


Laden…
Abbrechen
Speichern