Merge branch 'dev' of github.com:dikstub-rssa/simrs-fe into feat/satusehat
This commit is contained in:
@@ -1,6 +1,20 @@
|
||||
<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 />
|
||||
<AppDoctorEntryForm v-model="data" @event="onEvent" />
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user