- 注册时间
- 2013-8-23
- 最后登录
- 2013-10-28
- 阅读权限
- 10
- 积分
- 178
- 精华
- 0
- 帖子
- 56
|
<div id="outlookmenu1" class="mini-outlookmenu" idfield="myId" textfield="myText" iconfield="iconCls" parentfield="pid" resultastree="true" style="width: 200px; height: 500px; float: left;"></div>
<div id="outlookmenu2" class="mini-outlookmenu" idfield="myId" textfield="myText" iconfield="iconCls" resultastree="false" style="width: 200px; height: 500px; float: right;"></div>
<script type="text/javascript">
mini.parse();
var outlookmenu1 = mini.get('outlookmenu1');
var outlookmenu2 = mini.get('outlookmenu2');
outlookmenu1.load([
{ myId: "user", myText: "用户管理", iconCls: "icon-add" },
{ myId: "addUser", pid: "user", myText: "增加用户", iconCls: "icon-add", url: "../datagrid/celledit.html" },
{ myId: "editUser", pid: "user", myText: "修改用户", iconCls: "icon-edit", url: "../datagrid/rowedit.html" },
{ myId: "removeUser", pid: "user", myText: "删除用户", iconCls: "icon-remove", url: "../datagrid/datagrid.html" },
{ myId: "right", myText: "权限管理" },
{ myId: "addRight", pid: "right", myText: "查询权限", iconCls: "icon-search", url: "../tree/detailgrid.html" },
{ myId: "editRight", pid: "right", myText: "操作权限", iconCls: "icon-cancel", url: "../buttonedit/selectGrid.html" }
]);
outlookmenu2.load([
{
myId: "user", myText: "用户管理", iconCls: "icon-add", children: [
{ myId: "addUser", pid: "user", myText: "增加用户", iconCls: "icon-add", url: "../datagrid/celledit.html" },
{ myId: "editUser", pid: "user", myText: "修改用户", iconCls: "icon-edit", url: "../datagrid/rowedit.html" },
{ myId: "removeUser", pid: "user", myText: "删除用户", iconCls: "icon-remove", url: "../datagrid/datagrid.html" }]
},
{
myId: "right", myText: "权限管理", children: [
{ myId: "addRight", pid: "right", myText: "查询权限", iconCls: "icon-search", url: "../tree/detailgrid.html" },
{ myId: "editRight", pid: "right", myText: "操作权限", iconCls: "icon-cancel", url: "../buttonedit/selectGrid.html" }]
}
]);
</script>
outlookmenu1不能正常显示,这两种方式,resultAsTree对显示结果不起任何作用!!!! |
|