feat(division): add entry form and view components for division management

This commit is contained in:
Khafid Prayoga
2025-08-28 15:29:48 +07:00
parent 89710d9768
commit 2a74c0a2c7
2 changed files with 82 additions and 48 deletions
+32
View File
@@ -0,0 +1,32 @@
<script setup lang="ts">
import Action from '~/components/pub/custom-ui/nav-footer/ba-dr-su.vue'
const data = ref({
code: '',
name: '',
parentId: 0,
})
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 class="mb-5 border-b border-b-slate-300 pb-3 text-lg xl:text-xl">
<Icon name="i-lucide-user" class="me-2" />
<span class="font-semibold">Tambah</span> Divisi
</div>
<div>
<AppDivisonEntryForm v-model="data" />
</div>
<div class="my-2 flex justify-end py-2">
<Action @click="onClick" />
</div>
</template>