Company overview
ФПК РЖД
Vaga mais recente: Sem dados
- Vagas
- 0
- Entrevistas
- 1
- Perguntas
- 18
- Tarefas
- 0
Published in the selected period
Vagas · 0
No vacancies were found for the selected period.
Published records
Entrevistas · 1
Other direction
Entrevistas · 1
Grouped by direction
Perguntas e tarefas · 18
Other direction
Perguntas · 18
<template> <h1>Seção de painéis de controlo</h1> <div class="dashboards-wrapper"> <button class="btn" v-for="(dashboard,ind) in dashboardArr" :key="ind" @click="switchDashboard(dashboard)"> {{ dashboard }} </button> </div> <div v-if="crntDashboard==='Painel de passageiros transportados'"> <passengers-dashboard :props="dataToDashboards"/> </div> <div v-else-if="crntDashboard==='Análise por comboios'"> <trains-dashboard :props="dataToDashboards"/> </div> <div v-else-if="crntDashboard==='Monitorização de gatos transportados'"> <cats-dashboard :props="dataToDashboards"/> </div> </template> <script setup> const dashboardArr = ['Painel de passageiros transportados', 'Análise por comboios', 'Monitorização de gatos transportados'] const crntDashboard = ref('') function switchDashboard(dashboardName) { crntDashboard.value = dashboardName switch (dashboardName) { case 'Painel de passageiros transportados': dataToDashboards.value = getDataToPassengers() break case 'Análise por comboios': dataToDashboards.value = getDataToTrains() break case 'Monitorização de gatos transportados': dataToDashboards.value = getDataToCats() break } } const dataToDashboards = ref() async function getDataToPassengers() { const _data = await $fetch(`/app/passengers`) return _data } async function getDataToTrains() { const _data = await $fetch(`/app/trains`) return _data } async function getDataToCats() { const _data = await $fetch(`/app/cats`) return _data } </script>