arreglados url de las api en la UI
This commit is contained in:
@@ -61,12 +61,12 @@ onMounted(async () => {
|
|||||||
|
|
||||||
const navigateToCreateForm = () => {
|
const navigateToCreateForm = () => {
|
||||||
// Assuming route for creating a new asistencia is named 'AsistenciaFormNew'
|
// Assuming route for creating a new asistencia is named 'AsistenciaFormNew'
|
||||||
router.push({ name: 'AsistenciaFormNew' });
|
router.push({ name: 'asistencias-new' });
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleEditAsistencia = (asistenciaId) => {
|
const handleEditAsistencia = (asistenciaId) => {
|
||||||
// Assuming route for editing is named 'AsistenciaFormEdit'
|
// Assuming route for editing is named 'AsistenciaFormEdit'
|
||||||
router.push({ name: 'AsistenciaFormEdit', params: { id: asistenciaId } });
|
router.push({ name: 'asistencias-edit', params: { id: asistenciaId } });
|
||||||
};
|
};
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ onMounted(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const goToCreateEmployee = () => {
|
const goToCreateEmployee = () => {
|
||||||
router.push('/empleados/new') // Assuming this is the route for EmpleadoForm.vue for creation
|
router.push({ name: 'empleados-new' });
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -65,14 +65,14 @@ onMounted(async () => {
|
|||||||
const navigateToCreateForm = () => {
|
const navigateToCreateForm = () => {
|
||||||
// Assuming your route for creating a new planilla is named 'PlanillaFormNew'
|
// Assuming your route for creating a new planilla is named 'PlanillaFormNew'
|
||||||
// This name should match what's defined in your router configuration
|
// This name should match what's defined in your router configuration
|
||||||
router.push({ name: 'PlanillaFormNew' });
|
router.push({ name: 'planillas-new' });
|
||||||
};
|
};
|
||||||
|
|
||||||
// Navigate to the form for editing an existing planilla
|
// Navigate to the form for editing an existing planilla
|
||||||
const handleEditPlanilla = (planillaId) => {
|
const handleEditPlanilla = (planillaId) => {
|
||||||
// Assuming your route for editing is named 'PlanillaFormEdit'
|
// Assuming your route for editing is named 'PlanillaFormEdit'
|
||||||
// This name should match what's defined in your router configuration
|
// This name should match what's defined in your router configuration
|
||||||
router.push({ name: 'PlanillaFormEdit', params: { id: planillaId } });
|
router.push({ name: 'planillas-edit', params: { id: planillaId } });
|
||||||
};
|
};
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -61,12 +61,12 @@ onMounted(async () => {
|
|||||||
|
|
||||||
const navigateToCreateForm = () => {
|
const navigateToCreateForm = () => {
|
||||||
// Assuming route for creating a new tarea is named 'TareaFormNew'
|
// Assuming route for creating a new tarea is named 'TareaFormNew'
|
||||||
router.push({ name: 'TareaFormNew' });
|
router.push({ name: 'tareas-new' });
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleEditTarea = (tareaId) => {
|
const handleEditTarea = (tareaId) => {
|
||||||
// Assuming route for editing is named 'TareaFormEdit'
|
// Assuming route for editing is named 'TareaFormEdit'
|
||||||
router.push({ name: 'TareaFormEdit', params: { id: tareaId } });
|
router.push({ name: 'tareas-edit', params: { id: tareaId } });
|
||||||
};
|
};
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user