调用 jbox 的 jsp 页面:
<td>
<a href="javascript:void(0)" class="offer-process-audit" data-id="${tradeStatementReport.tradeSubmit.id}">${tradeStatementReport.tradeSubmit.innerTradeNo}</a>
</td>
js 方法:
$(document).ready(function() {
//查询对账明细
$(".offer-process-audit").bind('click',function(){
var tradeSubmitId = $(this).data('id');
top.$.jBox("iframe:"+ctx+"/trade/tradeStatementReport/details?tradeSubmitId="+tradeSubmitId,{
width: 900,
height: 300,
title: "交易明细:编号"+$(this).text(),
buttons: { '关闭':true }
});
});
});
controller 方法:
@RequiresPermissions("trade:tradeStatementReport:view")
@RequestMapping(value = "details")
public String details(String tradeSubmitId, HttpServletRequest request, HttpServletResponse response, Model model) {
TradeSubmit tradeSubmit = new TradeSubmit();
tradeSubmit.setId(tradeSubmitId);
TradeSubmitItem tradeSubmitItem = new TradeSubmitItem();
tradeSubmitItem.setTradeSubmit(tradeSubmit);
Page<TradeSubmitItem> page = tradeSubmitItemService.findPage(new Page<TradeSubmitItem>(request, response), tradeSubmitItem);
model.addAttribute("page", page);
return "modules/trade/tradeSubmitItemList";
}
备注:
controller返回的jsp界面和 jeesite传统的list界面一样
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于