{
 "hidden": false,
 "children": [{
  "configs": {
   "itemId": "module",
   "serverScript": "var  p=  com.wb.interact.Portal;\
p.setList();\
var  sm=p.getModuleList2(request,request.getParameter(\"path\"),com.wb.common.Session.getRoles(request) ,3,\"-1\"),map;\
var sqlArray=new Array();\
app.log(sm.size());\
for(var i=0;i<sm.size();i++){\
  \
 \
  map=sm.get(i);\
  sqlArray.push({\
    MENU_ID: map.get(\"id\"),\
    MENU_NAME:map.get(\"text\"),\
    MENU_URL:map.get(\"path\"), \
    MENU_TYPE:map.get(\"isFolder\"), \
    PARENT_MENU:map.get(\"parId\"), \
    ORDER_INDEX:i, \
    MENU_ICON:map.get(\"iconCls\")\
  });\
}\
\
app.run(\" INSERT into  WB_MENU(MENU_ID, MENU_NAME, MENU_URL, MENU_TYPE, PARENT_MENU, ORDER_INDEX, MENU_ICON) \"+\
        \"VALUES({?MENU_ID?}, {?MENU_NAME?}, {?MENU_URL?}, {?MENU_TYPE?}, {?PARENT_MENU?}, {?ORDER_INDEX?}, {?MENU_ICON?}) \",{\
 arrayData: new org.json.JSONArray(Wb.encode(sqlArray))\
});"
  },
  "expanded": false,
  "children": [],
  "type": "module"
 }],
 "roles": {},
 "title": "查询树",
 "iconCls": "",
 "inframe": false,
 "pageLink": ""
}