以下是我修改后的代码,参考地址:https://help.fanruan.com/finereport/doc-view-2597.html 。 wuliao 这个参数过多导致导出报错400 请求头过长,有大神帮帮忙修改下JS嘛 var widgetNames = ['riqi', 'kehu','wuliao']; function getWidgetValueByName(name) { var widget = _g().parameterEl.getWidgetByName(name); if (widget == undefined) return; var obj = {}; obj[name] = widget.getValue(); return obj; } var paramJson = widgetNames.map(getWidgetValueByName).reduce(function(a, b) { return Object.assign(a, b) }); var paramJsonStr = JSON.stringify(paramJson); var col = this.options.form.getWidgetByName("col").getValue(); var colNames = encodeURIComponent(col) _g().directExportToExcel("ds2", "SKU费用明细填报导出", encodeURIComponent(paramJsonStr), colNames) tomcat:修改内容: |