Реализовала очистку формы

This commit is contained in:
Daria Golova
2022-11-04 15:37:49 +03:00
parent 11f0b0d52e
commit 5bdb9b20d3
2 changed files with 25 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
.flex.flex-col.gap-y-2
.flex.justify-between.pt-2
span.text-xs.opacity-40.font-bold.leading-3 Ответственный
.icon-cancel.close-icon.text-xs.cursor-pointer(@click="closeForm")
.icon-cancel.close-icon.text-xs.cursor-pointer(@click="clearForm")
base-select(
id="owners"
:size-input="ownerSelectSize"
@@ -272,9 +272,13 @@ export default {
employees: [this.employees],
members: [this.members],
};
this.closeForm();
this.clearForm();
this.eventData = {};
},
clearForm() {
this.$emit("clear-selected-event-data");
this.closeForm();
},
mergeDate(eventDate, time) {
return moment(`${eventDate} ${time}`).format();
},