@burh/nuxt-core 1.0.444 → 1.0.446
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.
|
@@ -1,600 +1,593 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="bg-white content-middle">
|
|
3
|
-
<!-- FERRAMENTAS -->
|
|
4
|
-
<div class="tools mt-3">
|
|
5
|
-
<button
|
|
6
|
-
v-for="(tool, index) in tools"
|
|
7
|
-
:key="index"
|
|
8
|
-
class="ml-3 burh-color"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
<
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
>
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
</
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
{{
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
</
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
</
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
>
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
)
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
return
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
)
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
a.
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
b.
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
new Date(
|
|
359
|
-
new Date(
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
new Date(b[
|
|
368
|
-
new Date(a[
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
'
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
);
|
|
406
|
-
const
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
return
|
|
459
|
-
},
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
return
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
border:
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
.disabled-button {
|
|
598
|
-
opacity: 0.5;
|
|
599
|
-
}
|
|
600
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="bg-white content-middle">
|
|
3
|
+
<!-- FERRAMENTAS -->
|
|
4
|
+
<div class="tools mt-3">
|
|
5
|
+
<button
|
|
6
|
+
v-for="(tool, index) in tools"
|
|
7
|
+
:key="index"
|
|
8
|
+
class="ml-3 burh-color"
|
|
9
|
+
@click="
|
|
10
|
+
isLocked && !unlockedButtons.includes(tool.event)
|
|
11
|
+
? $emit('open-contact')
|
|
12
|
+
: tool.event !== 'moveTo' && $emit(tool.event)
|
|
13
|
+
"
|
|
14
|
+
>
|
|
15
|
+
<template v-if="tool.event !== 'moveTo'">
|
|
16
|
+
<i
|
|
17
|
+
v-show="isLocked && tool.event !== 'share'"
|
|
18
|
+
class="fas fa-lock mr-1"
|
|
19
|
+
></i>
|
|
20
|
+
{{ tool.name }}
|
|
21
|
+
</template>
|
|
22
|
+
<template v-else-if="tool.event === 'moveTo'">
|
|
23
|
+
<el-dropdown trigger="click" class="dropdown__content">
|
|
24
|
+
<span class="title__content icon">
|
|
25
|
+
{{tool.name}}
|
|
26
|
+
<i class="fas fa-angle-down"></i>
|
|
27
|
+
</span>
|
|
28
|
+
<el-dropdown-menu slot="dropdown">
|
|
29
|
+
<el-dropdown-item
|
|
30
|
+
v-for="(tab, index) in moveToItems"
|
|
31
|
+
:key="index"
|
|
32
|
+
@click.native="$emit(tool.event, tab)"
|
|
33
|
+
>
|
|
34
|
+
<i class="fas fa-clipboard-list"></i>
|
|
35
|
+
{{ tab.title }}
|
|
36
|
+
</el-dropdown-item>
|
|
37
|
+
</el-dropdown-menu>
|
|
38
|
+
</el-dropdown>
|
|
39
|
+
</template>
|
|
40
|
+
</button>
|
|
41
|
+
</div>
|
|
42
|
+
<!-- SOBRE -->
|
|
43
|
+
<div class="about content-block mt-5 ml-3 mr-3">
|
|
44
|
+
<h5 class="font-weight-bold">Sobre</h5>
|
|
45
|
+
<p
|
|
46
|
+
v-if="userData && userData.user_complementary_information && userData.user_complementary_information.about || false"
|
|
47
|
+
id="USER_ABOUT"
|
|
48
|
+
class="mb-0"
|
|
49
|
+
:class="
|
|
50
|
+
!wordIsLesserThan(
|
|
51
|
+
userData.user_complementary_information.about
|
|
52
|
+
) && 'readmore'
|
|
53
|
+
"
|
|
54
|
+
v-html="
|
|
55
|
+
highlightText(
|
|
56
|
+
search,
|
|
57
|
+
userData.user_complementary_information.about
|
|
58
|
+
)
|
|
59
|
+
"
|
|
60
|
+
></p>
|
|
61
|
+
<a
|
|
62
|
+
href="#"
|
|
63
|
+
aria-label="expandir conteudo"
|
|
64
|
+
v-if="
|
|
65
|
+
userData && userData.user_complementary_information && userData.user_complementary_information.about &&
|
|
66
|
+
!wordIsLesserThan(
|
|
67
|
+
userData.user_complementary_information.about
|
|
68
|
+
) || false
|
|
69
|
+
"
|
|
70
|
+
@click.prevent.stop="toggleReadMore($event, 'USER_ABOUT')"
|
|
71
|
+
>Ler mais</a
|
|
72
|
+
>
|
|
73
|
+
|
|
74
|
+
<p v-if="userData && userData.user_complementary_information && userData.user_complementary_information.about || false" class="">
|
|
75
|
+
Nenhuma informação adicionada
|
|
76
|
+
</p>
|
|
77
|
+
</div>
|
|
78
|
+
<!-- CONTATO -->
|
|
79
|
+
<h5 class="font-weight-bold mt-4 ml-3">Contatos</h5>
|
|
80
|
+
<div class="ml-3 info-text">
|
|
81
|
+
<span v-if="userData.email != null">Email: {{userData.email}}</span><br>
|
|
82
|
+
<span v-if="userData.user_contact && userData.user_contact.cellphone != null && userData.user_contact.cellphone.length > 1 ">Celular: {{phoneMask(userData.user_contact.cellphone)}}</span><br>
|
|
83
|
+
<span v-if="userData.user_contact && userData.user_contact.phone != null && userData.user_contact.phone.length > 1">Telefone: {{phoneMask(userData.user_contact.phone)}}</span>
|
|
84
|
+
</div>
|
|
85
|
+
|
|
86
|
+
<!-- EDUCAÇÃO -->
|
|
87
|
+
<h5 class="font-weight-bold mt-4 ml-3">Educação</h5>
|
|
88
|
+
<div
|
|
89
|
+
class=" ml-3"
|
|
90
|
+
v-show="userData.user_education.length > 0"
|
|
91
|
+
v-for="(edu, index) in userData.user_education"
|
|
92
|
+
:key="index"
|
|
93
|
+
>
|
|
94
|
+
<p
|
|
95
|
+
class="sub-title"
|
|
96
|
+
v-html="highlightText(search, edu.formation)"
|
|
97
|
+
></p>
|
|
98
|
+
<p class="info-text">{{ edu.institution }}</p>
|
|
99
|
+
<span class="info-text">
|
|
100
|
+
{{ edu.start_month }}/{{ edu.start_year }} -
|
|
101
|
+
{{ treatEndDate(edu.end_month, edu.end_year) }}
|
|
102
|
+
{{ getTime(false, edu) }}
|
|
103
|
+
{{
|
|
104
|
+
edu.user_education_period
|
|
105
|
+
? '-' + edu.user_education_period.name
|
|
106
|
+
: ''
|
|
107
|
+
}} </span
|
|
108
|
+
><br />
|
|
109
|
+
<span
|
|
110
|
+
class="info-text"
|
|
111
|
+
>
|
|
112
|
+
{{edu.formation_level_id | formationLevel}}
|
|
113
|
+
</span>
|
|
114
|
+
</div>
|
|
115
|
+
|
|
116
|
+
<!-- EXPERIÊNCIAS -->
|
|
117
|
+
<h5 class="font-weight-bold mt-4 ml-3">Experiência</h5>
|
|
118
|
+
<div
|
|
119
|
+
class="no-info ml-3"
|
|
120
|
+
v-show="userData.user_experience.length === 0"
|
|
121
|
+
>
|
|
122
|
+
<p>
|
|
123
|
+
Nenhuma informação adicionada
|
|
124
|
+
</p>
|
|
125
|
+
</div>
|
|
126
|
+
<div
|
|
127
|
+
v-show="userData.user_experience.length > 0"
|
|
128
|
+
class="experience ml-3 mr-3"
|
|
129
|
+
v-for="(exp, index) in userData.user_experience"
|
|
130
|
+
:key="`experience-${index}`"
|
|
131
|
+
>
|
|
132
|
+
<p
|
|
133
|
+
class="sub-title"
|
|
134
|
+
v-html="highlightText(search, exp.job_title)"
|
|
135
|
+
></p>
|
|
136
|
+
<p
|
|
137
|
+
class="info-text"
|
|
138
|
+
v-html="
|
|
139
|
+
highlightText(search, `${exp.company}, ${exp.location}`)
|
|
140
|
+
"
|
|
141
|
+
></p>
|
|
142
|
+
<span class="info-text">
|
|
143
|
+
{{ exp.start_month }}/{{ exp.start_year }} -
|
|
144
|
+
{{ treatEndDate(exp.end_month, exp.end_year) }}
|
|
145
|
+
{{ getTime(true, exp) }}
|
|
146
|
+
</span>
|
|
147
|
+
|
|
148
|
+
<p
|
|
149
|
+
:id="`USER_EXPERIENCE-${index}`"
|
|
150
|
+
class="description mt-4 mb-0"
|
|
151
|
+
:class="!wordIsLesserThan(exp.description) && 'readmore'"
|
|
152
|
+
v-html="highlightText(search, exp.description)"
|
|
153
|
+
></p>
|
|
154
|
+
|
|
155
|
+
<a
|
|
156
|
+
href="#"
|
|
157
|
+
aria-label="expandir conteudo"
|
|
158
|
+
v-show="!wordIsLesserThan(exp.description)"
|
|
159
|
+
@click.prevent.stop="
|
|
160
|
+
toggleReadMore($event, `USER_EXPERIENCE-${index}`)
|
|
161
|
+
"
|
|
162
|
+
>Ler mais</a
|
|
163
|
+
><br /><br />
|
|
164
|
+
</div>
|
|
165
|
+
|
|
166
|
+
<!-- CURSOS -->
|
|
167
|
+
<h5 class="font-weight-bold mt-1 ml-3">Cursos Complementares</h5>
|
|
168
|
+
<div class="no-info ml-3" v-show="userData.user_course.length === 0">
|
|
169
|
+
<p>
|
|
170
|
+
Nenhuma informação adicionada
|
|
171
|
+
</p>
|
|
172
|
+
</div>
|
|
173
|
+
<div
|
|
174
|
+
v-show="userData.user_course.length > 0"
|
|
175
|
+
class="courses ml-3"
|
|
176
|
+
v-for="(cou, index) in userData.user_course"
|
|
177
|
+
:key="`course-${index}`"
|
|
178
|
+
>
|
|
179
|
+
<p
|
|
180
|
+
class="sub-title"
|
|
181
|
+
v-html="highlightText(search, cou.institution)"
|
|
182
|
+
></p>
|
|
183
|
+
<p
|
|
184
|
+
class="info-text mb-3"
|
|
185
|
+
v-html="
|
|
186
|
+
highlightText(
|
|
187
|
+
search,
|
|
188
|
+
`${cou.name} - ${cou.end_year || ''} ${getTime(
|
|
189
|
+
false,
|
|
190
|
+
cou
|
|
191
|
+
)}`
|
|
192
|
+
)
|
|
193
|
+
"
|
|
194
|
+
>
|
|
195
|
+
{{ cou.name }} - {{ cou.end_year }}
|
|
196
|
+
{{ getTime(false, cou) }}
|
|
197
|
+
</p>
|
|
198
|
+
</div>
|
|
199
|
+
</div>
|
|
200
|
+
</template>
|
|
201
|
+
|
|
202
|
+
<script>
|
|
203
|
+
import getPrefixes from '~/util/getPrefixes.js';
|
|
204
|
+
import { mask } from 'vue-the-mask';
|
|
205
|
+
import { Dropdown, DropdownMenu, DropdownItem } from 'element-ui';
|
|
206
|
+
|
|
207
|
+
export default {
|
|
208
|
+
name: 'user-cv-middle',
|
|
209
|
+
directives: { mask },
|
|
210
|
+
props: {
|
|
211
|
+
userData: Object,
|
|
212
|
+
tools: {
|
|
213
|
+
type: Array,
|
|
214
|
+
default: () => []
|
|
215
|
+
},
|
|
216
|
+
search: {
|
|
217
|
+
type: String,
|
|
218
|
+
default: ''
|
|
219
|
+
},
|
|
220
|
+
moveToItems: {
|
|
221
|
+
type: Array,
|
|
222
|
+
default: () => [
|
|
223
|
+
{
|
|
224
|
+
id: 1,
|
|
225
|
+
name: 'applieds',
|
|
226
|
+
title: 'Inscritos'
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
id: 3,
|
|
230
|
+
name: 'selecteds',
|
|
231
|
+
title: 'Selecionados'
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
id: 5,
|
|
235
|
+
name: 'hireds',
|
|
236
|
+
title: 'Contratados'
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
id: 4,
|
|
240
|
+
name: 'other',
|
|
241
|
+
title: 'Reprovado'
|
|
242
|
+
}
|
|
243
|
+
]
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
filters: {
|
|
247
|
+
formationLevel(id) {
|
|
248
|
+
const typeFormation = {
|
|
249
|
+
1: 'Ensino Médio',
|
|
250
|
+
2: 'Ensino Técnico',
|
|
251
|
+
3: 'Graduação',
|
|
252
|
+
4: 'Pós-Graduação',
|
|
253
|
+
5: 'Mestrado',
|
|
254
|
+
6: 'Doutorado',
|
|
255
|
+
8: 'Ensino Fundamental'
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
return typeFormation[id] || '-';
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
components: {
|
|
262
|
+
ElDropdown: Dropdown,
|
|
263
|
+
ElDropdownMenu: DropdownMenu,
|
|
264
|
+
ElDropdownItem: DropdownItem
|
|
265
|
+
},
|
|
266
|
+
data() {
|
|
267
|
+
return {
|
|
268
|
+
isLocked: !this.companyHasProduct(
|
|
269
|
+
this.$store.state.loja && this.$store.state.loja.showableProducts && this.$store.state.loja.showableProducts['INTERACAO_USUARIO'] || false
|
|
270
|
+
),
|
|
271
|
+
unlockedButtons: ['share', 'moveTo']
|
|
272
|
+
};
|
|
273
|
+
},
|
|
274
|
+
mounted() {
|
|
275
|
+
this.userData.user_experience = this.filterByDate(
|
|
276
|
+
this.userData.user_experience,
|
|
277
|
+
'old'
|
|
278
|
+
);
|
|
279
|
+
this.userData.user_education = this.filterByDate(
|
|
280
|
+
this.userData.user_education,
|
|
281
|
+
'old'
|
|
282
|
+
);
|
|
283
|
+
this.userData.user_course = this.filterByDate(
|
|
284
|
+
this.userData.user_course,
|
|
285
|
+
'old'
|
|
286
|
+
);
|
|
287
|
+
},
|
|
288
|
+
watch: {
|
|
289
|
+
userData() {
|
|
290
|
+
this.userData.user_experience = this.filterByDate(
|
|
291
|
+
this.userData.user_experience,
|
|
292
|
+
'old'
|
|
293
|
+
);
|
|
294
|
+
this.userData.user_education = this.filterByDate(
|
|
295
|
+
this.userData.user_education,
|
|
296
|
+
'old'
|
|
297
|
+
);
|
|
298
|
+
this.userData.user_course = this.filterByDate(
|
|
299
|
+
this.userData.user_course,
|
|
300
|
+
'old'
|
|
301
|
+
);
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
methods: {
|
|
305
|
+
phoneMask(v) {
|
|
306
|
+
|
|
307
|
+
let r = v.replace(/\D/g, '');
|
|
308
|
+
r = r.replace(/^0/, '');
|
|
309
|
+
|
|
310
|
+
if (r.length > 11) {
|
|
311
|
+
r = r.replace(/^(\d\d)(\d{5})(\d{4}).*/, '($1) $2-$3');
|
|
312
|
+
} else if (r.length > 7) {
|
|
313
|
+
r = r.replace(/^(\d\d)(\d{5})(\d{0,4}).*/, '($1) $2-$3');
|
|
314
|
+
} else if (r.length > 2) {
|
|
315
|
+
r = r.replace(/^(\d\d)(\d{0,5})/, '($1) $2');
|
|
316
|
+
} else if (v.trim() !== '') {
|
|
317
|
+
r = r.replace(/^(\d*)/, '($1');
|
|
318
|
+
}
|
|
319
|
+
return r;
|
|
320
|
+
},
|
|
321
|
+
highlightText(search, text) {
|
|
322
|
+
if (search.length < 2) return text;
|
|
323
|
+
|
|
324
|
+
const regex = new RegExp(search.toLowerCase(), 'gmi');
|
|
325
|
+
return String(text || '').replace(
|
|
326
|
+
regex,
|
|
327
|
+
`<span class="search-highlight">${search}</span>`
|
|
328
|
+
);
|
|
329
|
+
},
|
|
330
|
+
filterByDate(data, by = 'new') {
|
|
331
|
+
let sortedArray = data.sort((a, b) => {
|
|
332
|
+
a = [
|
|
333
|
+
a.start_month,
|
|
334
|
+
a.start_year,
|
|
335
|
+
a.end_month || 12,
|
|
336
|
+
a.end_year || 9999
|
|
337
|
+
];
|
|
338
|
+
|
|
339
|
+
b = [
|
|
340
|
+
b.start_month,
|
|
341
|
+
b.start_year,
|
|
342
|
+
b.end_month || 12,
|
|
343
|
+
b.end_year || 9999
|
|
344
|
+
];
|
|
345
|
+
|
|
346
|
+
// Primeiro filtro -> chaves: 0 e 1 -> Filtro por data de inicio
|
|
347
|
+
// Segundo filtro -> chaves: 2 e 3 -> Filtro por data de termino (subir não concluídos para primeiros)
|
|
348
|
+
|
|
349
|
+
let byStart;
|
|
350
|
+
let byEnd;
|
|
351
|
+
|
|
352
|
+
switch (by) {
|
|
353
|
+
case 'old':
|
|
354
|
+
byStart =
|
|
355
|
+
new Date(a[1], a[0], 1).getTime() -
|
|
356
|
+
new Date(b[1], b[0], 1).getTime();
|
|
357
|
+
byEnd =
|
|
358
|
+
new Date(b[3], b[2], 1).getTime() -
|
|
359
|
+
new Date(a[3], a[2], 1).getTime();
|
|
360
|
+
break;
|
|
361
|
+
|
|
362
|
+
default:
|
|
363
|
+
byStart =
|
|
364
|
+
new Date(b[1], b[0], 1).getTime() -
|
|
365
|
+
new Date(a[1], a[0], 1).getTime();
|
|
366
|
+
byEnd =
|
|
367
|
+
new Date(b[3], b[2], 1).getTime() -
|
|
368
|
+
new Date(a[3], a[2], 1).getTime();
|
|
369
|
+
break;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
return byEnd - byStart;
|
|
373
|
+
});
|
|
374
|
+
|
|
375
|
+
return sortedArray;
|
|
376
|
+
},
|
|
377
|
+
toggleReadMore(event, id) {
|
|
378
|
+
const element = document.getElementById(id);
|
|
379
|
+
element.classList.toggle('readmore');
|
|
380
|
+
event.target.innerText == 'Ler mais'
|
|
381
|
+
? (event.target.innerText = 'Esconder')
|
|
382
|
+
: (event.target.innerText = 'Ler mais');
|
|
383
|
+
},
|
|
384
|
+
getTime(
|
|
385
|
+
isExperience,
|
|
386
|
+
{ start_year = null, end_year = null, start_month, end_month },
|
|
387
|
+
textHappening = 'Cursando'
|
|
388
|
+
) {
|
|
389
|
+
const isHappening = !end_month && !end_year;
|
|
390
|
+
|
|
391
|
+
if (isHappening) {
|
|
392
|
+
return isExperience === true ? 'Atualmente' : textHappening;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
const dateInitial = this.$moment(
|
|
396
|
+
['1', start_month.toString(), start_year.toString()],
|
|
397
|
+
'DD/MM/YYYY'
|
|
398
|
+
);
|
|
399
|
+
const dateDone = this.$moment(
|
|
400
|
+
['1', end_month.toString(), end_year.toString()],
|
|
401
|
+
'DD/MM/YYYY'
|
|
402
|
+
);
|
|
403
|
+
const diffDuration = this.$moment.duration(
|
|
404
|
+
dateDone.diff(dateInitial)
|
|
405
|
+
);
|
|
406
|
+
const years = diffDuration.years();
|
|
407
|
+
const months = diffDuration.months();
|
|
408
|
+
|
|
409
|
+
if (years) {
|
|
410
|
+
return years > 1 ? `(${years} anos)` : `(${years} ano)`;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
return months > 1
|
|
414
|
+
? `(${months} meses)`
|
|
415
|
+
: months == 1
|
|
416
|
+
? `(${months} mês)`
|
|
417
|
+
: '';
|
|
418
|
+
},
|
|
419
|
+
languageLevel(level) {
|
|
420
|
+
switch (parseInt(level)) {
|
|
421
|
+
case 1:
|
|
422
|
+
return 'Iniciante';
|
|
423
|
+
case 2:
|
|
424
|
+
return 'Elementar';
|
|
425
|
+
case 3:
|
|
426
|
+
return 'Pré-intermediário';
|
|
427
|
+
case 4:
|
|
428
|
+
return 'Intermediário';
|
|
429
|
+
case 5:
|
|
430
|
+
return 'Intermediário Superior';
|
|
431
|
+
case 6:
|
|
432
|
+
return 'Avançado';
|
|
433
|
+
case 7:
|
|
434
|
+
return 'Fluente';
|
|
435
|
+
default:
|
|
436
|
+
return '';
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
treatPhone(phone) {
|
|
440
|
+
if (phone) {
|
|
441
|
+
if (phone == '0' || phone.length < 9 || !phone) {
|
|
442
|
+
return 'não cadastrado';
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
return phone;
|
|
447
|
+
},
|
|
448
|
+
treatCellphone(cellphone) {
|
|
449
|
+
if (cellphone) {
|
|
450
|
+
if (cellphone == '0' || cellphone.length < 11 || !cellphone) {
|
|
451
|
+
return 'não cadastrado';
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
return cellphone;
|
|
456
|
+
},
|
|
457
|
+
handleGetPrefixes(name = '') {
|
|
458
|
+
return getPrefixes(name);
|
|
459
|
+
},
|
|
460
|
+
treatEndDate(end_month, end_year) {
|
|
461
|
+
if (end_month && end_year) {
|
|
462
|
+
return `${end_month}/${end_year}`;
|
|
463
|
+
}
|
|
464
|
+
return '';
|
|
465
|
+
},
|
|
466
|
+
wordIsLesserThan(word, value = 300) {
|
|
467
|
+
return word && word.length < value;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
};
|
|
471
|
+
</script>
|
|
472
|
+
|
|
473
|
+
<style lang="scss" scoped>
|
|
474
|
+
@import '@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
|
|
475
|
+
|
|
476
|
+
/deep/ .dropdown__content {
|
|
477
|
+
&, .title__content {
|
|
478
|
+
width: 100%;
|
|
479
|
+
height: 100%;
|
|
480
|
+
display: grid;
|
|
481
|
+
place-items: center;
|
|
482
|
+
}
|
|
483
|
+
.title__content.icon {
|
|
484
|
+
grid-template-columns: 1fr 10px;
|
|
485
|
+
flex-direction: row;
|
|
486
|
+
align-items: center;
|
|
487
|
+
justify-content: space-between;
|
|
488
|
+
color: #fff;
|
|
489
|
+
font-weight: 600;
|
|
490
|
+
font-size: 12px;
|
|
491
|
+
margin: 0!important;
|
|
492
|
+
i {
|
|
493
|
+
font-size: 1rem;
|
|
494
|
+
margin-left: 10px;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
/deep/ .search-highlight {
|
|
500
|
+
background: rgb(255, 252, 61);
|
|
501
|
+
color: #000;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.content-middle {
|
|
505
|
+
width: 50%;
|
|
506
|
+
border-right: 1px solid #ececec5c;
|
|
507
|
+
word-break: break-word !important;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.readmore {
|
|
511
|
+
overflow: hidden;
|
|
512
|
+
text-overflow: ellipsis;
|
|
513
|
+
display: -webkit-box;
|
|
514
|
+
-webkit-line-clamp: 3;
|
|
515
|
+
-webkit-box-orient: vertical;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.tools {
|
|
519
|
+
flex-wrap: wrap;
|
|
520
|
+
display: grid;
|
|
521
|
+
align-items: center;
|
|
522
|
+
justify-content: space-between;
|
|
523
|
+
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
|
|
524
|
+
gap: 10px;
|
|
525
|
+
padding-right: 20px;
|
|
526
|
+
button {
|
|
527
|
+
display: flex;
|
|
528
|
+
align-items: center;
|
|
529
|
+
justify-content: center;
|
|
530
|
+
|
|
531
|
+
margin-left: 0!important;
|
|
532
|
+
|
|
533
|
+
height: 29px;
|
|
534
|
+
border: none;
|
|
535
|
+
|
|
536
|
+
background: #5865F2;
|
|
537
|
+
border-radius: 16px;
|
|
538
|
+
color: #fff;
|
|
539
|
+
|
|
540
|
+
font-size: 0.75rem;
|
|
541
|
+
font-weight: 600;
|
|
542
|
+
outline: 0;
|
|
543
|
+
|
|
544
|
+
padding: 0 20px;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.education {
|
|
549
|
+
margin-top: 15px;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.experience {
|
|
553
|
+
.description {
|
|
554
|
+
font-size: 14px;
|
|
555
|
+
color: #62778c;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
a {
|
|
559
|
+
margin-bottom: 1px;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.sub-title {
|
|
564
|
+
margin-bottom: 1px;
|
|
565
|
+
|
|
566
|
+
font-weight: 600;
|
|
567
|
+
font-size: 14px;
|
|
568
|
+
line-height: 21px;
|
|
569
|
+
color: #62778c;
|
|
570
|
+
text-transform: uppercase;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
.info-text {
|
|
574
|
+
margin-bottom: 1px;
|
|
575
|
+
|
|
576
|
+
font-size: 14px;
|
|
577
|
+
color: #8da2b5;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.content-block {
|
|
581
|
+
p {
|
|
582
|
+
font-size: 14px;
|
|
583
|
+
color: #62778c;
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.no-info {
|
|
588
|
+
p {
|
|
589
|
+
font-size: 0.875rem;
|
|
590
|
+
color: #62778c;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
</style>
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
<div class="mt-5">
|
|
164
164
|
<dropzone-file-upload
|
|
165
165
|
disabled
|
|
166
|
-
@error="
|
|
166
|
+
@error="showMessageError"
|
|
167
167
|
ref="MyDropzone"
|
|
168
168
|
:options="dropzoneOptions"
|
|
169
169
|
v-model="fileToUpload"
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
ref="MyReportDropzone"
|
|
197
197
|
v-model="reportFileUpload"
|
|
198
198
|
:options="reportsDropdownzoneOptions"
|
|
199
|
-
@error="
|
|
199
|
+
@error="showMessageError"
|
|
200
200
|
/>
|
|
201
201
|
|
|
202
202
|
<div class="archive-buttons" v-if="reportFileUpload.length > 0">
|
|
@@ -424,11 +424,11 @@ export default {
|
|
|
424
424
|
this.currentRemoveItem = item;
|
|
425
425
|
},
|
|
426
426
|
|
|
427
|
-
|
|
427
|
+
showToast(type, title){
|
|
428
428
|
const Toast = swal.mixin({
|
|
429
429
|
toast: true,
|
|
430
430
|
position: 'top-end',
|
|
431
|
-
|
|
431
|
+
showConfirmButton: false,
|
|
432
432
|
timer: 3100,
|
|
433
433
|
});
|
|
434
434
|
|
|
@@ -438,12 +438,12 @@ export default {
|
|
|
438
438
|
});
|
|
439
439
|
},
|
|
440
440
|
|
|
441
|
-
|
|
441
|
+
showMessageError(file, message) {
|
|
442
442
|
this.isError = true;
|
|
443
443
|
this.$refs.Mydropzone && this.$refs.Mydropzone.removeAllFiles();
|
|
444
444
|
|
|
445
445
|
if (file.status !== 'canceled'){
|
|
446
|
-
this.
|
|
446
|
+
this.showToast('error', message);
|
|
447
447
|
}
|
|
448
448
|
},
|
|
449
449
|
|
|
@@ -455,13 +455,13 @@ export default {
|
|
|
455
455
|
if (!this.isError) {
|
|
456
456
|
this.$emit('save-archive', this.fileToUpload[0], this.userData.id);
|
|
457
457
|
this.$refs.MyDropzone && this.$refs.MyDropzone.removeAllFiles();
|
|
458
|
-
this.
|
|
458
|
+
this.showToast('success', 'Arquivo enviado com sucesso.');
|
|
459
459
|
|
|
460
460
|
} else {
|
|
461
461
|
if (this.fileToUpload.length > 0) {
|
|
462
|
-
this.
|
|
462
|
+
this.showToast('error', 'Arquivo invalido.');
|
|
463
463
|
} else {
|
|
464
|
-
this.
|
|
464
|
+
this.showToast('warning', 'Selecione um arquivo.');
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
},
|
|
@@ -470,13 +470,13 @@ export default {
|
|
|
470
470
|
if (!this.isError) {
|
|
471
471
|
this.$emit('save-report', this.reportFileUpload[0], this.userFolderId);
|
|
472
472
|
this.$refs.MyReportDropzone && this.$refs.MyReportDropzone.removeAllFiles();
|
|
473
|
-
this.
|
|
473
|
+
this.showToast('success', 'Arquivo enviado com sucesso.');
|
|
474
474
|
|
|
475
475
|
} else {
|
|
476
476
|
if (this.reportFileUpload.length > 0) {
|
|
477
|
-
this.
|
|
477
|
+
this.showToast('error', 'Arquivo invalido.');
|
|
478
478
|
} else {
|
|
479
|
-
this.
|
|
479
|
+
this.showToast('warning', 'Selecione um arquivo.');
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
},
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
>
|
|
9
9
|
<template>
|
|
10
10
|
<div class="row d-flex justify-content-between mx-0 user-pdf">
|
|
11
|
-
<img v-if="!isLoading && coverPhoto" :src="coverPhoto" alt="" class="img__color"
|
|
11
|
+
<img v-if="!isLoading && coverPhoto" :src="coverPhoto" alt="" class="img__color" @error="() => coverPhoto = null" />
|
|
12
12
|
<div v-else class="no-cover-photo"></div>
|
|
13
13
|
<slot name="content"></slot>
|
|
14
14
|
</div>
|