@burh/nuxt-core 1.0.350 → 1.0.352
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/components/burh-ds/Curriculum/UserCurriculum/UserCvLeftSide.vue +356 -356
- package/components/burh-ds/Curriculum/UserCurriculum/UserCvMiddle.vue +1 -1
- package/components/burh-ds/Curriculum/UserCurriculum/UserCvRightSide.vue +2 -2
- package/components/layouts/burh-ds/navbar/AppNavbar.vue +7 -1
- package/package.json +1 -1
|
@@ -1,227 +1,227 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
2
|
+
<div class="bg-white content-left">
|
|
3
|
+
<div class="profile w-100 text-center">
|
|
4
|
+
<div class="avatar">
|
|
5
|
+
<img
|
|
6
|
+
v-if="userData.urlAvatar"
|
|
7
|
+
:src="userData.urlAvatar"
|
|
8
|
+
:alt="userData.name"
|
|
9
|
+
/>
|
|
10
|
+
<div v-else class="no-image">
|
|
11
|
+
{{ userData.name }}
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<h5
|
|
16
|
+
class="mb-0 text-wrap"
|
|
17
|
+
:class="{ 'mt-5': !userData.urlAvatar }"
|
|
18
|
+
v-html="
|
|
19
|
+
highlightText(
|
|
20
|
+
search,
|
|
21
|
+
`${userData.name} ${userData.last_name}`
|
|
22
|
+
)
|
|
23
|
+
"
|
|
24
|
+
></h5>
|
|
25
|
+
|
|
26
|
+
<p
|
|
27
|
+
class="user-info"
|
|
28
|
+
v-if="userData.user_experience.length > 0"
|
|
29
|
+
v-html="
|
|
30
|
+
highlightText(
|
|
31
|
+
search,
|
|
32
|
+
`${userData.user_experience[0].job_title} em ${userData.user_experience[0].company}`
|
|
33
|
+
)
|
|
34
|
+
"
|
|
35
|
+
></p>
|
|
36
|
+
|
|
37
|
+
<span v-if="userData.user_address">
|
|
38
|
+
<i class="fas fa-map-marker-alt"></i>
|
|
39
|
+
{{ userData.user_address.city_name }} -
|
|
40
|
+
{{ userData.user_address.region_code }}
|
|
41
|
+
</span>
|
|
42
|
+
<br />
|
|
43
|
+
<span
|
|
44
|
+
v-if="
|
|
45
|
+
userData.user_complementary_information.wage_pretension > 1
|
|
46
|
+
"
|
|
47
|
+
>Pretensão salarial:
|
|
48
|
+
{{
|
|
49
|
+
userData.user_complementary_information.wage_pretension
|
|
50
|
+
| convertMoney
|
|
51
|
+
}}</span
|
|
52
|
+
>
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
<div
|
|
56
|
+
class="deficiency title-block mt-3 ml-4"
|
|
57
|
+
v-if="userData.user_deficiency"
|
|
58
|
+
>
|
|
59
|
+
<div class="d-flex align-items-center">
|
|
60
|
+
<i class="fas fa-wheelchair"></i>
|
|
61
|
+
<h6 class="mb-0 ml-2">Deficiência</h6>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="line"></div>
|
|
64
|
+
<p>
|
|
65
|
+
{{ userData.user_deficiency.deficiency_id | allDeficiencies }} -
|
|
66
|
+
{{ userData.user_deficiency.cid }}
|
|
67
|
+
</p>
|
|
68
|
+
|
|
69
|
+
<p v-show="userData.user_deficiency.appliance">
|
|
70
|
+
Acessório: {{ userData.user_deficiency.appliance }}
|
|
71
|
+
</p>
|
|
72
|
+
|
|
73
|
+
<p v-show="userData.user_deficiency.apparatus">
|
|
74
|
+
Necessidade: {{ userData.user_deficiency.apparatus }}
|
|
75
|
+
</p>
|
|
76
|
+
|
|
77
|
+
<p v-show="userData.user_deficiency.course">
|
|
78
|
+
Curso: {{ userData.user_deficiency.course }}
|
|
79
|
+
</p>
|
|
80
|
+
|
|
81
|
+
<p v-show="userData.user_deficiency.note">
|
|
82
|
+
Anotações: {{ userData.user_deficiency.note }}
|
|
83
|
+
</p>
|
|
84
|
+
|
|
85
|
+
<p v-show="userData.user_deficiency.transport === 1">
|
|
86
|
+
Utiliza transporte coletivo
|
|
87
|
+
</p>
|
|
88
|
+
|
|
89
|
+
<p v-show="userData.user_deficiency.vehicle === 1">
|
|
90
|
+
Possuí veículo adaptado
|
|
91
|
+
</p>
|
|
92
|
+
|
|
93
|
+
<p v-show="userData.user_deficiency.escort === 1">
|
|
94
|
+
Precisa de acompanhante
|
|
95
|
+
</p>
|
|
96
|
+
</div>
|
|
97
|
+
|
|
98
|
+
<div
|
|
99
|
+
v-show="userData.user_desired_job.length > 0"
|
|
100
|
+
class="desidered title-block mt-3 ml-4"
|
|
101
|
+
>
|
|
102
|
+
<h6 class="mb-0">Cargos desejados</h6>
|
|
103
|
+
<div class="line"></div>
|
|
104
|
+
|
|
105
|
+
<p
|
|
106
|
+
v-for="(des, index) in userData.user_desired_job"
|
|
107
|
+
:key="`skill-${index}`"
|
|
108
|
+
class="ml-1 mt-1 mb-0 text-capitalize"
|
|
109
|
+
v-html="highlightText(search, des.occupation)"
|
|
110
|
+
></p>
|
|
111
|
+
</div>
|
|
112
|
+
|
|
113
|
+
<div
|
|
114
|
+
v-show="userData.user_language.length > 0"
|
|
115
|
+
class="languages title-block mt-3 ml-4"
|
|
116
|
+
>
|
|
117
|
+
<h6 class="mb-0">Idiomas</h6>
|
|
118
|
+
<div class="line"></div>
|
|
119
|
+
|
|
120
|
+
<p
|
|
121
|
+
class="mb-1 text-capitalize"
|
|
122
|
+
v-for="(lan, index) in userData.user_language"
|
|
123
|
+
:key="index"
|
|
124
|
+
v-html="
|
|
125
|
+
highlightText(
|
|
126
|
+
search,
|
|
127
|
+
`${lan.language[0].name} ${languageLevel(lan.level)}`
|
|
128
|
+
)
|
|
129
|
+
"
|
|
130
|
+
></p>
|
|
131
|
+
</div>
|
|
132
|
+
|
|
133
|
+
<div
|
|
134
|
+
v-show="userData.user_skill.length > 0"
|
|
135
|
+
class="skills title-block ml-4"
|
|
136
|
+
>
|
|
137
|
+
<h6 class="mb-0">Habilidades</h6>
|
|
138
|
+
<div class="line"></div>
|
|
139
|
+
|
|
140
|
+
<p
|
|
141
|
+
v-for="(skill, index) in userData.user_skill"
|
|
142
|
+
:key="`skill-${index}`"
|
|
143
|
+
class="ml-1 mt-1 mb-0 text-capitalize"
|
|
144
|
+
v-html="highlightText(search, skill.skill_word)"
|
|
145
|
+
></p>
|
|
146
|
+
</div>
|
|
147
|
+
|
|
148
|
+
<div class="socials text-center mt-5">
|
|
149
|
+
<a
|
|
150
|
+
:href="baseUrl + '/' + userData.slug.slug"
|
|
151
|
+
class="text-center"
|
|
152
|
+
target="_blank"
|
|
153
|
+
rel="noopener noreferrer"
|
|
154
|
+
>
|
|
155
|
+
<img
|
|
156
|
+
class="no-social"
|
|
157
|
+
src="../../../../assets/images/burhCv.svg"
|
|
158
|
+
alt="Burh"
|
|
159
|
+
/>
|
|
160
|
+
</a>
|
|
161
|
+
<a
|
|
162
|
+
v-show="userData.user_complementary_information.facebook_url"
|
|
163
|
+
:href="userData.user_complementary_information.facebook_url"
|
|
164
|
+
target="_blank"
|
|
165
|
+
class="ml-2"
|
|
166
|
+
rel="noopener noreferrer"
|
|
167
|
+
>
|
|
168
|
+
<img
|
|
169
|
+
class="no-social"
|
|
170
|
+
src="../../../../assets/images/facebookCv.svg"
|
|
171
|
+
alt="Facebook"
|
|
172
|
+
/>
|
|
173
|
+
</a>
|
|
174
|
+
<a
|
|
175
|
+
v-show="userData.user_complementary_information.linkedin_url"
|
|
176
|
+
:href="userData.user_complementary_information.linkedin_url"
|
|
177
|
+
target="_blank"
|
|
178
|
+
class="ml-2"
|
|
179
|
+
rel="noopener noreferrer"
|
|
180
|
+
>
|
|
181
|
+
<img
|
|
182
|
+
class="no-social"
|
|
183
|
+
src="../../../../assets/images/linkedinCv.svg"
|
|
184
|
+
alt="Linkdin"
|
|
185
|
+
/>
|
|
186
|
+
</a>
|
|
187
|
+
<a
|
|
188
|
+
v-show="userData.user_complementary_information.website"
|
|
189
|
+
:href="userData.user_complementary_information.website"
|
|
190
|
+
class="text-center ml-2"
|
|
191
|
+
target="_blank"
|
|
192
|
+
rel="noopener noreferrer"
|
|
193
|
+
>
|
|
194
|
+
<img
|
|
195
|
+
class="no-social"
|
|
196
|
+
src="../../../../assets/images/webCv.svg"
|
|
197
|
+
alt="Web"
|
|
198
|
+
/>
|
|
199
|
+
</a>
|
|
200
|
+
</div>
|
|
201
|
+
|
|
202
|
+
<div class="burh-code text-center mt-4">
|
|
203
|
+
<vue-qrcode
|
|
204
|
+
:value="baseUrl + '/' + userData.slug.slug"
|
|
205
|
+
:options="{ width: 98, height: 98 }"
|
|
206
|
+
class="border qr-code"
|
|
207
|
+
></vue-qrcode>
|
|
208
|
+
<p class="mb-0">Código BURH</p>
|
|
209
|
+
<span class="qr-id">{{ userData.id }}</span
|
|
210
|
+
><br />
|
|
211
|
+
<div class="teste-block">
|
|
212
|
+
<span class="font-weight-normal mt-2 d-block" v-if="!isLocked"
|
|
213
|
+
>Data de atualização:
|
|
214
|
+
{{ $moment(userData.updated_at).format('DD/MM/YYYY H:mm') }}
|
|
215
|
+
<!-- <template v-if="isLocked" @click="$emit('open-contact', isLocked)">
|
|
216
216
|
<i class="fa fa-lock"></i>
|
|
217
217
|
</template>
|
|
218
218
|
<template v-else>
|
|
219
219
|
{{$moment(userData.updated_at).format('DD/MM/YYYY H:mm')}}
|
|
220
220
|
</template> -->
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
221
|
+
</span>
|
|
222
|
+
</div>
|
|
223
|
+
</div>
|
|
224
|
+
</div>
|
|
225
225
|
</template>
|
|
226
226
|
|
|
227
227
|
<script>
|
|
@@ -230,144 +230,144 @@ import VueQrcode from '@chenfengyuan/vue-qrcode';
|
|
|
230
230
|
import swal from 'sweetalert2';
|
|
231
231
|
|
|
232
232
|
export default {
|
|
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
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
233
|
+
name: 'user-cv-left-side',
|
|
234
|
+
components: {
|
|
235
|
+
VueQrcode
|
|
236
|
+
},
|
|
237
|
+
computed: {
|
|
238
|
+
currentCompany() {
|
|
239
|
+
return this.$store.state.company.currentCompany;
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
props: {
|
|
243
|
+
userData: Object,
|
|
244
|
+
baseUrl: String,
|
|
245
|
+
search: {
|
|
246
|
+
type: String,
|
|
247
|
+
default: ''
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
data() {
|
|
251
|
+
return {
|
|
252
|
+
isLocked: !this.companyHasProduct(
|
|
253
|
+
this.$store.state.loja && this.$store.state.loja.showableProducts && this.$store.state.loja.showableProducts['BUSCA_AVANCADA'] || false
|
|
254
|
+
)
|
|
255
|
+
};
|
|
256
|
+
},
|
|
257
|
+
methods: {
|
|
258
|
+
highlightText(search, text) {
|
|
259
|
+
if (search.length < 2) return text;
|
|
260
|
+
|
|
261
|
+
const regex = new RegExp(search.toLowerCase(), 'gmi');
|
|
262
|
+
return String(text || '').replace(
|
|
263
|
+
regex,
|
|
264
|
+
`<span class="search-highlight">${search}</span>`
|
|
265
|
+
);
|
|
266
|
+
},
|
|
267
|
+
getTime(
|
|
268
|
+
{ start_year = null, end_year = null, start_month, end_month },
|
|
269
|
+
textHappening = 'Cursando'
|
|
270
|
+
) {
|
|
271
|
+
const isHappening = !end_month && !end_year;
|
|
272
|
+
|
|
273
|
+
if (isHappening) {
|
|
274
|
+
return textHappening;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
const dateInitial = this.$moment(
|
|
278
|
+
['1', start_month.toString(), start_year.toString()],
|
|
279
|
+
'DD/MM/YYYY'
|
|
280
|
+
);
|
|
281
|
+
const dateDone = this.$moment(
|
|
282
|
+
['1', end_month.toString(), end_year.toString()],
|
|
283
|
+
'DD/MM/YYYY'
|
|
284
|
+
);
|
|
285
|
+
const diffDuration = this.$moment.duration(
|
|
286
|
+
dateDone.diff(dateInitial)
|
|
287
|
+
);
|
|
288
|
+
const years = diffDuration.years();
|
|
289
|
+
const months = diffDuration.months();
|
|
290
|
+
|
|
291
|
+
if (years) {
|
|
292
|
+
return years > 1 ? `(${years} anos)` : `(${years} ano)`;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
return months > 1
|
|
296
|
+
? `(${months} meses)`
|
|
297
|
+
: months == 1
|
|
298
|
+
? `(${months} mês)`
|
|
299
|
+
: '';
|
|
300
|
+
},
|
|
301
|
+
languageLevel(level) {
|
|
302
|
+
switch (parseInt(level)) {
|
|
303
|
+
case 1:
|
|
304
|
+
return 'Iniciante';
|
|
305
|
+
case 2:
|
|
306
|
+
return 'Elementar';
|
|
307
|
+
case 3:
|
|
308
|
+
return 'Pré-intermediário';
|
|
309
|
+
case 4:
|
|
310
|
+
return 'Intermediário';
|
|
311
|
+
case 5:
|
|
312
|
+
return 'Intermediário Superior';
|
|
313
|
+
case 6:
|
|
314
|
+
return 'Avançado';
|
|
315
|
+
case 7:
|
|
316
|
+
return 'Fluente';
|
|
317
|
+
default:
|
|
318
|
+
return '';
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
treatPhone(phone) {
|
|
322
|
+
if (phone) {
|
|
323
|
+
if (phone == '0' || phone.length < 9 || !phone) {
|
|
324
|
+
return 'não cadastrado';
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
return phone;
|
|
329
|
+
},
|
|
330
|
+
treatCellphone(cellphone) {
|
|
331
|
+
if (cellphone) {
|
|
332
|
+
if (cellphone == '0' || cellphone.length < 11 || !cellphone) {
|
|
333
|
+
return 'não cadastrado';
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
return cellphone;
|
|
338
|
+
},
|
|
339
|
+
handleGetPrefixes(name = '') {
|
|
340
|
+
return getPrefixes(name);
|
|
341
|
+
},
|
|
342
|
+
treatEndDate(end_month, end_year) {
|
|
343
|
+
if (end_month && end_year) {
|
|
344
|
+
return `${end_month}/${end_year}`;
|
|
345
|
+
}
|
|
346
|
+
return '';
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
filters: {
|
|
350
|
+
allDeficiencies(id) {
|
|
351
|
+
const typeDeficiency = {
|
|
352
|
+
1: 'Deficiência Física',
|
|
353
|
+
2: 'Deficiência Visual',
|
|
354
|
+
3: 'Deficiência Mental',
|
|
355
|
+
4: 'Deficiência Auditiva',
|
|
356
|
+
5: 'Deficiência Fonológica',
|
|
357
|
+
6: 'Deficiência Múltipla'
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
return typeDeficiency[id] || '-';
|
|
361
|
+
},
|
|
362
|
+
convertMoney(money) {
|
|
363
|
+
let moneyAux = parseFloat(money);
|
|
364
|
+
let m = moneyAux.toLocaleString('pt-BR', {
|
|
365
|
+
style: 'currency',
|
|
366
|
+
currency: 'BRL'
|
|
367
|
+
});
|
|
368
|
+
return m;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
371
|
};
|
|
372
372
|
</script>
|
|
373
373
|
|
|
@@ -218,7 +218,7 @@ export default {
|
|
|
218
218
|
data() {
|
|
219
219
|
return {
|
|
220
220
|
isLocked: !this.companyHasProduct(
|
|
221
|
-
this.$store.state.loja.showableProducts['INTERACAO_USUARIO']
|
|
221
|
+
this.$store.state.loja && this.$store.state.loja.showableProducts && this.$store.state.loja.showableProducts['INTERACAO_USUARIO'] || false
|
|
222
222
|
)
|
|
223
223
|
};
|
|
224
224
|
},
|
|
@@ -226,7 +226,7 @@ export default {
|
|
|
226
226
|
acceptedFiles: 'image/*, application/pdf',
|
|
227
227
|
},
|
|
228
228
|
isLocked: !this.companyHasProduct(
|
|
229
|
-
this.$store.state.loja.showableProducts['HISTORICO_USUARIO']
|
|
229
|
+
this.$store.state.loja && this.$store.state.loja.showableProducts && this.$store.state.loja.showableProducts['HISTORICO_USUARIO'] || false
|
|
230
230
|
),
|
|
231
231
|
};
|
|
232
232
|
},
|
|
@@ -317,7 +317,7 @@ export default {
|
|
|
317
317
|
text: `Recebeu o teste ${x.test.name.toUpperCase()}`
|
|
318
318
|
};
|
|
319
319
|
}
|
|
320
|
-
|
|
320
|
+
|
|
321
321
|
});
|
|
322
322
|
let discs = this.userData.solides.map(x => ({
|
|
323
323
|
date: x.end,
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
<a
|
|
19
19
|
v-if="!disabledLinks"
|
|
20
|
+
v-show="!isCompany"
|
|
20
21
|
@click="$emit('to-home')"
|
|
21
22
|
class="btn btn-link text-primary cursor-pointer"
|
|
22
23
|
>
|
|
@@ -54,7 +55,12 @@ export default {
|
|
|
54
55
|
showableProducts: Object,
|
|
55
56
|
activeProducts: Array,
|
|
56
57
|
gridApps: Array,
|
|
57
|
-
disabledLinks: Boolean
|
|
58
|
+
disabledLinks: Boolean,
|
|
59
|
+
isCompany: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: false,
|
|
62
|
+
description: 'Verify company for share buffer'
|
|
63
|
+
}
|
|
58
64
|
},
|
|
59
65
|
data() {
|
|
60
66
|
return {
|