123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <!--#include file="/inc/header.html"-->
- <script type="text/javascript">
- window.renderHeader=function(e)
- {
- var template="{{#childenList}}<li class=\"bif-nav-item\" data-type=\"{{moduleType}}\">{{moduleName}}</li>{{/childenList}}";
- var views = Mustache.render(template, e);
- $("#bif-nav-ul").html(views);
- $(".tree-breadcrumb #nav-item-a").html($("#bif-nav-ul li:first-child").html());
- $("#bif-nav-ul li:first-child").addClass("active");
- };
- $(function(){
- var modules=JSON.parse(window.sessionStorage.getItem("modules"));
- for(var i = 0;i<window.treemap[20].childenList.length;i++){
- if(window.treemap[20].childenList[i].moduleName === '用户管理'){
- var treemap = window.treemap[20].childenList[i]
- }
- }
- // var treemap = window.treemap[20].childenList[0]
- // var treemap = {
- // moduleName:'用户管理',
- // moduleType:'pages/usermanage/index.html',
- // moduleUrl:'pages/usermanage/index.html',
- // childenList:[
- // {
- // moduleName:'用户管理',
- // moduleType:'userManage',
- // moduleUrl:'userManage',
- // },{
- // moduleName:'保管人员信息',
- // moduleType:'storemanInfo',
- // moduleUrl:'storemanInfo',
- // },{
- // moduleName:'角色组管理',
- // moduleType:'roleGroupManage',
- // moduleUrl:'roleGroupManage',
- // },{
- // moduleName:'组织架构维护',
- // moduleType:'organizationMaintence',
- // moduleUrl:'organizationMaintence',
- // }
- // ]
- // }
- if(window.treemap){
- renderHeader(treemap);//用户管理ID 6
- }else if(modules){
- renderHeader(treemap);
- }
- })
- </script>
- <div class="con-wrap" style="width:1180px">
- <div class="bif-nav">
- <ul id="bif-nav-ul">
-
- </ul>
- </div>
- <div id="con-map" class="main3" style="width:1180px">
- <div class="bif-container" >
- </div>
- </div>
- </div>
- <div class="easyui-window rgm-w role-manage-addedit" id="role-manage-addedit" data-options="closed:true" style="padding: 10px;width:700px;height: 500px;">
- <form class="role-form">
- <input type="easyui-textbox" style="display: none;" name="id">  
- 角色组名:<input type="easyui-textbox easyui-validatebox name" name="name" id="role-name" data-options="validType:'length[0,20]'">  
- 备注: <input type="easyui-textbox easyui-validatebox remark" name="remark" id="role-remark" data-options="validType:'length[0,20]'">
- </form>
- <br />
- <ul id="rgm-tree" class="easyui-tree" style="margin: 10px 0;"></ul>
- <button type="button" href="#" class="easyui-linkbutton bd-add-s bd-win-y " plain="true">确定</button>
- </div>
- <!--#include file="/inc/footer.html"-->
- <style>
- .tool-wrap,.logo-wrap,.nav-wrap,.bottom-wrap{
- display: none
- }
- .hide {
- display: none;
- }
- .pic {
- width: 300px;
- }
- .bif-nav-item {
- /* width: 100px; */
- text-align: center;
- }
- .form-left {
- width: 500px;
- float: left;
- }
- .form-right {
- width: 200px;
- min-height: 150px;
- float: left;
- }
- .form-right .pic {
- border: 1px solid #ccc;
- float: left;
- width: 100%;
- min-height: 150px;
- background: #ccc;
- }
- #file {
- border-color: #ffa8a8;
- background-color: #F30000;
- color: #000;
- width: 100%;
- height: 20px;
- margin-top: 10px;
- }
- .pf-pitem-li {
- min-width: 100px;
- }
- </style>
- <script>
- $(function() {
- userManage.init();
- // base.renderwindow('#role-manage-addedit',
- // {
- // title: '更新角色组',
- // width: 700,
- // height: 500,
- // close:false
- // });
- });
- </script>
- </body>
- </html>
|