@burh/nuxt-core 1.0.51 → 1.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,9 +9,12 @@
|
|
|
9
9
|
<div class="col-4">
|
|
10
10
|
<label for="name">Nome Completo</label>
|
|
11
11
|
</div>
|
|
12
|
-
<div class="col-
|
|
12
|
+
<div class="col-4">
|
|
13
13
|
<label for="email">E-mail</label>
|
|
14
14
|
</div>
|
|
15
|
+
<div class="col-4">
|
|
16
|
+
<label for="email">Cargo</label>
|
|
17
|
+
</div>
|
|
15
18
|
</div>
|
|
16
19
|
<validation-observer ref="sendCourse">
|
|
17
20
|
<div class="row px-4" v-for="(slot, idx) in slots" :key="idx">
|
|
@@ -32,7 +35,7 @@
|
|
|
32
35
|
|
|
33
36
|
<validation-provider
|
|
34
37
|
tag="div"
|
|
35
|
-
class="col-
|
|
38
|
+
class="col-4"
|
|
36
39
|
:vid="`send-email-${idx}`"
|
|
37
40
|
name="Email"
|
|
38
41
|
rules="required|email"
|
|
@@ -44,6 +47,30 @@
|
|
|
44
47
|
:valid="errors.length ? true : false"
|
|
45
48
|
/>
|
|
46
49
|
</validation-provider>
|
|
50
|
+
<validation-provider
|
|
51
|
+
tag="div"
|
|
52
|
+
class="col-3"
|
|
53
|
+
:vid="`send-role-${idx}`"
|
|
54
|
+
name="role"
|
|
55
|
+
rules="required"
|
|
56
|
+
v-slot="{ errors }"
|
|
57
|
+
>
|
|
58
|
+
<el-select
|
|
59
|
+
class="select-danger"
|
|
60
|
+
v-model="slot.role"
|
|
61
|
+
:error="errors[0]"
|
|
62
|
+
:placeholder="''"
|
|
63
|
+
:valid="errors.length ? true : false"
|
|
64
|
+
>
|
|
65
|
+
<el-option
|
|
66
|
+
v-for="role in corporativeRole"
|
|
67
|
+
:key="role.id"
|
|
68
|
+
:label="role.name"
|
|
69
|
+
:value="role.id"
|
|
70
|
+
>
|
|
71
|
+
</el-option>
|
|
72
|
+
</el-select>
|
|
73
|
+
</validation-provider>
|
|
47
74
|
<div class="col-1">
|
|
48
75
|
<i
|
|
49
76
|
v-if="idx !== slots.length - 1"
|
|
@@ -104,7 +131,7 @@ export default {
|
|
|
104
131
|
default: false
|
|
105
132
|
},
|
|
106
133
|
selectedCourse: Number,
|
|
107
|
-
|
|
134
|
+
corporativeRole: null,
|
|
108
135
|
courses: Array,
|
|
109
136
|
},
|
|
110
137
|
methods: {
|
|
@@ -120,6 +147,7 @@ export default {
|
|
|
120
147
|
const newSlot = {
|
|
121
148
|
name: '',
|
|
122
149
|
email: '',
|
|
150
|
+
role: ''
|
|
123
151
|
};
|
|
124
152
|
|
|
125
153
|
this.slots = [...this.slots, newSlot];
|
|
@@ -143,7 +171,8 @@ export default {
|
|
|
143
171
|
name: slot.name.substring(slot.name.indexOf(' '), 0),
|
|
144
172
|
last_name: slot.name.substring(slot.name.indexOf(' ')+1),
|
|
145
173
|
email: slot.email,
|
|
146
|
-
courses: formattedCourses
|
|
174
|
+
courses: formattedCourses,
|
|
175
|
+
role_id: slot.role
|
|
147
176
|
}));
|
|
148
177
|
|
|
149
178
|
return {
|
|
@@ -161,7 +190,8 @@ export default {
|
|
|
161
190
|
this.slots = [
|
|
162
191
|
{
|
|
163
192
|
name: '',
|
|
164
|
-
email: ''
|
|
193
|
+
email: '',
|
|
194
|
+
role: ''
|
|
165
195
|
}
|
|
166
196
|
];
|
|
167
197
|
}
|
|
@@ -176,10 +206,10 @@ export default {
|
|
|
176
206
|
slots: [
|
|
177
207
|
{
|
|
178
208
|
name: '',
|
|
179
|
-
email: ''
|
|
209
|
+
email: '',
|
|
210
|
+
role: ''
|
|
180
211
|
}
|
|
181
212
|
],
|
|
182
|
-
|
|
183
213
|
coursesToSend: []
|
|
184
214
|
};
|
|
185
215
|
},
|