add simulation module

This commit is contained in:
Julien Calixte
2023-07-24 23:36:54 +02:00
parent 532ce13796
commit eaac5520e8
11 changed files with 209 additions and 156 deletions

View File

@@ -0,0 +1,43 @@
<script setup lang="ts">
import { useSimulationStore } from '@/modules/simulation/simulation-store'
const simulationStore = useSimulationStore()
</script>
<template>
<div class="simulation-dashboard">
Dashboard ({{ simulationStore.simulationsDone }} /
{{ simulationStore.requestedSimulation }}
simulations)
<table>
<thead>
<tr>
<th>#</th>
<th>push</th>
<th>pull</th>
<th>pull and DPS</th>
</tr>
</thead>
<tbody>
<tr>
<td>lead time</td>
<td>
{{ simulationStore.meanPushLeadTime }}
</td>
<td>
{{ simulationStore.meanPullLeadTime }}
</td>
<td>
{{ simulationStore.meanPullDPSLeadTime }}
</td>
</tr>
</tbody>
</table>
</div>
</template>
<style scoped lang="scss">
.simulation-dashboard {
color: var(--background-color);
}
</style>