bug fix
This commit is contained in:
parent
268c79f4a0
commit
ae9aaf6e99
|
|
@ -43,7 +43,7 @@ public class SideBarTag extends Tag {
|
||||||
|
|
||||||
final Object userId = param.get("userId");
|
final Object userId = param.get("userId");
|
||||||
final Object roleId = param.get("roleId");
|
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));
|
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));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,6 @@ ${"@"}layout("/common/_container.html"){
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 引入所需的js -->
|
<!-- 引入所需的js -->
|
||||||
${"@"}include("/common/_listscript.html"){}
|
${"@"}include("/common/_listscript.html", {isExport : false}) {}
|
||||||
|
|
||||||
${"@"}}
|
${"@"}}
|
||||||
|
|
@ -53,7 +53,7 @@ $.extend({
|
||||||
var postdata = $(gridtbl)
|
var postdata = $(gridtbl)
|
||||||
.jqGrid('getGridParam', 'postData');
|
.jqGrid('getGridParam', 'postData');
|
||||||
var source = (typeof (export_source) == "undefined") ? (code + ".list") : export_source;
|
var source = (typeof (export_source) == "undefined") ? (code + ".list") : export_source;
|
||||||
$.post(ctx + "/excel/preExport", {
|
$.post(BladeApp.ctxPath + "/excel/preExport", {
|
||||||
code : code,
|
code : code,
|
||||||
colnames : JSON.stringify(colnames),
|
colnames : JSON.stringify(colnames),
|
||||||
colmodel : JSON.stringify(colmodel),
|
colmodel : JSON.stringify(colmodel),
|
||||||
|
|
@ -61,7 +61,7 @@ $.extend({
|
||||||
source : source
|
source : source
|
||||||
}, function(data) {
|
}, function(data) {
|
||||||
if (data.code === 0) {
|
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 {
|
} else {
|
||||||
layer.alert(data.message, {
|
layer.alert(data.message, {
|
||||||
icon : 2,
|
icon : 2,
|
||||||
|
|
@ -73,8 +73,7 @@ $.extend({
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$('<div class="contextMenu" id="myMenu1"></div>').hide().appendTo(
|
$('<div class="contextMenu" id="myMenu1"></div>').hide().appendTo('body'); // 在页面增加div
|
||||||
'body'); // 在页面增加div
|
|
||||||
|
|
||||||
$("#myMenu1").html(rightMenuHtml);
|
$("#myMenu1").html(rightMenuHtml);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user