This commit is contained in:
parent
99bba05167
commit
8867829211
3 changed files with 36 additions and 54 deletions
|
|
@ -556,8 +556,12 @@ function changeFormData() {
|
|||
function changeFormDataDate() {
|
||||
isSave.value = true;
|
||||
isSaveInfo.value = true;
|
||||
const startDate = new Date(formData.disciplinaryDateStart as Date);
|
||||
const endDate = new Date(formData.disciplinaryDateEnd as Date);
|
||||
const startDate = moment(
|
||||
new Date(formData.disciplinaryDateStart as Date)
|
||||
).startOf("day");
|
||||
const endDate = moment(
|
||||
new Date(formData.disciplinaryDateEnd as Date)
|
||||
).startOf("day");
|
||||
|
||||
if (startDate > endDate) {
|
||||
formData.disciplinaryDateEnd = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue