@burh/nuxt-core 1.0.358 → 1.0.360
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.
- package/.vscode/settings.json +10 -0
- package/assets/images/icons/icon5.svg +3 -0
- package/assets/images/icons/icon6.svg +3 -0
- package/components/burh-ds/Avatar/AvatarLink.vue +13 -2
- package/components/burh-ds/Curriculum/UserCurriculum/UserCvRightSide.vue +198 -8
- package/components/layouts/burh-ds/navbar/AppNavbar.vue +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="15" height="18" viewBox="0 0 15 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M13.0909 1.63636H9.67091C9.32727 0.687273 8.42727 0 7.36364 0C6.3 0 5.4 0.687273 5.05636 1.63636H1.63636C0.736364 1.63636 0 2.37273 0 3.27273V16.3636C0 17.2636 0.736364 18 1.63636 18H13.0909C13.9909 18 14.7273 17.2636 14.7273 16.3636V3.27273C14.7273 2.37273 13.9909 1.63636 13.0909 1.63636ZM7.36364 1.63636C7.81364 1.63636 8.18182 2.00455 8.18182 2.45455C8.18182 2.90455 7.81364 3.27273 7.36364 3.27273C6.91364 3.27273 6.54545 2.90455 6.54545 2.45455C6.54545 2.00455 6.91364 1.63636 7.36364 1.63636ZM12.2727 16.3636H2.45455C2.00455 16.3636 1.63636 15.9955 1.63636 15.5455V4.09091C1.63636 3.64091 2.00455 3.27273 2.45455 3.27273H3.27273V4.09091C3.27273 4.99091 4.00909 5.72727 4.90909 5.72727H9.81818C10.7182 5.72727 11.4545 4.99091 11.4545 4.09091V3.27273H12.2727C12.7227 3.27273 13.0909 3.64091 13.0909 4.09091V15.5455C13.0909 15.9955 12.7227 16.3636 12.2727 16.3636Z" fill="#C8C8C8"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="11" height="23" viewBox="0 0 11 23" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M9.5 5.74918L9.5 16.3292C9.5 18.4192 7.97 20.2792 5.89 20.4792C3.51 20.7092 1.5 18.8392 1.5 16.4992L1.5 4.13918C1.5 2.82918 2.44 1.63918 3.74 1.50918C5.24 1.35918 6.5 2.52918 6.5 3.99918V14.4992C6.5 15.0492 6.05 15.4992 5.5 15.4992C4.95 15.4992 4.5 15.0492 4.5 14.4992V5.74918C4.5 5.33918 4.16 4.99918 3.75 4.99918C3.34 4.99918 3 5.33918 3 5.74918L3 14.3592C3 15.6692 3.94 16.8592 5.24 16.9892C6.74 17.1392 8 15.9692 8 14.4992L8 4.16918C8 2.07918 6.47 0.219185 4.39 0.0191841C2 -0.210815 0 1.65918 0 3.99918L0 16.2692C0 19.1392 2.1 21.7092 4.96 21.9792C8.25 22.2792 11 19.7192 11 16.4992L11 5.74918C11 5.33918 10.66 4.99918 10.25 4.99918C9.84 4.99918 9.5 5.33918 9.5 5.74918Z" fill="#5865F2"/>
|
|
3
|
+
</svg>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<span class="avatar avatar-sm rounded-circle">
|
|
5
5
|
<img :src="logo">
|
|
6
6
|
</span>
|
|
7
|
-
<div class="media-body ml-2 d-none d-lg-block">
|
|
7
|
+
<div class="media-body ml-2 d-none d-lg-block" v-if="!isCompany">
|
|
8
8
|
<span class="mb-0 text-sm font-weight-bold">
|
|
9
9
|
{{name}}
|
|
10
10
|
</span>
|
|
@@ -18,7 +18,12 @@ export default {
|
|
|
18
18
|
props: {
|
|
19
19
|
logo: String,
|
|
20
20
|
name: String,
|
|
21
|
-
data: Object
|
|
21
|
+
data: Object,
|
|
22
|
+
isCompany: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: false,
|
|
25
|
+
description: 'Verify company for share buffer'
|
|
26
|
+
}
|
|
22
27
|
},
|
|
23
28
|
methods: {
|
|
24
29
|
handleClick(e) {
|
|
@@ -27,3 +32,9 @@ export default {
|
|
|
27
32
|
}
|
|
28
33
|
};
|
|
29
34
|
</script>
|
|
35
|
+
|
|
36
|
+
<style lang="scss" scoped>
|
|
37
|
+
.is-buffer {
|
|
38
|
+
height: 30px !important;
|
|
39
|
+
}
|
|
40
|
+
</style>
|
|
@@ -114,12 +114,10 @@
|
|
|
114
114
|
<img class="archive-img" src="../../../../assets/images/icons/icon3.svg" >
|
|
115
115
|
</div>
|
|
116
116
|
<div class="archive-name">
|
|
117
|
-
<
|
|
118
|
-
<span>{{item.name}}</span>
|
|
117
|
+
<span>{{item.name}}</span>
|
|
119
118
|
<div class="archive-icon">
|
|
120
119
|
<i @click.stop.prevent="openRemoveSection(item, (index+1))" class="far fa-trash-alt"></i>
|
|
121
120
|
</div>
|
|
122
|
-
</p>
|
|
123
121
|
</div>
|
|
124
122
|
</div>
|
|
125
123
|
<div v-if="hasRemove && hasRemove == (index+1)" class="archive-remove">
|
|
@@ -166,6 +164,114 @@
|
|
|
166
164
|
</div>
|
|
167
165
|
</el-tab-pane>
|
|
168
166
|
|
|
167
|
+
<el-tab-pane name="reports" class="ml-2" v-if="isReportsActived">
|
|
168
|
+
<span class="tab__icon-pane" slot="label">
|
|
169
|
+
<img
|
|
170
|
+
class="img__icon-pane img__icon--reports"
|
|
171
|
+
src="../../../../assets/images/icons/icon5.svg"
|
|
172
|
+
/>
|
|
173
|
+
</span>
|
|
174
|
+
|
|
175
|
+
<upgrade-plan @send-contact="sendContact" v-show="isLocked" />
|
|
176
|
+
|
|
177
|
+
<p class="notes-title mb-0">Laudo do Candidato</p>
|
|
178
|
+
<div class="line mb-3"></div>
|
|
179
|
+
|
|
180
|
+
<div class="input-container" v-if="!isLocked && !userReportData.annex">
|
|
181
|
+
<dropzone-file-upload
|
|
182
|
+
disabled
|
|
183
|
+
ref="Mydropzone"
|
|
184
|
+
v-model="reportFileUpload"
|
|
185
|
+
:options="reportsDropdownzoneOptions"
|
|
186
|
+
@error="showMessageError"
|
|
187
|
+
/>
|
|
188
|
+
|
|
189
|
+
<div class="archive-buttons" v-if="reportFileUpload.length > 0">
|
|
190
|
+
<base-button @click="saveReport" size="sm" class="btn-outline-primary btn-rounded col-12">Salvar</base-button>
|
|
191
|
+
</div>
|
|
192
|
+
</div>
|
|
193
|
+
|
|
194
|
+
<div class="archive-content" v-else-if="userReportData.annex">
|
|
195
|
+
<div @click="openArchive(userReportData.annex)" class="archive-container">
|
|
196
|
+
<div>
|
|
197
|
+
<img class="archive-img" src="../../../../assets/images/icons/icon6.svg" >
|
|
198
|
+
</div>
|
|
199
|
+
<div class="archive-name">
|
|
200
|
+
<span>{{ userReportData.annex.name }}</span>
|
|
201
|
+
<div class="archive-icon">
|
|
202
|
+
<i @click.stop.prevent="openReportRemoveSection(userReportData.annex)" class="far fa-trash-alt"></i>
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
</div>
|
|
206
|
+
<div v-if="hasReportRemove" class="archive-remove">
|
|
207
|
+
<p>Você tem certeza que deseja apagar este arquivo?</p>
|
|
208
|
+
<div class="d-flex">
|
|
209
|
+
<base-button
|
|
210
|
+
@click="removeReportArchive(currentRemoveItem)"
|
|
211
|
+
size="sm"
|
|
212
|
+
class="btn-outline-primary col-6 p-1"
|
|
213
|
+
>
|
|
214
|
+
Apagar
|
|
215
|
+
</base-button>
|
|
216
|
+
<base-button
|
|
217
|
+
@click="hasRemove = false"
|
|
218
|
+
size="sm"
|
|
219
|
+
class="btn-outline-danger col-6 p-1"
|
|
220
|
+
>
|
|
221
|
+
Cancelar
|
|
222
|
+
</base-button>
|
|
223
|
+
</div>
|
|
224
|
+
</div>
|
|
225
|
+
</div>
|
|
226
|
+
|
|
227
|
+
<p class="notes-title mb-0">Comentários Recrutador</p>
|
|
228
|
+
<div class="line mb-3"></div>
|
|
229
|
+
|
|
230
|
+
<div v-if="!isLocked && userReportData.comment">
|
|
231
|
+
<div class="notes-baloon fullsize">
|
|
232
|
+
<div class="notes-text mx-3 pt-1">
|
|
233
|
+
<p class="mt-3">{{ userReportData.comment.comment }}</p>
|
|
234
|
+
</div>
|
|
235
|
+
<div
|
|
236
|
+
class="d-flex justify-content-end align-items-center mr-3"
|
|
237
|
+
>
|
|
238
|
+
<p class="notes-date">
|
|
239
|
+
{{ userReportData.comment.created_at | convertDate }}
|
|
240
|
+
</p>
|
|
241
|
+
</div>
|
|
242
|
+
</div>
|
|
243
|
+
<div class="notes-owner d-flex mt-2">
|
|
244
|
+
<img
|
|
245
|
+
v-if="userReportData.comment.user.urlAvatar"
|
|
246
|
+
:src="userReportData.comment.user.urlAvatar"
|
|
247
|
+
:alt="userReportData.comment.user.name"
|
|
248
|
+
/>
|
|
249
|
+
<div
|
|
250
|
+
v-else
|
|
251
|
+
class="notes-avatar"
|
|
252
|
+
></div>
|
|
253
|
+
<p class="ml-1">
|
|
254
|
+
{{ userReportData.comment.user.name }}
|
|
255
|
+
</p>
|
|
256
|
+
</div>
|
|
257
|
+
</div>
|
|
258
|
+
|
|
259
|
+
<div class="input-container" v-show="!isLocked && !userReportData.comment">
|
|
260
|
+
<input
|
|
261
|
+
class="notes-new pl-4 mt-3 mb-3 form-rounded"
|
|
262
|
+
type="text"
|
|
263
|
+
placeholder="Escrever anotação"
|
|
264
|
+
v-model="newReportNote"
|
|
265
|
+
@change="handleNewReportNoteSubmit"
|
|
266
|
+
v-on:change="cleatInput()"
|
|
267
|
+
/>
|
|
268
|
+
<i
|
|
269
|
+
@click="handleNewReportNoteSubmit"
|
|
270
|
+
class="fas fa-paper-plane input-icon"
|
|
271
|
+
></i>
|
|
272
|
+
</div>
|
|
273
|
+
</el-tab-pane>
|
|
274
|
+
|
|
169
275
|
<!-- <el-tab-pane :disabled="true">
|
|
170
276
|
<span class="tab__icon-pane cursor-disabled" slot="label">
|
|
171
277
|
<img
|
|
@@ -201,6 +307,14 @@ export default {
|
|
|
201
307
|
if(value.length > 0 && value[0].accepted) {
|
|
202
308
|
this.isError = false;
|
|
203
309
|
}
|
|
310
|
+
},
|
|
311
|
+
reportFileUpload(value){
|
|
312
|
+
if(value.length > 0 && value[0].accepted) {
|
|
313
|
+
this.isError = false;
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
archives() {
|
|
317
|
+
this.getUserFolderData();
|
|
204
318
|
}
|
|
205
319
|
},
|
|
206
320
|
components: {
|
|
@@ -212,6 +326,7 @@ export default {
|
|
|
212
326
|
data(){
|
|
213
327
|
return {
|
|
214
328
|
newNote: '',
|
|
329
|
+
newReportNote: '',
|
|
215
330
|
active: this.activeName,
|
|
216
331
|
hasRemove: null,
|
|
217
332
|
isError: true,
|
|
@@ -225,6 +340,17 @@ export default {
|
|
|
225
340
|
dictMaxFilesExceeded: 'Não é permitido mais de um arquivo por vez.',
|
|
226
341
|
acceptedFiles: 'image/*, application/pdf',
|
|
227
342
|
},
|
|
343
|
+
reportFileUpload: [],
|
|
344
|
+
reportsDropdownzoneOptions: {
|
|
345
|
+
maxFilesize: 1,
|
|
346
|
+
dictFileTooBig:'Seu arquivo é poderoso demais (Máximo 5mb).',
|
|
347
|
+
dictDefaultMessage: 'Clique ou arraste seu arquivo aqui.',
|
|
348
|
+
dictInvalidFileType: 'Arquivo invalido.',
|
|
349
|
+
dictMaxFilesExceeded: 'Não é permitido mais de um arquivo por vez.',
|
|
350
|
+
acceptedFiles: 'image/*, application/pdf',
|
|
351
|
+
},
|
|
352
|
+
userReportData: [],
|
|
353
|
+
hasReportRemove: false,
|
|
228
354
|
isLocked: !this.companyHasProduct(
|
|
229
355
|
this.$store.state.loja && this.$store.state.loja.showableProducts && this.$store.state.loja.showableProducts['HISTORICO_USUARIO'] || false
|
|
230
356
|
),
|
|
@@ -235,19 +361,33 @@ export default {
|
|
|
235
361
|
userData: Object,
|
|
236
362
|
notes: Array,
|
|
237
363
|
activeName: String,
|
|
364
|
+
userFolderId: String || Number,
|
|
238
365
|
isNotesActived: {
|
|
239
366
|
type: Boolean,
|
|
240
367
|
default: true
|
|
241
368
|
},
|
|
369
|
+
isReportsActived: {
|
|
370
|
+
type: Boolean,
|
|
371
|
+
default: false
|
|
372
|
+
},
|
|
242
373
|
},
|
|
243
374
|
mounted() {
|
|
244
375
|
this.companyHistory();
|
|
376
|
+
this.getUserFolderData();
|
|
245
377
|
},
|
|
246
378
|
methods: {
|
|
379
|
+
handleNewReportNoteSubmit() {
|
|
380
|
+
this.$emit('new-report-note', this.newReportNote, this.userFolderId, this.userData.id);
|
|
381
|
+
this.newReportNote = '';
|
|
382
|
+
},
|
|
247
383
|
openRemoveSection(item, index) {
|
|
248
384
|
this.hasRemove = index;
|
|
249
385
|
this.currentRemoveItem = item;
|
|
250
386
|
},
|
|
387
|
+
openReportRemoveSection(item) {
|
|
388
|
+
this.hasReportRemove = true;
|
|
389
|
+
this.currentRemoveItem = item;
|
|
390
|
+
},
|
|
251
391
|
|
|
252
392
|
showToast(type, title){
|
|
253
393
|
const Toast = swal.mixin({
|
|
@@ -291,12 +431,33 @@ export default {
|
|
|
291
431
|
}
|
|
292
432
|
},
|
|
293
433
|
|
|
434
|
+
saveReport() {
|
|
435
|
+
if (!this.isError) {
|
|
436
|
+
this.$emit('save-report', this.reportFileUpload[0], this.userFolderId);
|
|
437
|
+
this.$refs.Mydropzone.removeAllFiles();
|
|
438
|
+
this.showToast('success', 'Arquivo enviado com sucesso.');
|
|
439
|
+
|
|
440
|
+
} else {
|
|
441
|
+
if (this.reportFileUpload.length > 0) {
|
|
442
|
+
this.showToast('error', 'Arquivo invalido.');
|
|
443
|
+
} else {
|
|
444
|
+
this.showToast('warning', 'Selecione um arquivo.');
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
|
|
294
449
|
removeArchive(archive, index){
|
|
295
|
-
console.log(archive);
|
|
296
450
|
this.$emit('remove-archive', archive.user_id, archive.id, archive.company_id, index);
|
|
297
451
|
this.hasRemove = null;
|
|
298
452
|
},
|
|
299
453
|
|
|
454
|
+
removeReportArchive(archive) {
|
|
455
|
+
this.userReportData.annex = undefined;
|
|
456
|
+
|
|
457
|
+
this.$emit('remove-report', archive.id);
|
|
458
|
+
this.hasReportRemove = false;
|
|
459
|
+
},
|
|
460
|
+
|
|
300
461
|
cleatInput() {
|
|
301
462
|
this.newNote = '';
|
|
302
463
|
},
|
|
@@ -338,6 +499,28 @@ export default {
|
|
|
338
499
|
},
|
|
339
500
|
sendContact() {
|
|
340
501
|
this.$emit('open-contact');
|
|
502
|
+
},
|
|
503
|
+
|
|
504
|
+
async getUserFolderData() {
|
|
505
|
+
const apiUrl = `${process.env.baseApiUrlV2}/company/buffer/folder/user/${this.userFolderId}`;
|
|
506
|
+
|
|
507
|
+
const data = await this.$axios(apiUrl)
|
|
508
|
+
.then(res => res.data)
|
|
509
|
+
.catch(() => {});
|
|
510
|
+
|
|
511
|
+
if (!data) return;
|
|
512
|
+
|
|
513
|
+
this.mountUserReport(data.data);
|
|
514
|
+
},
|
|
515
|
+
|
|
516
|
+
mountUserReport(userData) {
|
|
517
|
+
const annex = userData.annex[0] || undefined;
|
|
518
|
+
const comment = userData.comments[0] || undefined;
|
|
519
|
+
|
|
520
|
+
this.userReportData = {
|
|
521
|
+
annex,
|
|
522
|
+
comment
|
|
523
|
+
};
|
|
341
524
|
}
|
|
342
525
|
},
|
|
343
526
|
};
|
|
@@ -348,7 +531,7 @@ export default {
|
|
|
348
531
|
}
|
|
349
532
|
|
|
350
533
|
.el-tabs__active-bar {
|
|
351
|
-
width:
|
|
534
|
+
width: 30px !important;
|
|
352
535
|
height: 4px !important;
|
|
353
536
|
border-radius: 10px 10px 0px 0px;
|
|
354
537
|
}
|
|
@@ -440,7 +623,7 @@ export default {
|
|
|
440
623
|
|
|
441
624
|
&:hover{
|
|
442
625
|
background-color: #f6f9fc;
|
|
443
|
-
|
|
626
|
+
border-radius: 5px;
|
|
444
627
|
}
|
|
445
628
|
|
|
446
629
|
.archive-img {
|
|
@@ -493,15 +676,17 @@ export default {
|
|
|
493
676
|
|
|
494
677
|
/deep/ .el-tabs__nav-scroll {
|
|
495
678
|
display: flex;
|
|
496
|
-
|
|
679
|
+
justify-content: stretch;
|
|
680
|
+
align-items: flex-start;
|
|
497
681
|
}
|
|
498
682
|
|
|
499
683
|
/deep/ .el-tabs__item {
|
|
500
|
-
padding: 0
|
|
684
|
+
padding: 0 1.60rem !important;
|
|
501
685
|
}
|
|
502
686
|
|
|
503
687
|
/deep/ .el-tabs__nav {
|
|
504
688
|
width: 100% !important;
|
|
689
|
+
user-select: none;
|
|
505
690
|
}
|
|
506
691
|
|
|
507
692
|
@media (max-width: 1520px) {
|
|
@@ -545,6 +730,11 @@ export default {
|
|
|
545
730
|
|
|
546
731
|
background: #eff5fd;
|
|
547
732
|
border-radius: 10px 10px 10px 0px;
|
|
733
|
+
|
|
734
|
+
&.fullsize {
|
|
735
|
+
width: 80%!important;
|
|
736
|
+
min-width: 280px;
|
|
737
|
+
}
|
|
548
738
|
}
|
|
549
739
|
|
|
550
740
|
.notes-text {
|