@burh/nuxt-core 1.0.303 → 1.0.304
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.
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
collapse-tags
|
|
24
24
|
allow-create
|
|
25
25
|
placeholder="Escolher Cargo por"
|
|
26
|
-
class="
|
|
27
|
-
v-model="
|
|
26
|
+
class="member__select"
|
|
27
|
+
v-model="selectPosition"
|
|
28
28
|
>
|
|
29
29
|
<div class="text-center" slot="empty">
|
|
30
30
|
<p class="small mb-2 mt-2">
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<el-option
|
|
35
35
|
v-for="(posi, index) in positions"
|
|
36
36
|
class="select-danger"
|
|
37
|
-
:value="posi.
|
|
37
|
+
:value="posi.level"
|
|
38
38
|
:label="posi.level"
|
|
39
39
|
:key="index"
|
|
40
40
|
>
|
|
@@ -59,7 +59,14 @@
|
|
|
59
59
|
</div>
|
|
60
60
|
<p>{{ member.name }} {{ member.last_name }}</p>
|
|
61
61
|
</div>
|
|
62
|
-
<button
|
|
62
|
+
<button
|
|
63
|
+
type="button"
|
|
64
|
+
:disabled="selectPosition === ''"
|
|
65
|
+
:class="{'no-position': selectPosition === ''}"
|
|
66
|
+
@click="addMember(member)"
|
|
67
|
+
>
|
|
68
|
+
Adicionar membro
|
|
69
|
+
</button>
|
|
63
70
|
</section>
|
|
64
71
|
|
|
65
72
|
<!-- Skeleton for search data -->
|
|
@@ -139,6 +146,9 @@ export default {
|
|
|
139
146
|
searchMember() {
|
|
140
147
|
this.$emit('search-member', this.search);
|
|
141
148
|
},
|
|
149
|
+
addMember(member) {
|
|
150
|
+
this.$emit('add-member', member.id, this.selectPosition);
|
|
151
|
+
},
|
|
142
152
|
handleGetPrefixes(name = '') {
|
|
143
153
|
return getPrefixes(name);
|
|
144
154
|
},
|
|
@@ -146,7 +156,7 @@ export default {
|
|
|
146
156
|
data() {
|
|
147
157
|
return {
|
|
148
158
|
search: '',
|
|
149
|
-
|
|
159
|
+
selectPosition: ''
|
|
150
160
|
};
|
|
151
161
|
},
|
|
152
162
|
watch: {
|
|
@@ -172,7 +182,7 @@ export default {
|
|
|
172
182
|
overflow: hidden;
|
|
173
183
|
border-radius: 10px;
|
|
174
184
|
padding-bottom: 3.125rem;
|
|
175
|
-
max-width:
|
|
185
|
+
max-width: 60.43rem;
|
|
176
186
|
}
|
|
177
187
|
|
|
178
188
|
.member {
|
|
@@ -187,6 +197,10 @@ export default {
|
|
|
187
197
|
.input__container__icon {
|
|
188
198
|
height: 2.75rem;
|
|
189
199
|
}
|
|
200
|
+
|
|
201
|
+
.member__select {
|
|
202
|
+
margin-left: auto;
|
|
203
|
+
}
|
|
190
204
|
}
|
|
191
205
|
|
|
192
206
|
&__data {
|
|
@@ -226,7 +240,13 @@ export default {
|
|
|
226
240
|
color: #fff;
|
|
227
241
|
background-color: #5865f2;
|
|
228
242
|
border-color: #5865f2;
|
|
243
|
+
|
|
244
|
+
outline: 0;
|
|
229
245
|
}
|
|
246
|
+
|
|
247
|
+
.no-position {
|
|
248
|
+
opacity: 0.3;
|
|
249
|
+
}
|
|
230
250
|
}
|
|
231
251
|
|
|
232
252
|
&__no-image {
|