|
|
|
|
@ -547,19 +547,19 @@ var Page = function Page(_ref3) {
|
|
|
|
|
// return StatInfo?.Evaluation?.times?.map((item: any) => `第${item}月`) || []
|
|
|
|
|
};
|
|
|
|
|
var disabledDate = function disabledDate(current) {
|
|
|
|
|
if (!(statParams.start_time && statParams.end_time)) {
|
|
|
|
|
if (!dateValue) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
var tooLate = statParams.start_time && current.diff(statParams.start_time, 'years') > 5;
|
|
|
|
|
var tooEarly = statParams.end_time && dayjs_min_default()(statParams.end_time).diff(current, 'years') > 5;
|
|
|
|
|
var tooLate = dateValue[0] && current.diff(dateValue[0], 'years') > 5;
|
|
|
|
|
var tooEarly = dateValue[1] && dateValue[1].diff(current, 'years') > 5;
|
|
|
|
|
return !!tooEarly || !!tooLate || current > dayjs_min_default()().endOf('day');
|
|
|
|
|
};
|
|
|
|
|
var disabledDate2 = function disabledDate2(current) {
|
|
|
|
|
if (!(statParams2.start_time && statParams2.end_time)) {
|
|
|
|
|
if (!dateValue2) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
var tooLate = statParams2.start_time && current.diff(statParams2.start_time, 'years') > 5;
|
|
|
|
|
var tooEarly = statParams2.end_time && dayjs_min_default()(statParams2.end_time).diff(current, 'years') > 5;
|
|
|
|
|
var tooLate = dateValue2[0] && current.diff(dateValue2[0], 'years') > 5;
|
|
|
|
|
var tooEarly = dateValue2[1] && dateValue2[1].diff(current, 'years') > 5;
|
|
|
|
|
return !!tooEarly || !!tooLate || current > dayjs_min_default()().endOf('day');
|
|
|
|
|
};
|
|
|
|
|
var hanleItemDiffOption = function hanleItemDiffOption() {
|
|
|
|
|
|