panels-origin/web-panel/pages/padron/[id].vue
2026-08-21 16:55:01 -05:00

32 lines
705 B
Vue

<template>
<WorkerFicha :worker-id="id" :doc="doc" @edit="onEdit" />
</template>
<script setup lang="ts">
const route = useRoute();
const id = computed(() => Number(route.params.id));
const doc = computed(() => (route.query.doc as string) || undefined);
const desk = useDesktop();
function onEdit() {
navigateTo("/padron");
}
onMounted(() => {
desk.configure({
tab: "Expediente",
treeTitle: "Padrón",
showTree: false,
showDetail: false,
ribbon: [
{
key: "vista",
label: "Vista",
items: [
{ key: "back", label: "Regresar", icon: "pi pi-arrow-left", command: () => navigateTo("/padron") },
],
},
],
});
});
</script>