update ruoyi-admin/src/main/resources/static/ruoyi/js/common.js.

如果页面的日期选择,id用用其他命名,查询页面的表单重置功能会报错。

Signed-off-by: Foe <548842+foe@user.noreply.gitee.com>
This commit is contained in:
Foe 2023-12-20 07:52:53 +00:00 committed by Gitee
parent a4c8026265
commit 1d6afb05a9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 12 additions and 6 deletions

View File

@ -415,13 +415,19 @@ function endOfTime(date) {
/** 重置日期/年月日 */
function resetDate() {
if ($.common.isNotEmpty(startLayDate) && $.common.isNotEmpty(endLayDate)) {
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';
}
}
}
// 日志打印封装处理