是你的导出按钮,没把参数带进去。参考这个
https://help.fanruan.com/finereport/doc-view-3710.html
。
JS直接写也可以
var start = this.options.form.getWidgetByName("year").getValue();
var end = this.options.form.getWidgetByName("month").getValue();
var wllb = this.options.form.getWidgetByName("WLLB").getValue();
var REPORT_URL = '${servletURL}?viewlet=factory/QJWLBLFXYB.frm&op=export&format=excel' + "&wllb=" + wllb + "&year=" + start + "&month=" + end;
alert(start);
alert(end);
alert(REPORT_URL);
window.location = encodeURI(REPORT_URL);