样式修改

This commit is contained in:
lSun 2025-04-21 14:43:42 +08:00
parent c6d6a1fa6a
commit d129dd3347
2 changed files with 6 additions and 6 deletions

View File

@ -188,7 +188,7 @@ function validateDates() {
if (vioDate && rectDate) {
if (new Date(rectDate) < new Date(vioDate)) {
document.getElementById('rectDate').value = ''; // 清空整改期限
layer.msg('整改期限必须大于等于检查时间', {icon: 5});
layer.msg('整改期限不能早于检查时间', {icon: 5});
return false;
}
}
@ -196,12 +196,12 @@ function validateDates() {
if (rectDate && rectTime && vioDate) {
if (new Date(rectDate) < new Date(rectTime)) {
document.getElementById('rectTime').value = ''; // 清空整改时间
layer.msg('整改时间不能于整改期限', {icon: 5});
layer.msg('整改时间不能于整改期限', {icon: 5});
return false;
}
if(new Date(rectTime) < new Date(vioDate)){
document.getElementById('rectTime').value = '';
layer.msg('整改时间必须大于等于检查时间', {icon: 5});
layer.msg('整改时间不能早于检查时间', {icon: 5});
}
}

View File

@ -188,7 +188,7 @@ function validateDates() {
if (vioDate && rectDate) {
if (new Date(rectDate) < new Date(vioDate)) {
document.getElementById('rectDate').value = ''; // 清空整改期限
layer.msg('整改期限必须大于等于检查时间', {icon: 5});
layer.msg('整改期限不能早于违章时间', {icon: 5});
return false;
}
}
@ -196,12 +196,12 @@ function validateDates() {
if (rectDate && rectTime && vioDate) {
if (new Date(rectDate) < new Date(rectTime)) {
document.getElementById('rectTime').value = ''; // 清空整改时间
layer.msg('整改时间不能于整改期限', {icon: 5});
layer.msg('整改时间不能于整改期限', {icon: 5});
return false;
}
if(new Date(rectTime) < new Date(vioDate)){
document.getElementById('rectTime').value = '';
layer.msg('整改时间必须大于等于检查时间', {icon: 5});
layer.msg('整改时间不能早于违章时间', {icon: 5});
}
}