|
|
@@ -1,9 +1,12 @@
|
|
|
var MENU;
|
|
|
|
|
|
//计算左面的
|
|
|
-$(document).ready(function() {
|
|
|
+$(document).ready(function() {
|
|
|
+ // $('#mum_left').perfectScrollbar();
|
|
|
+ $('#mum_left').height($(document).height()-60);
|
|
|
+ $('#main_panel').height($(document).height()-100);
|
|
|
+ // $('#mum_right .panel').height($(document).height()-100);
|
|
|
initUserinfo();
|
|
|
-
|
|
|
setletftime();
|
|
|
getServerTime();
|
|
|
|
|
|
@@ -73,7 +76,7 @@ $(document).ready(function() {
|
|
|
for (var j = 0; j < menu.childs.length; j++) {
|
|
|
var datactemp = {}
|
|
|
var mtemp = menu.childs[j];
|
|
|
- datactemp["html"] = "<a id=\"" + mtemp.id + "\" href=\"#\"><i class=\"icon\">·</i>" + mtemp.menuname + "</a>";
|
|
|
+ datactemp["html"] = "<a id=\"" + mtemp.id + "\" href=\"#\"><i class=\"icon\"></i>" + mtemp.menuname + "</a>";
|
|
|
secondMenus.push(mtemp.id);
|
|
|
datac.push(datactemp);
|
|
|
|
|
|
@@ -168,7 +171,7 @@ function addobj_child(data) {
|
|
|
zdataItem["icon"] = "";
|
|
|
zdataItem["open"] = true;
|
|
|
zdataItem["name"] = m.organname;
|
|
|
- zdataItem["children"] = addobj(m);
|
|
|
+ zdataItem["children"] = addobj_child(m);
|
|
|
zdata.push(zdataItem);
|
|
|
}
|
|
|
return zdata;
|
|
|
@@ -187,12 +190,13 @@ function chageToPageUI(menu) {
|
|
|
|
|
|
|
|
|
function setletftime() {
|
|
|
- var height = window.innerHeight;
|
|
|
- $("#mum_left").css("min-height", height - 90);
|
|
|
- if ($("#main").height() > height) {
|
|
|
- $("#mum_left").css("min-height", $("#main").height() - 80);
|
|
|
- }
|
|
|
+ // var height = window.innerHeight;
|
|
|
+ // $("#mum_left").css("min-height", height - 90);
|
|
|
+ // if ($("#main").height() > height) {
|
|
|
+ // $("#mum_left").css("min-height", $("#main").height() - 80);
|
|
|
+ // }
|
|
|
|
|
|
+
|
|
|
setTimeout(setletftime, 100);
|
|
|
}
|
|
|
|