function fullyEncodePath(path) { // 进行双重编码:先编码整个路径,然后对编码结果再次编码 return encodeURIComponent(encodeURIComponent(path)); } var reportletPath = "deqing/执行数据报告/PC/POSM追踪明细报告.cpt"; var fullyEncodedPath = fullyEncodePath(reportletPath); var REPORT_URL = "${servletURL}?viewlet=" + fullyEncodedPath + "&op=export&format=excel&extype=simple&ref_t=design&ref_c=a96b313b-4ed3-47f5-8a4b-c3c687faa020&month=" + month; window.location =REPORT_URL; 我的js这样写,可以正常导出。如果把ref_c=a96b313b-4ed3-47f5-8a4b-c3c687faa020这两个参数去掉导出就提示无权限,想问下这两个参数是做什么用的?去掉为什么不能导出? |
立即参与
