@burh/nuxt-core 1.0.51 → 1.0.54

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-8">
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-7"
38
+ class="col-4"
36
39
  :vid="`send-email-${idx}`"
37
40
  name="Email"
38
41
  rules="required|email"
@@ -44,6 +47,25 @@
44
47
  :valid="errors.length ? true : false"
45
48
  />
46
49
  </validation-provider>
50
+ <div
51
+ tag="div"
52
+ class="col-3"
53
+ name="role"
54
+ >
55
+ <el-select
56
+ class="select-danger"
57
+ v-model="slot.role"
58
+ :placeholder="''"
59
+ >
60
+ <el-option
61
+ v-for="role in corporativeRole"
62
+ :key="role.id"
63
+ :label="role.name"
64
+ :value="role.id"
65
+ >
66
+ </el-option>
67
+ </el-select>
68
+ </div>
47
69
  <div class="col-1">
48
70
  <i
49
71
  v-if="idx !== slots.length - 1"
@@ -104,7 +126,7 @@ export default {
104
126
  default: false
105
127
  },
106
128
  selectedCourse: Number,
107
-
129
+ corporativeRole: null,
108
130
  courses: Array,
109
131
  },
110
132
  methods: {
@@ -120,6 +142,7 @@ export default {
120
142
  const newSlot = {
121
143
  name: '',
122
144
  email: '',
145
+ role: ''
123
146
  };
124
147
 
125
148
  this.slots = [...this.slots, newSlot];
@@ -143,7 +166,8 @@ export default {
143
166
  name: slot.name.substring(slot.name.indexOf(' '), 0),
144
167
  last_name: slot.name.substring(slot.name.indexOf(' ')+1),
145
168
  email: slot.email,
146
- courses: formattedCourses
169
+ courses: formattedCourses,
170
+ role_id: slot.role
147
171
  }));
148
172
 
149
173
  return {
@@ -161,7 +185,8 @@ export default {
161
185
  this.slots = [
162
186
  {
163
187
  name: '',
164
- email: ''
188
+ email: '',
189
+ role: ''
165
190
  }
166
191
  ];
167
192
  }
@@ -176,10 +201,10 @@ export default {
176
201
  slots: [
177
202
  {
178
203
  name: '',
179
- email: ''
204
+ email: '',
205
+ role: ''
180
206
  }
181
207
  ],
182
-
183
208
  coursesToSend: []
184
209
  };
185
210
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.51",
3
+ "version": "1.0.54",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {