feat (user): implement user entry form with status and type selection

This commit is contained in:
Abizrh
2025-08-28 02:03:32 +07:00
parent 4cb2e92235
commit a48ac7cc68
2 changed files with 22 additions and 6 deletions

No files matched your search

+4 -4
View File
@@ -3,8 +3,9 @@ import Action from '~/components/pub/custom-ui/nav-footer/ba-dr-su.vue'
const data = ref({
name: '',
specialization: '',
hospital: '',
password: '',
status: '',
type: '',
})
function onClick(type: string) {
@@ -23,9 +24,8 @@ function onClick(type: string) {
<Icon name="i-lucide-user" class="me-2" />
<span class="font-semibold">Tambah</span> Dokter
</div>
<div>
<AppDoctorEntryForm v-model="data" />
<AppDoctorEntryForm v-if="data.type === 'doctor'" v-model="data" />
</div>
<AppUserEntryForm v-model="data" />
<div class="my-2 flex justify-end py-2">