页面刷新

向右看齐 2022-10-03 00:43 281阅读 0赞

//初始化
$(document).ready(function () {
doTurn(1,1);
});
function doTurn(page,issue_tag) {
var pager = new Pager();
page = (page <= 1 ? 1 : page);
pager.PageSize = 3;
pager.curpage = page;
var param = {
curpage:page,
limit: 3
};
param.issue_tag = issue_tag;
$.post(‘/busi/indexAction.ered?reqCode=query’, param, function(data) {
var result = eval(“(“+data+”)”);
pager.TotalRows = result.TOTALCOUNT;
pager.refresh();
var resultData = result.ROOT, html = [];
for(var i=0; i<resultData.length; i++) {
html.push(‘‘);
html.push(‘‘+(i+1)+’‘);
if(!isEmpty(resultData[i].issue_projectname)){
html.push(‘‘+resultData[i].issue_projectname+’‘);
}else{
html.push(‘‘);
}
if(!isEmpty(resultData[i].issue_issuename)){
html.push(‘‘+resultData[i].issue_issuename+’‘);
}else{
html.push(‘‘);
}
if(!isEmpty(resultData[i].issue_starttime)){
html.push(‘‘+resultData[i].issue_starttime+’‘);
}else{
html.push(‘‘);
}
if(!isEmpty(resultData[i].issue_funding)){
html.push(‘‘+resultData[i].issue_funding+’‘);
}else{
html.push(‘‘);
}
html.push(‘‘);
}
$(“#showList”).html(html.join(“”));
});
}














序号项目课题时间经费/万

/**
* 列表
*/
public void query(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
CommonActionForm aForm=(CommonActionForm) form;
Dto dto=aForm.getParamAsDto(request);
Integer totalCount=(Integer)appReader.queryForObject(“Issue.queryIssueCount”,dto);
List list=new ArrayList();
if(totalCount.intValue()>0){
list=appReader.queryForPage(“Issue.queryIssue”, dto);
}
String jsonString= JsonHelper.encodeList2PageJson(list, totalCount, null);
this.write(jsonString, response);
}

转载于:https://www.cnblogs.com/wei-java/p/4540085.html

发表评论

表情:
评论列表 (有 0 条评论,281人围观)

还没有评论,来说两句吧...

相关阅读

    相关 浏览器页面刷新

    浏览器页面跳转刷新行为会触发窗口跳转,并向服务器发送请求。如form表单提交、a标签超链接跳转,window.location.href等行文都会触发窗口的刷新,而窗口刷新后根

    相关 页面局部刷新

    场景:页面A使用第三方插件C,如果页面刷新,C会重新初始化并且无法记录之前的信息。现在希望页面的主要功能区B刷新,但是C的信息不要丢失。 解决方案:B采用iframe方式...