Showing
1 changed file
with
3 additions
and
0 deletions
... | @@ -192,6 +192,7 @@ define(['i18n!base/nls/resource', 'cls', 'jquery', '../authz.jsonp?callback=defi | ... | @@ -192,6 +192,7 @@ define(['i18n!base/nls/resource', 'cls', 'jquery', '../authz.jsonp?callback=defi |
192 | } | 192 | } |
193 | }) | 193 | }) |
194 | }, | 194 | }, |
195 | + //通用下载方法 | ||
195 | download:function(filename,path,url){ | 196 | download:function(filename,path,url){ |
196 | if(!url){ | 197 | if(!url){ |
197 | url='./download'; | 198 | url='./download'; |
... | @@ -208,10 +209,12 @@ define(['i18n!base/nls/resource', 'cls', 'jquery', '../authz.jsonp?callback=defi | ... | @@ -208,10 +209,12 @@ define(['i18n!base/nls/resource', 'cls', 'jquery', '../authz.jsonp?callback=defi |
208 | }, 60*10000); | 209 | }, 60*10000); |
209 | } | 210 | } |
210 | }, | 211 | }, |
212 | + //excel错误文件下载 | ||
211 | downloadErrorExcel:function(fileName,path){ | 213 | downloadErrorExcel:function(fileName,path){ |
212 | var url = "./excelImport/downloadError"; | 214 | var url = "./excelImport/downloadError"; |
213 | this.download(fileName,path,url); | 215 | this.download(fileName,path,url); |
214 | }, | 216 | }, |
217 | + //excel模板文件下载 | ||
215 | downloadExcelTemplate:function(){ | 218 | downloadExcelTemplate:function(){ |
216 | var url = "./excelImport/downloadExcelTemplate"; | 219 | var url = "./excelImport/downloadExcelTemplate"; |
217 | this.download(filename,null,url); | 220 | this.download(filename,null,url); | ... | ... |
-
Please register or login to post a comment