feat (soapi): implement soapi entry with form and list

This commit is contained in:
Abizrh
2025-11-02 23:20:38 +07:00
parent da80d1a206
commit 6bb881d248
8 changed files with 189 additions and 107 deletions
+3 -2
View File
@@ -11,7 +11,7 @@ import FunctionForm from './form-function.vue'
const route = useRoute()
const type = computed(() => (route.query.tab as string) || 'early-medical-assessment')
const { mode, openForm, backToList } = useQueryMode('mode')
const { mode, goToEntry, backToList } = useQueryCRUDMode('mode')
const formMap = {
'early-medical-assessment': EarlyForm,
@@ -26,7 +26,8 @@ const ActiveForm = computed(() => formMap[type.value] || EarlyForm)
<div>
<SoapiList
v-if="mode === 'list'"
@add="openForm"
@add="goToEntry"
@edit="goToEntry"
/>
<component