选择其他年份时展示1-12月
这个需要再数据集里面判断
${if(YK==当年,"and 月份字段 = '"+MK+"' and 年份字段='"+YK+"'"," and 年份字段='"+YK+"'")}
YK控件,假设获取是2025格式,月份控件MK是实际值是1,2,3,4这个格式,编辑后事件,js如下
var a=this.getValue();
if(a==b){_g().getWidgetByName("MK").setValue(c); }
参数联动:https://help.fanruan.com/finereport/doc-view-3634.html
https://help.fanruan.com/finereport/doc-view-1284.html