Browse Source

欢迎页面权限设置

MSI\liwei 7 years ago
parent
commit
e715f90f20
2 changed files with 23 additions and 12 deletions
  1. 3 1
      VisualInspection/js/new.js
  2. 20 11
      VisualInspection/view/new.html

+ 3 - 1
VisualInspection/js/new.js

@@ -340,6 +340,8 @@ function menusuccess(data){
         //var content ={};
         //console.log(menu);
         var id = "app"+menu[0].type;
+        var typeid = "type"+menu[0].type;
+        document.getElementById(typeid).style.display = "block";
         var j = menu[0].type/10-1;
         obj = document.getElementById(id);
         zMenu[j] = new Array(menu.length);
@@ -356,7 +358,6 @@ function menusuccess(data){
             //var setcontent = data[i].childs;
             //setcontent =  JSON.stringify(setcontent);
             //console.log(setcontent);
-            var id = "app"+menu[i].type;
             //console.log(menu[i].iconClass);
             // var html = ' <div class="col-md-1" style="text-align: center"><buuton type="button" class="btn btn-primary" data-toggle="modal" data-target="#myLgModal" style="background-color: #86C7D8;border-radius: 10px;height:80px;width:80px" href="#" ><img class="imgsize" src="/images/'+menu[i].iconClass+'.png"/></button><br/><font style="">'+menu[i].menuname+'</font></div>';
             var html =' <div onclick="setdiv('+j+','+i+')" class="col-md-1" style="text-align: center"><button  style="background-color:#366ba5;border-radius: 10px;height: 80px;width: 80px" type="button"><img style="" src="/images/'+menu[i].iconClass+'.png"/></button><br/><font>'+menu[i].menuname+'</font></div>';
@@ -365,6 +366,7 @@ function menusuccess(data){
             }
             if(menu[i].iconClass == "desktop"){
                 html = '';
+                document.getElementById("typebase").style.display = "block";
             }
             divhtml = divhtml +html;
         }

+ 20 - 11
VisualInspection/view/new.html

@@ -67,7 +67,8 @@
                 <div id="mum_right" class="mum_right">
                  <div class="panel" id="main_panel">
                         <div class="panel-body"  id="main_panel_body" style="">
-                            <div style="font-weight: bold;font-size: 18px">收费站</div>
+                            <div id="type10" style="display: none">
+                            <div style="font-weight: bold;font-size: 18px;" id="title10">收费站</div>
                             <br/>
                             <div>
                                 <div style="width:100%">
@@ -76,33 +77,40 @@
                                 </div>
                             </div>
                             <br/>
-                            <hr/> 
-                            <div style="font-weight: bold;font-size: 18px">服务区</div>
+                            </div>
+                            <div id="type20" style="display: none">
+                            <div style="font-weight: bold;font-size: 18px" id="title20">服务区</div>
                             <br/> 
                                 <div >
                                         <div class="row" id="app20">
                                         </div>         
                                 </div>
-                            <br/> 
-                            <div style="font-weight: bold;font-size: 18px">清障队</div>
+                            <br/>
+                            </div> 
+                            <div id="type30" style="display: none">
+                            <div style="font-weight: bold;font-size: 18px;" id="title30">清障队</div>
                             <br/> 
                                 <div >
                                         <div class="row" id="app30">
                                         </div>         
                                 </div>
                             <br/>
-                            <div style="font-weight: bold;font-size: 18px">车队</div>
+                            </div>
+                            <div id="type40" style="display: none">
+                             <div style="font-weight: bold;font-size: 18px;display: none" id="title40">车队</div>
                             <br/> 
                                 <div >
-                                        <div class="row" id="app40">
+                                        <div class="row" id="app40" style="">
                                             <div onclick="" class="col-md-1" style="text-align: center"><button  style="background-color:#2c2d3096;border-radius: 10px;height: 80px;width: 80px" type="button"><img style="" src="/images/no.png"/></button><br/><font>暂无</font></div>
                                         </div>         
                                 </div>
-                            <br/>  
-                            <div style="font-weight: bold;font-size: 18px">基础信息管理</div>
+                            <br/>
+                            </div>
+                            <div id="typebase" style="display: none">  
+                            <div style="font-weight: bold;font-size: 18px;" id="titlebase">基础信息管理</div>
                             <br/> 
                                 <div >
-                                        <div class="row" id="appbase">
+                                        <div class="row" id="appbase" style="">
                                                 <div onclick="opennew('/view/user/userManager.html','14')" class="col-md-1" style="text-align: center"><button  style="background-color:#366ba5;border-radius: 10px;height: 80px;width: 80px" type="button"><img style="" src="/images/user.png"/></button><br/><font>用户管理</font></div>
                                                 <div onclick="opennew('/view/role/role.html','15')" class="col-md-1" style="text-align: center"><button  style="background-color:#366ba5;border-radius: 10px;height: 80px;width: 80px" type="button"><img style="" src="/images/roler.png"/></button><br/><font>角色管理</font></div>
                                                 <div onclick="opennew('/view/role/permision.html','16')" class="col-md-1" style="text-align: center"><button  style="background-color:#366ba5;border-radius: 10px;height: 80px;width: 80px" type="button"><img style="" src="/images/permission.png"/></button><br/><font>权限管理</font></div>
@@ -111,7 +119,8 @@
 
                                         </div>         
                                 </div>
-                            <!--<link rel="import" href="/view/mytask/unchecked.html?__inline">-->
+                            </div> 
+                                 <!--<link rel="import" href="/view/mytask/unchecked.html?__inline">-->
                         </div>
                     </div>