Added Notifications
This commit is contained in:
@@ -47,9 +47,9 @@ const form = useForm({
|
||||
aircraft: flight.aircraft_options[0] ?? null,
|
||||
registration: flight.registration,
|
||||
seat_number: flight.seat_number,
|
||||
seat_type: flight.seat_types[flight.seat_type],
|
||||
flight_class: flight.flight_classes[flight.flight_class],
|
||||
flight_reason: flight.flight_reasons[flight.flight_reason],
|
||||
seat_type: flight.seat_types.find(s => s.value === flight.seat_type)?.value ?? null,
|
||||
flight_class: flight.flight_classes.find(c => c.value === flight.flight_class)?.value ?? null,
|
||||
flight_reason: flight.flight_reasons.find(r => r.value === flight.flight_reason)?.value ?? null,
|
||||
note: flight.note,
|
||||
|
||||
});
|
||||
@@ -74,6 +74,7 @@ const submitForm = useForm({
|
||||
});
|
||||
|
||||
function submit() {
|
||||
|
||||
submitForm.imported_flight_id = form.imported_flight_id;
|
||||
submitForm.date = form.date;
|
||||
submitForm.flight_number = form.flight_number;
|
||||
@@ -86,14 +87,17 @@ function submit() {
|
||||
submitForm.aircraft_id = form.aircraft?.value ?? null;
|
||||
submitForm.registration = form.registration;
|
||||
submitForm.seat_number = form.seat_number;
|
||||
submitForm.seat_type_id = form.seat_type?.value ?? null;
|
||||
submitForm.flight_class_id = form.flight_class?.value ?? null;
|
||||
submitForm.flight_reason_id = form.flight_reason?.value ?? null;
|
||||
submitForm.seat_type_id = form.seat_type;
|
||||
submitForm.flight_class_id = form.flight_class;
|
||||
submitForm.flight_reason_id = form.flight_reason;
|
||||
submitForm.note = form.note;
|
||||
|
||||
submitForm.post(route('import.save'));
|
||||
}
|
||||
|
||||
import { watch } from 'vue'
|
||||
watch(() => form.flight_reason, (val) => console.log('flight_reason changed:', val))
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user