写在填报成功事件里了
CustomJSError : Cannot read property 'getWidgetByName' of undefined
var form = window.parent.form;
var yearmonth = form.getWidgetByName("yearmonth").getValue();
var weekday = form.getWidgetByName("weekday").getValue();本地跑没问题,放到服务器后抱着个错误
var myContentPane = window.contentPane || document.activeElement.contentWindow.contentPane
var yearmonth = myContentPane.parameterPanel.getWidgetByName("yearmonth").getValue()
var weekday = myContentPane.parameterPanel.getWidgetByName("weekday").getValue()
前面加个this. 看看