作者 niuyongqing

人事系统

@@ -21,6 +21,12 @@ @@ -21,6 +21,12 @@
21 var oltTarget, logTarget, logGridTarget; 21 var oltTarget, logTarget, logGridTarget;
22 var num = 0; 22 var num = 0;
23 var iCount; 23 var iCount;
  24 + var user= localStorage.getItem("user");
  25 +
  26 + if(user != 'admin'){
  27 + $('#shouUser').attr("style","display:none;");
  28 + }
  29 +
24 $(function () { 30 $(function () {
25 oltTarget = $("#operation_log_txt"); 31 oltTarget = $("#operation_log_txt");
26 logTarget = $("#operation_log"); 32 logTarget = $("#operation_log");
@@ -66,7 +72,13 @@ @@ -66,7 +72,13 @@
66 } 72 }
67 }); 73 });
68 74
  75 +
  76 + if(user == 'admin'){
69 $('#main_iframe').attr('src','__MODEL__/role/index'); 77 $('#main_iframe').attr('src','__MODEL__/role/index');
  78 + }else{
  79 + $('#main_iframe').attr('src','__MODEL__/Fu_ji_tong/index');
  80 + }
  81 +
70 82
71 83
72 84
@@ -277,8 +289,8 @@ @@ -277,8 +289,8 @@
277 <div data-options="iconCls:'icon-reload'"> 289 <div data-options="iconCls:'icon-reload'">
278 <span>二级菜单</span> 290 <span>二级菜单</span>
279 <div style="width:180px;"> 291 <div style="width:180px;">
280 - <div onclick="$.h.menu.onMenuDepartmentManage();"><b>部门管理</b></div>  
281 <div onclick="$.h.menu.onMenuPersonnelManage();"><b>人员管理</b></div> 292 <div onclick="$.h.menu.onMenuPersonnelManage();"><b>人员管理</b></div>
  293 + <div onclick="$.h.menu.onMenuDepartmentManage();"><b>部门管理</b></div>
282 </div> 294 </div>
283 </div> 295 </div>
284 </div> 296 </div>
@@ -298,13 +310,5 @@ @@ -298,13 +310,5 @@
298 </div> 310 </div>
299 311
300 </body> 312 </body>
301 -<script>  
302 - var user= localStorage.getItem("user");  
303 -  
304 - if(user != 'admin'){  
305 - $('#shouUser').attr("style","display:none;");  
306 - }  
307 -  
308 313
309 -</script>  
310 </html> 314 </html>