Files
simrsx-fe/app/components/flow/doctor/add.vue
T

21 lines
387 B
Vue

<script setup lang="ts">
function onEvent(type: string) {
if (type === 'cancel') {
navigateTo('/doctor')
} else if (type === 'draft') {
// do something
} else if (type === 'submit') {
// do something
}
}
const data = ref({
name: '',
specialization: '',
hospital: '',
})
</script>
<template>
<AppDoctorEntryForm v-model="data" @event="onEvent" />
</template>