思路:查询里面的写点击事件 将 参数控件值 传递给tab 块 下面的 报表块里面
# 获取参数控件的值
var start_date = _g().getWidgetByName("start_date").getValue();
var end_date = _g().getWidgetByName("end_date").getValue();
var workshop = _g().getWidgetByName("workshop").getValue();
var class1 = _g().getWidgetByName("class1").getValue();
var depart_name = _g().getWidgetByName("depart_name").getValue();
var type1 = _g().getWidgetByName("type1").getValue();
# 将参数控件的值传递给 tab 块下面报表块里面
setTimeout(function() {
_g().getWidgetByName("report0").gotoPage(1, {
"start_date": start_date,
"end_date": end_date,
"workshop": workshop,
"class1": class1,
"depart_name": depart_name,
"type1": type1
}, true);
_g().getWidgetByName("report1").gotoPage(1, {
"start_date": start_date,
"end_date": end_date,
"workshop": workshop,
"class1": class1,
"depart_name": depart_name,
"type1": type1
}, true);
_g().getWidgetByName("report2").gotoPage(1, {
"start_date": start_date,
"end_date": end_date,
"workshop": workshop,
"class1": class1,
"depart_name": depart_name,
"type1": type1
}, true);
_g().getWidgetByName("report3").gotoPage(1, {
"start_date": start_date,
"end_date": end_date,
"workshop": workshop,
"class1": class1,
"depart_name": depart_name,
"type1": type1
}, true);
_g().getWidgetByName("report4").gotoPage(1, {
"start_date": start_date,
"end_date": end_date,
"workshop": workshop,
"class1": class1,
"depart_name": depart_name,
"type1": type1
}, true);
_g().getWidgetByName("report5").gotoPage(1, {
"start_date": start_date,
"end_date": end_date,
"workshop": workshop,
"class1": class1,
"depart_name": depart_name,
"type1": type1
}, true);
_g().getWidgetByName("report6").gotoPage(1, {
"start_date": start_date,
"end_date": end_date,
"workshop": workshop,
"class1": class1,
"depart_name": depart_name,
"type1": type1
}, true);
},100);