30 lines
593 B
Vue
30 lines
593 B
Vue
<script setup lang="ts">
|
|
import Action from '~/components/pub/custom-ui/nav-footer/ba-dr-su.vue'
|
|
|
|
const data = ref({
|
|
name: '',
|
|
specialization: '',
|
|
hospital: '',
|
|
})
|
|
|
|
function onClick(type: string) {
|
|
if (type === 'cancel') {
|
|
navigateTo('/human-src/user')
|
|
} else if (type === 'draft') {
|
|
// do something
|
|
} else if (type === 'submit') {
|
|
// do something
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<AppDoctorEntryForm v-model="data" />
|
|
</div>
|
|
<AppUserEntryForm v-model="data" />
|
|
<div class="my-2 flex justify-end py-2">
|
|
<Action @click="onClick" />
|
|
</div>
|
|
</template>
|