@burh/nuxt-core 1.0.405 → 1.0.406
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,64 +1,79 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="input__container__icon">
|
|
3
|
-
<label for="search">
|
|
4
|
-
<i class="fas fa-search"></i>
|
|
5
|
-
</label>
|
|
6
|
-
<input type="text" name="search" id="search" :placeholder="placeholder" v-model="searchModel" @change="$emit('change')">
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
export default {
|
|
12
|
-
name: 'search-input',
|
|
13
|
-
props: {
|
|
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
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="input__container__icon" :class="{ 'input__disabled': disabled }">
|
|
3
|
+
<label for="search">
|
|
4
|
+
<i class="fas fa-search"></i>
|
|
5
|
+
</label>
|
|
6
|
+
<input type="text" name="search" id="search" :disabled="disabled" :placeholder="placeholder" v-model="searchModel" @change="$emit('change')">
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
export default {
|
|
12
|
+
name: 'search-input',
|
|
13
|
+
props: {
|
|
14
|
+
disabled: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: false
|
|
17
|
+
},
|
|
18
|
+
search: String,
|
|
19
|
+
placeholder: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: 'Busque por vaga'
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
data() {
|
|
25
|
+
return {
|
|
26
|
+
searchModel: null
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
mounted() {
|
|
30
|
+
this.searchModel = this.search;
|
|
31
|
+
},
|
|
32
|
+
watch: {
|
|
33
|
+
search(value) {
|
|
34
|
+
this.searchModel = value;
|
|
35
|
+
},
|
|
36
|
+
searchModel(value) {
|
|
37
|
+
this.$emit('search', value);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<style lang="scss" scoped>
|
|
44
|
+
.input__container__icon {
|
|
45
|
+
position: relative;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
border-radius: 100px;
|
|
49
|
+
max-width: 270px;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
border: 1px solid #E9ECEF;
|
|
52
|
+
input {
|
|
53
|
+
background: transparent;
|
|
54
|
+
border: 0;
|
|
55
|
+
outline: none;
|
|
56
|
+
padding: 5px 0;
|
|
57
|
+
width: 100%;
|
|
58
|
+
}
|
|
59
|
+
label {
|
|
60
|
+
margin: 0;
|
|
61
|
+
display: block;
|
|
62
|
+
}
|
|
63
|
+
i {
|
|
64
|
+
padding: 0 10px;
|
|
65
|
+
color: #AEB6BE;
|
|
66
|
+
}
|
|
67
|
+
&.input__disabled {
|
|
68
|
+
background-color: #E9ECEF;
|
|
69
|
+
cursor: not-allowed !important;
|
|
70
|
+
input {
|
|
71
|
+
color: #e9e9e9 !important;
|
|
72
|
+
cursor: not-allowed !important;
|
|
73
|
+
}
|
|
74
|
+
label {
|
|
75
|
+
cursor: not-allowed !important;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
</style>
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
<el-select
|
|
56
56
|
filterable
|
|
57
57
|
required
|
|
58
|
+
clearable
|
|
58
59
|
no-match-text="Nenhuma teste encontrado"
|
|
59
60
|
no-data-text="Nenhum teste encontrado"
|
|
60
61
|
placeholder="Escolha o teste"
|
|
@@ -147,11 +148,19 @@
|
|
|
147
148
|
</div>
|
|
148
149
|
</validation-observer>
|
|
149
150
|
|
|
150
|
-
<div class="col text-
|
|
151
|
-
<
|
|
152
|
-
|
|
153
|
-
|
|
151
|
+
<div class="col text-right">
|
|
152
|
+
<base-button
|
|
153
|
+
class="ml-auto"
|
|
154
|
+
type="primary"
|
|
155
|
+
@click="sendTest"
|
|
156
|
+
:disabled="loading"
|
|
157
|
+
:class="{'is-loading': loading}"
|
|
158
|
+
>
|
|
159
|
+
{{ loading ? 'Enviando' : 'Enviar Teste' }}
|
|
160
|
+
|
|
161
|
+
</base-button>
|
|
154
162
|
</div>
|
|
163
|
+
|
|
155
164
|
</div>
|
|
156
165
|
|
|
157
166
|
<span class="tool tool-close" @click="closeModal">
|
|
@@ -225,8 +234,9 @@ export default {
|
|
|
225
234
|
const testRequest = this.slots
|
|
226
235
|
.filter(filterSlots)
|
|
227
236
|
.map(formatRequest);
|
|
228
|
-
|
|
237
|
+
setTimeout(() => {
|
|
229
238
|
this.$emit('send-test', testRequest);
|
|
239
|
+
this.resetSlots();
|
|
230
240
|
this.$emit('closemodal');
|
|
231
241
|
this.loading = false;
|
|
232
242
|
}, 2000 );
|
|
@@ -236,14 +246,28 @@ export default {
|
|
|
236
246
|
this.categoriesAllowedToSend
|
|
237
247
|
).find(id => id == categoryId);
|
|
238
248
|
return categoryIsAllowToSend ? true : false;
|
|
249
|
+
},
|
|
250
|
+
resetSlots(){
|
|
251
|
+
this.$refs.sendTest && this.$refs.sendTest.reset();
|
|
252
|
+
this.jobid = '',
|
|
253
|
+
this.testid = '';
|
|
254
|
+
this.slots = [
|
|
255
|
+
{
|
|
256
|
+
id: 'first',
|
|
257
|
+
name: '',
|
|
258
|
+
email: ''
|
|
259
|
+
}
|
|
260
|
+
];
|
|
239
261
|
}
|
|
240
262
|
},
|
|
241
263
|
watch: {
|
|
264
|
+
|
|
242
265
|
selectedTest(newValue) {
|
|
243
266
|
this.testid = newValue;
|
|
244
267
|
},
|
|
245
268
|
isModalOpen(newValue) {
|
|
246
269
|
!newValue && this.closeModal();
|
|
270
|
+
this.resetSlots();
|
|
247
271
|
}
|
|
248
272
|
},
|
|
249
273
|
data() {
|
|
@@ -145,11 +145,9 @@
|
|
|
145
145
|
</template>
|
|
146
146
|
|
|
147
147
|
<script>
|
|
148
|
-
import { Select, Option, Checkbox, Tooltip
|
|
148
|
+
import { Select, Option, Checkbox, Tooltip } from 'element-ui';
|
|
149
149
|
import { mask } from 'vue-the-mask';
|
|
150
150
|
import swal from 'sweetalert2';
|
|
151
|
-
import { isConsole } from 'mobile-device-detect';
|
|
152
|
-
import BaseInput from '../../argon-core/Inputs/BaseInput.vue';
|
|
153
151
|
export default {
|
|
154
152
|
directives: { mask },
|
|
155
153
|
name: 'send-sms',
|
|
@@ -276,7 +274,7 @@ export default {
|
|
|
276
274
|
this.allNumbers.push(number);
|
|
277
275
|
this.receiver = '';
|
|
278
276
|
},
|
|
279
|
-
|
|
277
|
+
|
|
280
278
|
deleteNumber(index) {
|
|
281
279
|
this.allNumbers.splice(index, 1);
|
|
282
280
|
},
|