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