新增页面提交数据 list页面没有更新数据

工作共遇到一个问题,新增页面提交数据list页面没有更新数据,需要手动刷新数据才会提交展示出来。在页面试过很多刷新的方法都不是很好使,求大神解答。代码如下:

add:的页面代码

<metahttp-equiv="Content-Type"content="text/html;charset=GBK"/>

<scripttype="text/javascript"src="../js/libs/jquery/1.6/jquery.min.js"></script>

<scripttype="text/javascript"

src="../js/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>

<scripttype="text/javascript"src="../js/My97DatePicker/WdatePicker.js"></script>

<linkhref="${rootPath}/css/assets/css/bootstrap.css"rel="stylesheet"/>

<linkhref="${rootPath}/css/assets/css/bootstrap-responsive.css"

rel="stylesheet"/>

<linkhref="${rootPath}/css/styles.css"rel="stylesheet"/>

<scripttype="text/javascript">

functionaddHospitalSave(){

hospitalform.submit();

editHospitalClose();

}

functioneditHospitalClose(){

$("#editHospitalClose",window.parent.document).click();

}

</script>

<bodystyle="background:none;">

<div>

<divid="content"class="white"

style="margin-left:20px;margin-right:20px">

<divclass="bloc">

<divclass="content">

<formaction="addHospitalSave"method="get"id="hospitalform">

<tableclass="tabletable-borderedtable-font">

<tbodystyle="border:1px;">

<tr>

<td>姓名:</td>

<td><selectname="hospital_user_id"style="width:159px;">

<optionvalue="">-请选择-</option><#listlstNameasname>

<optionvalue="${name.id}">${name.cus_name}</option></#list>

</select></td>

list的页面

<!DOCTYPEhtml>

<html>

<head>

<title>门诊记录</title>

<metahttp-equiv="Content-Type"content="text/html;charset=GBK"/>

<scripttype="text/javascript"src="../js/libs/jquery/1.6/jquery.min.js"></script>

<scripttype="text/javascript"

src="../js/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>

<scripttype="text/javascript"src="../js/My97DatePicker/WdatePicker.js"></script>

<linktype="text/css"rel="stylesheet"href="../css/ht/css_body.css"></link>

<linkhref="${rootPath}/css/redmond/jquery.ui.theme.css"

rel="stylesheet"/>

<linkhref="${rootPath}/css/redmond/jquery-ui.css"rel="stylesheet"/>

<linkhref="${rootPath}/css/redmond/jquery-ui.min.css"rel="stylesheet"/>

<linkhref="../css/assets/css/bootstrap.css"rel="stylesheet"/>

<linkhref="../css/assets/css/bootstrap-responsive.css"rel="stylesheet"/>

<linkhref="../css/styles.css"rel="stylesheet"/>

<scripttype="text/javascript">

varshowList;

functionopenWin(path){

showList=this.$("<divregion='center'style='overflow:hidden'><iframewidth='100%'height='100%'frameborder='0'target='_blank'src='"+path+"'></div>");

showList.dialog({id:"showList",modal:true,title:"门诊记录",width:850,height:620});

}

functioneditHospitalClose(){

showList.dialog('close');

}

functiondelHospital(){

varchk_value=[];

$('input[name="chkHospital"]:checked').each(function(){

chk_value.push($(this).val());

});

if(chk_value.length==0){

alert('你还没有选择任何内容!');

}elseif(confirm('删除的数据无法恢复!确定要删除吗?')){

window.location.href="${rootPath}/hospital/delHospitalSave?ids="+chk_value;

}else{

returnfalse;

}

}

functionquery(){

queryForm.submit();

}

</script>

</head>

<body>

<divid="left_layout">

<divclass="page-heading">

<h2class="page-titlemuted">

相关推荐