-
Notifications
You must be signed in to change notification settings - Fork 1
/
script-vue.js
152 lines (151 loc) · 4.25 KB
/
script-vue.js
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
const { createApp,
ref } = Vue
createApp({
setup() {
const horarios = ref([
"09:30",
"10:00",
"10:30",
"13:30",
"14:00",
"14:30",
"15:00",
"15:30",
"16:00",
"16:30",
"17:00",
"17:30"
])
const consultas = ref([
{
"id": "001",
"data": "2024-04-11",
"hora": "10:00",
"medico": "Dr. João Souza",
"status": "Aguardando"
},
{
"id": "002",
"data": "2024-04-12",
"hora": "14:00",
"medico": "Dra. Maria Oliveira",
"status": "Confirmado"
},
{
"id": "003",
"data": "2024-04-13",
"hora": "09:00",
"medico": "Dr. Pedro Silva",
"status": "Cancelado"
},
{
"id": "004",
"data": "2024-04-14",
"hora": "11:00",
"medico": "Dra. Ana Costa",
"status": "Aguardando"
},
{
"id": "005",
"data": "2024-04-15",
"hora": "15:00",
"medico": "Dr. Roberto Oliveira",
"status": "Confirmado"
},
])
const pacientes = ref([
{
"id": "001",
"paciente": "Felipe Lima",
"cpf": "23497487387",
"telefone": "(99) 92762-8623",
"status": "Ativo"
},
{
"id": "021",
"paciente": "Isadora Oliveira",
"cpf": "87359846321",
"telefone": "(88) 98745-9321",
"status": "Ativo"
},
{
"id": "022",
"paciente": "Enzo Silva",
"cpf": "12345678900",
"telefone": "(11) 12345-6789",
"status": "Inativo"
},
{
"id": "023",
"paciente": "Gabriela Santos",
"cpf": "34567890123",
"telefone": "(22) 23456-7890",
"status": "Ativo"
},
{
"id": "024",
"paciente": "Pedro Souza",
"cpf": "56789012345",
"telefone": "(33) 34567-8901",
"status": "Inativo"
},
{
"id": "025",
"paciente": "Clara Gomes",
"cpf": "78901234567",
"telefone": "(44) 45678-9012",
"status": "Ativo"
},
{
"id": "026",
"paciente": "Bruno Oliveira",
"cpf": "90123456789",
"telefone": "(55) 56789-0123",
"status": "Inativo"
},
])
const medicos = ref([
{
"id": "036",
"medico": "Bruno Oliveira",
"crm": "543210987",
"telefone": "(55) 56789-0123",
"status": "Inativo"
},
{
"id": "037",
"medico": "Ana Costa",
"crm": "432109876",
"telefone": "(66) 67890-1234",
"status": "Ativo"
},
{
"id": "038",
"medico": "Pedro Souza",
"crm": "321098765",
"telefone": "(77) 78901-2345",
"status": "Inativo"
},
{
"id": "039",
"medico": "Sofia Santos",
"crm": "210987654",
"telefone": "(88) 89012-3456",
"status": "Ativo"
},
{
"id": "040",
"medico": "Rafael Silva",
"crm": "109876543",
"telefone": "(99) 90123-4567",
"status": "Inativo"
}
])
return {
consultas,
horarios,
pacientes,
medicos
}
}
}).mount('#app');