mirror of
https://origin.cursor.com/mrdevmx/panels.git
synced 2026-10-09 21:03:17 +00:00
32 lines
705 B
Vue
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>
|