-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRun.vue
96 lines (93 loc) · 2.48 KB
/
Run.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<template>
<v-form
ref="form"
v-model="valid"
>
<v-row justify="center" align="center">
<v-col cols="12" sm="10" md="8" lg="6" align="center">
<v-card elevation="2">
<v-card-title>Run New Simulation</v-card-title>
<v-card-text>
<v-slider
v-model="loops"
class="my-7"
label="Loops"
color="secondary"
hint="# of quarters to run"
persistent-hint
max="100"
min="1"
append-icon="mdi-sync"
thumb-label="always"
></v-slider>
<v-slider
v-model="simTime"
class="my-7"
label="Simulation Time"
color="secondary"
hint="# of days in quarter"
persistent-hint
max="100"
min="1"
append-icon="mdi-clock"
thumb-label="always"
></v-slider>
<v-select
v-model="policy"
:items="items"
item-text="type"
item-value="id"
label="Policy"
append-icon="mdi-code-tags"
></v-select>
</v-card-text>
<v-divider></v-divider>
<v-card-actions>
<v-btn
:disabled="!valid"
color="secondary"
depressed
@click="runSimulation"
>
<v-icon left>mdi-run</v-icon>
Run Simulation
</v-btn>
<v-spacer></v-spacer>
<v-btn
color="primary"
depressed
@click="reset"
>
<v-icon>mdi-refresh</v-icon>
</v-btn>
</v-card-actions>
</v-card>
</v-col>
</v-row>
</v-form>
</template>
<script>
import { loops, simTime, policy } from "../simulation/Globals.js";
export default {
name: 'Run',
data: () => ({
valid: true,
loops: loops,
simTime: simTime,
policy: policy,
items: [
{ type: 'Basic', id: 0 },
{ type: 'Custom', id: 1 },
],
}),
methods: {
runSimulation() {
},
reset () {
this.simTime = 91;
this.loops = 50;
this.policy = 0;
},
},
}
</script>