Pre Merge pull request !480 from Foe/N/A

This commit is contained in:
Foe 2024-05-29 04:21:04 +00:00 committed by Gitee
commit a6cce86289
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 12 additions and 6 deletions

View File

@ -407,12 +407,18 @@ function endOfTime(date) {
/** 重置日期/年月日 */
function resetDate() {
if ($.common.isNotEmpty(startLayDate) && $.common.isNotEmpty(endLayDate)) {
endLayDate.config.min.year = '';
endLayDate.config.min.month = '';
endLayDate.config.min.date = '';
startLayDate.config.max.year = '2099';
startLayDate.config.max.month = '12';
startLayDate.config.max.date = '31';
if($.common.isNotEmpty(endLayDate.config.min)) {
endLayDate.config.min.year = '';
endLayDate.config.min.month = '';
endLayDate.config.min.date = '';
}
if($.common.isNotEmpty(startLayDate.config.max)) {
startLayDate.config.max.year = '2099';
startLayDate.config.max.month = '12';
startLayDate.config.max.date = '31';
}
}
}