@burh/nuxt-core 1.0.393 → 1.0.394
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.
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
<upgrade-plan @send-contact="sendContact" v-show="isLocked" />
|
|
16
16
|
<p class="notes-title mb-0">Histórico com sua empresa</p>
|
|
17
17
|
<div class="line mb-3"></div>
|
|
18
|
+
|
|
18
19
|
<div
|
|
19
20
|
class="mt-3"
|
|
20
21
|
v-for="(item, index) in orderByDate(companyHistory())"
|
|
@@ -232,35 +233,13 @@
|
|
|
232
233
|
<p class="mt-3">{{ userReportData.comment.comment }}</p>
|
|
233
234
|
</div>
|
|
234
235
|
<div
|
|
235
|
-
class="d-flex justify-content-
|
|
236
|
+
class="d-flex justify-content-end align-items-center mr-3"
|
|
236
237
|
>
|
|
237
|
-
<p @click.prevent="hasCommentRemove = !hasCommentRemove" class="notes-date remove-baloon">
|
|
238
|
-
Excluir
|
|
239
|
-
</p>
|
|
240
238
|
<p class="notes-date">
|
|
241
239
|
{{ userReportData.comment.created_at | convertDate }}
|
|
242
240
|
</p>
|
|
243
241
|
</div>
|
|
244
242
|
</div>
|
|
245
|
-
<div v-if="hasCommentRemove" class="archive-remove">
|
|
246
|
-
<p>Você tem certeza que deseja apagar este comentário?</p>
|
|
247
|
-
<div class="d-flex">
|
|
248
|
-
<base-button
|
|
249
|
-
@click="removeComment(userReportData.comment.id)"
|
|
250
|
-
size="sm"
|
|
251
|
-
class="btn-outline-primary col-6 p-1"
|
|
252
|
-
>
|
|
253
|
-
Apagar
|
|
254
|
-
</base-button>
|
|
255
|
-
<base-button
|
|
256
|
-
@click="hasCommentRemove = false"
|
|
257
|
-
size="sm"
|
|
258
|
-
class="btn-outline-danger col-6 p-1"
|
|
259
|
-
>
|
|
260
|
-
Cancelar
|
|
261
|
-
</base-button>
|
|
262
|
-
</div>
|
|
263
|
-
</div>
|
|
264
243
|
<div class="notes-owner d-flex mt-2">
|
|
265
244
|
<img
|
|
266
245
|
v-if="userReportData.comment.user.urlAvatar"
|
|
@@ -372,7 +351,6 @@ export default {
|
|
|
372
351
|
},
|
|
373
352
|
userReportData: [],
|
|
374
353
|
hasReportRemove: false,
|
|
375
|
-
hasCommentRemove: false,
|
|
376
354
|
isLocked: !this.companyHasProduct(
|
|
377
355
|
this.$store.state.loja && this.$store.state.loja.showableProducts && this.$store.state.loja.showableProducts['HISTORICO_USUARIO'] || false
|
|
378
356
|
),
|
|
@@ -398,11 +376,6 @@ export default {
|
|
|
398
376
|
this.getUserFolderData();
|
|
399
377
|
},
|
|
400
378
|
methods: {
|
|
401
|
-
removeComment(item){
|
|
402
|
-
this.userReportData.comment = undefined;
|
|
403
|
-
this.$emit('remove-comment', item);
|
|
404
|
-
this.hasCommentRemove = false;
|
|
405
|
-
},
|
|
406
379
|
handleNewReportNoteSubmit() {
|
|
407
380
|
if (this.newReportNote.length > 3) {
|
|
408
381
|
this.$emit('new-report-note', this.newReportNote, this.userFolderId, this.userData.id);
|
|
@@ -491,10 +464,10 @@ export default {
|
|
|
491
464
|
this.newNote = '';
|
|
492
465
|
},
|
|
493
466
|
companyHistory() {
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
467
|
+
let sms = this.userData.company_sms.map(x => ({
|
|
468
|
+
date: x.created_at,
|
|
469
|
+
text: 'Recebeu um SMS'
|
|
470
|
+
}));
|
|
498
471
|
let tests = this.userData.tests.map(x => {
|
|
499
472
|
if (x.finished_at) {
|
|
500
473
|
return {
|
|
@@ -509,22 +482,12 @@ export default {
|
|
|
509
482
|
}
|
|
510
483
|
|
|
511
484
|
});
|
|
512
|
-
|
|
513
|
-
let courses = this.userData.courses_user.map(x => {
|
|
514
|
-
if (x.finished_at) {
|
|
515
|
-
return{
|
|
516
|
-
date: x.finished_at,
|
|
517
|
-
text: `Finalizou o curso ${x.course.name.toUpperCase()}`
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
});
|
|
521
|
-
|
|
522
485
|
let discs = this.userData.solides.map(x => ({
|
|
523
486
|
date: x.end,
|
|
524
487
|
text: 'Realizou um teste DISC'
|
|
525
488
|
}));
|
|
526
489
|
|
|
527
|
-
return
|
|
490
|
+
return sms.concat(tests, discs);
|
|
528
491
|
},
|
|
529
492
|
orderByDate(data) {
|
|
530
493
|
let sortedArray = data.sort((a, b) => {
|
|
@@ -570,9 +533,7 @@ export default {
|
|
|
570
533
|
.el-tabs__nav-wrap.is-top::after {
|
|
571
534
|
background: #fff !important;
|
|
572
535
|
}
|
|
573
|
-
|
|
574
|
-
cursor: pointer;
|
|
575
|
-
}
|
|
536
|
+
|
|
576
537
|
.el-tabs__active-bar.is-top {
|
|
577
538
|
width: 30px !important;
|
|
578
539
|
height: 4px !important;
|