diff --git a/src/main/java/com/smallchill/core/beetl/tag/SideBarTag.java b/src/main/java/com/smallchill/core/beetl/tag/SideBarTag.java index e1a911a5..dc12d170 100644 --- a/src/main/java/com/smallchill/core/beetl/tag/SideBarTag.java +++ b/src/main/java/com/smallchill/core/beetl/tag/SideBarTag.java @@ -43,7 +43,7 @@ public class SideBarTag extends Tag { final Object userId = param.get("userId"); final Object roleId = param.get("roleId"); - String ctxPath =Cst.me().getContextPath(); + String ctxPath = Cst.me().getContextPath(); Map userRole = Db.selectOneByCache(ConstCache.ROLE_CACHE, ConstCacheKey.ROLE_EXT + userId, "select * from TFW_ROLE_EXT where USERID=#{userId}", Paras.create().set("userId", userId)); diff --git a/src/main/webapp/WEB-INF/view/common/_template/_view/_index.bld b/src/main/webapp/WEB-INF/view/common/_template/_view/_index.bld index 9a40cfe5..2cccd25a 100644 --- a/src/main/webapp/WEB-INF/view/common/_template/_view/_index.bld +++ b/src/main/webapp/WEB-INF/view/common/_template/_view/_index.bld @@ -72,6 +72,6 @@ ${"@"}layout("/common/_container.html"){ - ${"@"}include("/common/_listscript.html"){} + ${"@"}include("/common/_listscript.html", {isExport : false}) {} ${"@"}} \ No newline at end of file diff --git a/src/main/webapp/static/blade/js/blade-girdmenu.js b/src/main/webapp/static/blade/js/blade-girdmenu.js index adc94d49..b9d9b488 100644 --- a/src/main/webapp/static/blade/js/blade-girdmenu.js +++ b/src/main/webapp/static/blade/js/blade-girdmenu.js @@ -53,7 +53,7 @@ $.extend({ var postdata = $(gridtbl) .jqGrid('getGridParam', 'postData'); var source = (typeof (export_source) == "undefined") ? (code + ".list") : export_source; - $.post(ctx + "/excel/preExport", { + $.post(BladeApp.ctxPath + "/excel/preExport", { code : code, colnames : JSON.stringify(colnames), colmodel : JSON.stringify(colmodel), @@ -61,7 +61,7 @@ $.extend({ source : source }, function(data) { if (data.code === 0) { - window.top.location.href = ctx + "/excel/export?code=" + data.data; + window.top.location.href = BladeApp.ctxPath + "/excel/export?code=" + data.data; } else { layer.alert(data.message, { icon : 2, @@ -73,8 +73,7 @@ $.extend({ } }; - $('
').hide().appendTo( - 'body'); // 在页面增加div + $('
').hide().appendTo('body'); // 在页面增加div $("#myMenu1").html(rightMenuHtml);