This commit is contained in:
zhuangqian 2016-12-17 10:16:10 +08:00
parent 268c79f4a0
commit ae9aaf6e99
3 changed files with 5 additions and 6 deletions

View File

@ -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<String, Object> userRole = Db.selectOneByCache(ConstCache.ROLE_CACHE, ConstCacheKey.ROLE_EXT + userId, "select * from TFW_ROLE_EXT where USERID=#{userId}", Paras.create().set("userId", userId));

View File

@ -72,6 +72,6 @@ ${"@"}layout("/common/_container.html"){
</div>
<!-- 引入所需的js -->
${"@"}include("/common/_listscript.html"){}
${"@"}include("/common/_listscript.html", {isExport : false}) {}
${"@"}}

View File

@ -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({
}
};
$('<div class="contextMenu" id="myMenu1"></div>').hide().appendTo(
'body'); // 在页面增加div
$('<div class="contextMenu" id="myMenu1"></div>').hide().appendTo('body'); // 在页面增加div
$("#myMenu1").html(rightMenuHtml);