Sobes.tech

Company overview

ФПК РЖД

Dernière offre: Aucune donnée

Offres
0
Entretiens
1
Questions
18
Tâches
0

Published in the selected period

Offres · 0

All company vacancies

No vacancies were found for the selected period.

Published records

Entretiens · 1

All company interviews

Other direction

Entretiens · 1

Grouped by direction

Questions et exercices · 18

Other direction

Questions · 18

<template> <h1>Section des tableaux de bord</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==='Tableau de bord des passagers transportés'"> <passengers-dashboard :props="dataToDashboards"/> </div> <div v-else-if="crntDashboard==='Analyse par trains'"> <trains-dashboard :props="dataToDashboards"/> </div> <div v-else-if="crntDashboard==='Suivi des chats transportés'"> <cats-dashboard :props="dataToDashboards"/> </div> </template> <script setup> const dashboardArr = ['Tableau de bord des passagers transportés', 'Analyse par trains', 'Suivi des chats transportés'] const crntDashboard = ref('') function switchDashboard(dashboardName) { crntDashboard.value = dashboardName switch (dashboardName) { case 'Tableau de bord des passagers transportés': dataToDashboards.value = getDataToPassengers() break case 'Analyse par trains': dataToDashboards.value = getDataToTrains() break case 'Suivi des chats transportés': 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>

middle+
ФПК РЖД - company overview - sobes.tech