作者 niuyongqing

人事系统

... ... @@ -21,6 +21,12 @@
var oltTarget, logTarget, logGridTarget;
var num = 0;
var iCount;
var user= localStorage.getItem("user");
if(user != 'admin'){
$('#shouUser').attr("style","display:none;");
}
$(function () {
oltTarget = $("#operation_log_txt");
logTarget = $("#operation_log");
... ... @@ -66,7 +72,13 @@
}
});
$('#main_iframe').attr('src','__MODEL__/role/index');
if(user == 'admin'){
$('#main_iframe').attr('src','__MODEL__/role/index');
}else{
$('#main_iframe').attr('src','__MODEL__/Fu_ji_tong/index');
}
... ... @@ -277,8 +289,8 @@
<div data-options="iconCls:'icon-reload'">
<span>二级菜单</span>
<div style="width:180px;">
<div onclick="$.h.menu.onMenuDepartmentManage();"><b>部门管理</b></div>
<div onclick="$.h.menu.onMenuPersonnelManage();"><b>人员管理</b></div>
<div onclick="$.h.menu.onMenuDepartmentManage();"><b>部门管理</b></div>
</div>
</div>
</div>
... ... @@ -298,13 +310,5 @@
</div>
</body>
<script>
var user= localStorage.getItem("user");
if(user != 'admin'){
$('#shouUser').attr("style","display:none;");
}
</script>
</html>
\ No newline at end of file
... ...