选择年,你的截图也没有年呀,你是想用系统时间的年?
这个简单呀。直接拼年控件的值就行了
年的编辑结束事件里面写代码:
var bl= this.options.form.getWidgetByName("year_code").getValue();//年只是一个年的4位数字
let a=bl+"-02";
let b=bl+"-12";
this.options.form.getWidgetByName("year_month_start").setValue(a);
this.options.form.getWidgetByName("year_month_end").setValue(b);