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:
parent
a4c8026265
commit
1d6afb05a9
|
|
@ -415,12 +415,18 @@ function endOfTime(date) {
|
||||||
/** 重置日期/年月日 */
|
/** 重置日期/年月日 */
|
||||||
function resetDate() {
|
function resetDate() {
|
||||||
if ($.common.isNotEmpty(startLayDate) && $.common.isNotEmpty(endLayDate)) {
|
if ($.common.isNotEmpty(startLayDate) && $.common.isNotEmpty(endLayDate)) {
|
||||||
endLayDate.config.min.year = '';
|
|
||||||
endLayDate.config.min.month = '';
|
if($.common.isNotEmpty(endLayDate.config.min)) {
|
||||||
endLayDate.config.min.date = '';
|
endLayDate.config.min.year = '';
|
||||||
startLayDate.config.max.year = '2099';
|
endLayDate.config.min.month = '';
|
||||||
startLayDate.config.max.month = '12';
|
endLayDate.config.min.date = '';
|
||||||
startLayDate.config.max.date = '31';
|
}
|
||||||
|
|
||||||
|
if($.common.isNotEmpty(startLayDate.config.max)) {
|
||||||
|
startLayDate.config.max.year = '2099';
|
||||||
|
startLayDate.config.max.month = '12';
|
||||||
|
startLayDate.config.max.date = '31';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue