下载文件增加clearParams参数,清理掉不需要添加的请求参数,如:pageNo
This commit is contained in:
@@ -41,8 +41,9 @@
|
||||
<script>
|
||||
$('#btnExport').click(function(){
|
||||
js.ajaxSubmitForm($('#searchForm'), {
|
||||
url:'\${ctx}/${urlPrefix}/exportData',
|
||||
downloadFile:true
|
||||
url: '\${ctx}/${urlPrefix}/exportData',
|
||||
clearParams: 'pageNo,pageSize',
|
||||
downloadFile: true
|
||||
});
|
||||
});
|
||||
$('#btnImport').click(function(){
|
||||
|
||||
@@ -109,8 +109,9 @@ $('#dataGrid').dataGrid({
|
||||
});
|
||||
$('#btnExport').click(function(){
|
||||
js.ajaxSubmitForm($('#searchForm'), {
|
||||
url:'${ctx}/sys/office/exportData',
|
||||
downloadFile:true
|
||||
url: '${ctx}/sys/office/exportData',
|
||||
clearParams: 'pageNo,pageSize',
|
||||
downloadFile: true
|
||||
});
|
||||
});
|
||||
$('#btnImport').click(function(){
|
||||
|
||||
@@ -315,6 +315,7 @@ $("#inputForm").validate({
|
||||
js.ajaxSubmitForm($(form), function(data){
|
||||
js.showMessage(data.message);
|
||||
if(data.result == Global.TRUE){
|
||||
// emitter.emit('emp-user-list-page');
|
||||
js.closeCurrentTabPage(function(contentWindow){
|
||||
contentWindow.page();
|
||||
});
|
||||
|
||||
@@ -177,8 +177,9 @@ $('#dataGrid').dataGrid({
|
||||
});
|
||||
$('#btnExport').click(function(){
|
||||
js.ajaxSubmitForm($('#searchForm'), {
|
||||
url:'${ctx}/sys/empUser/exportData',
|
||||
downloadFile:true
|
||||
url: '${ctx}/sys/empUser/exportData',
|
||||
clearParams: 'pageNo,pageSize',
|
||||
downloadFile: true
|
||||
});
|
||||
});
|
||||
$('#btnImport').click(function(){
|
||||
@@ -214,6 +215,7 @@ $('#btnImport').click(function(){
|
||||
}
|
||||
});
|
||||
});
|
||||
// emitter.on('emp-user-list-page', page);
|
||||
</script>
|
||||
<script id="importTpl" type="text/template">//<!--
|
||||
<form id="inputForm" action="${ctx}/sys/empUser/importData" method="post" enctype="multipart/form-data"
|
||||
|
||||
Reference in New Issue
Block a user