@burh/nuxt-core 1.0.409 → 1.0.411
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/assets/images/icons/icon5.svg +3 -3
- package/assets/images/icons/icon6.svg +3 -3
- package/assets/sass/burh-ds/_global.scss +324 -324
- package/assets/sass/burh-ds/atoms/_forms.scss +21 -19
- package/assets/sass/burh-ds/content/_interface-spa.scss +306 -306
- package/assets/sass/burh-ds/content/_main-content.scss +25 -25
- package/components/argon-core/BaseDropdown.vue +114 -114
- package/components/argon-core/LoadingPanel.vue +26 -26
- package/components/burh-ds/Cards/BaseCard.vue +194 -194
- package/components/burh-ds/Cards/FeatureBusinessCard.vue +74 -74
- package/components/burh-ds/Cards/PerformanceCard.vue +81 -81
- package/components/burh-ds/Curriculum/UserCurriculum/UserCvRightSide.vue +18 -2
- package/components/burh-ds/Curriculum/UserCurriculum/UserCvRightSideNotAuth.vue +379 -379
- package/components/burh-ds/Filters/BaseFilterContainer.vue +91 -91
- package/components/burh-ds/Headings/AppHeader.vue +222 -222
- package/components/burh-ds/Modals/AddCustomerModal.vue +5 -46
- package/components/burh-ds/Modals/AddMember.vue +5 -48
- package/components/burh-ds/Modals/AddRoleModal.vue +4 -47
- package/components/burh-ds/Modals/AppConfigModal.vue +326 -326
- package/components/burh-ds/Modals/NewUserModal.vue +87 -87
- package/components/burh-ds/Modals/PlanModal.vue +133 -172
- package/components/burh-ds/Modals/RequestModal.vue +206 -247
- package/components/burh-ds/Modals/SendTest.vue +7 -43
- package/components/burh-ds/Modals/SharedModal.vue +7 -50
- package/components/burh-ds/Modals/UniversalShareModal.vue +7 -50
- package/components/burh-ds/Modals/UniversalWhatsappModal.vue +5 -53
- package/components/burh-ds/Modals/WhatsappModal.vue +79 -127
- package/components/burh-ds/Skeleton/BaseCardUniversity.vue +79 -79
- package/components/burh-ds/Skeleton/BaseCardUser.vue +84 -84
- package/components/burh-ds/Skeleton/BaseCourseInfo.vue +71 -71
- package/components/burh-ds/Skeleton/Cards.vue +86 -86
- package/components/burh-ds/Skeleton/SkeletonAnimate.vue +96 -96
- package/components/burh-ds/Tabs/TesteTab.vue +108 -108
- package/components/layouts/burh-ds/navbar/PublicNavbar.vue +168 -168
- package/environment.js +221 -221
- package/nuxt.config.js +207 -207
- package/package.json +1 -1
- package/plugins/vClickOutside.js +4 -4
|
@@ -1,346 +1,346 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
<modal
|
|
3
|
+
:show.sync="openModal"
|
|
4
|
+
modalContentClasses="container-fluid"
|
|
5
|
+
headerClasses="row px-4 pt-5"
|
|
6
|
+
bodyClasses="row px-4"
|
|
7
|
+
size="lg"
|
|
8
|
+
class="modal"
|
|
9
|
+
>
|
|
10
|
+
<template slot="">
|
|
11
|
+
<div class="pl-3 mt-5 text-right">
|
|
12
|
+
<h2 class="display-4">{{ title }}</h2>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
16
|
+
<validation-observer ref="appConfigModal" tag="div">
|
|
17
|
+
<validation-provider
|
|
18
|
+
tag="div"
|
|
19
|
+
class="col-12 mt-5"
|
|
20
|
+
:vid="`name`"
|
|
21
|
+
name="name"
|
|
22
|
+
rules="required"
|
|
23
|
+
v-slot="{ errors }"
|
|
24
|
+
>
|
|
25
|
+
<base-input
|
|
26
|
+
:label="name"
|
|
27
|
+
:placeholder="inputPlaceholders.firstInput"
|
|
28
|
+
required
|
|
29
|
+
v-model="configInfo.title"
|
|
30
|
+
:error="errors[0]"
|
|
31
|
+
:valid="errors.length ? true : false"
|
|
32
|
+
>
|
|
33
|
+
</base-input>
|
|
34
|
+
</validation-provider>
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
36
|
+
<div class="col-12 mb-4">
|
|
37
|
+
<label for="description" class="form-control-label">{{
|
|
38
|
+
textAreaTitle
|
|
39
|
+
}}</label>
|
|
40
|
+
<textarea
|
|
41
|
+
id="description"
|
|
42
|
+
class="form-control"
|
|
43
|
+
:placeholder="inputPlaceholders.secondInput"
|
|
44
|
+
v-model="configInfo.textarea"
|
|
45
|
+
></textarea>
|
|
46
|
+
</div>
|
|
47
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
|
-
|
|
48
|
+
<div
|
|
49
|
+
class="col-12 mb-4 d-flex flex-column"
|
|
50
|
+
v-if="!isCourse && categories && categories.length"
|
|
51
|
+
>
|
|
52
|
+
<label for="category" class="form-control-label"
|
|
53
|
+
>Categoria</label
|
|
54
|
+
>
|
|
55
|
+
<el-select
|
|
56
|
+
filterable
|
|
57
|
+
class="select-danger"
|
|
58
|
+
id="category"
|
|
59
|
+
:empty="'Nenhuma categoria foi encontrada'"
|
|
60
|
+
v-model="configInfo.category"
|
|
61
|
+
:placeholder="''"
|
|
62
|
+
>
|
|
63
|
+
<el-option
|
|
64
|
+
v-for="(category, index) in categories"
|
|
65
|
+
:key="category.id"
|
|
66
|
+
:label="category.name"
|
|
67
|
+
:value="category.id"
|
|
68
|
+
:selected="index == 0 && configInfo.category == null"
|
|
69
|
+
>
|
|
70
|
+
</el-option>
|
|
71
|
+
</el-select>
|
|
72
|
+
</div>
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
74
|
+
<div class="col-12 mb-4" v-if="isCourse">
|
|
75
|
+
<base-input
|
|
76
|
+
v-mask="['##:##:##']"
|
|
77
|
+
:label="'Carga horária'"
|
|
78
|
+
:placeholder="inputPlaceholders.thirdInput"
|
|
79
|
+
v-model="configInfo.workload"
|
|
80
|
+
></base-input>
|
|
81
|
+
</div>
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
<slot name="testes"></slot>
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
<slot name="nota"></slot>
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
<slot name="email"></slot>
|
|
88
88
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
<div class="col-12 mb-4">
|
|
90
|
+
<label class="mb-0 form-control-label mb-3">{{
|
|
91
|
+
buttonAreaTitle
|
|
92
|
+
}}</label>
|
|
93
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
|
-
|
|
94
|
+
<div class="row">
|
|
95
|
+
<div
|
|
96
|
+
class="col-6 col-lg-3"
|
|
97
|
+
v-for="(buttons, index) in buttons"
|
|
98
|
+
:key="index"
|
|
99
|
+
>
|
|
100
|
+
<button
|
|
101
|
+
role="button"
|
|
102
|
+
class="tag tag-outline-primary d-block w-100 buttons"
|
|
103
|
+
:id="'button-' + buttons.id"
|
|
104
|
+
:value="buttons.value"
|
|
105
|
+
:class="
|
|
106
|
+
buttons.id == currentSelectedButton
|
|
107
|
+
? 'active'
|
|
108
|
+
: ''
|
|
109
|
+
"
|
|
110
|
+
@click="timeSelection(buttons.id)"
|
|
111
|
+
>
|
|
112
|
+
<i
|
|
113
|
+
v-if="buttons.id == currentSelectedButton"
|
|
114
|
+
class="fas fa-check mr-1"
|
|
115
|
+
></i>
|
|
116
|
+
<small>{{ buttons.time }}</small>
|
|
117
|
+
</button>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
<div class="col-12 d-flex pb-4">
|
|
122
|
+
<base-button
|
|
123
|
+
size="md"
|
|
124
|
+
type="primary"
|
|
125
|
+
role="button"
|
|
126
|
+
@click="sendConfig()"
|
|
127
|
+
class="ml-auto"
|
|
128
|
+
:disabled="!configInfo.title"
|
|
129
|
+
>{{ configAppButton }}
|
|
130
|
+
</base-button>
|
|
131
|
+
</div>
|
|
132
|
+
</validation-observer>
|
|
133
133
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
134
|
+
<span class="tool tool-close" @click="$emit('close-modal')">
|
|
135
|
+
Fechar
|
|
136
|
+
<font-awesome-icon
|
|
137
|
+
:icon="['fas', 'times']"
|
|
138
|
+
class="text-white ml-1"
|
|
139
|
+
/>
|
|
140
|
+
</span>
|
|
141
|
+
</modal>
|
|
142
142
|
</template>
|
|
143
143
|
<script>
|
|
144
144
|
import { mask } from 'vue-the-mask';
|
|
145
145
|
import { Select, Option } from 'element-ui';
|
|
146
146
|
export default {
|
|
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
|
-
|
|
147
|
+
components: {
|
|
148
|
+
[Select.name]: Select,
|
|
149
|
+
[Option.name]: Option
|
|
150
|
+
},
|
|
151
|
+
directives: { mask },
|
|
152
|
+
data() {
|
|
153
|
+
return {
|
|
154
|
+
configInfo: {
|
|
155
|
+
title: this.titleValue,
|
|
156
|
+
textarea: this.textAreaValue,
|
|
157
|
+
selectedTime: '',
|
|
158
|
+
workload: this.workloadValue,
|
|
159
|
+
category: this.testCategories
|
|
160
|
+
},
|
|
161
|
+
currentSelectedButton: String,
|
|
162
|
+
value: ''
|
|
163
|
+
};
|
|
164
|
+
},
|
|
165
|
+
model: {
|
|
166
|
+
prop: 'show'
|
|
167
|
+
},
|
|
168
|
+
props: {
|
|
169
|
+
isCourse: {
|
|
170
|
+
type: Boolean,
|
|
171
|
+
default: false
|
|
172
|
+
},
|
|
173
|
+
inputPlaceholders: {
|
|
174
|
+
type: Object,
|
|
175
|
+
default: () => ({
|
|
176
|
+
firstInput: 'Insira o nome do teste',
|
|
177
|
+
secondInput: 'Insira a descrição do teste',
|
|
178
|
+
thirdInput: 'Insira a carga horária do curso'
|
|
179
|
+
})
|
|
180
|
+
},
|
|
181
|
+
show: {
|
|
182
|
+
type: Boolean,
|
|
183
|
+
default: false
|
|
184
|
+
},
|
|
185
|
+
name: {
|
|
186
|
+
type: String,
|
|
187
|
+
default: 'Nome'
|
|
188
|
+
},
|
|
189
|
+
defaultButtonSelected: {
|
|
190
|
+
type: Number,
|
|
191
|
+
default: 6
|
|
192
|
+
},
|
|
193
|
+
testId: {
|
|
194
|
+
type: Number,
|
|
195
|
+
default: null
|
|
196
|
+
},
|
|
197
|
+
buttons: {
|
|
198
|
+
type: Array,
|
|
199
|
+
default: () => [
|
|
200
|
+
{ id: '1', time: '5 minutos', value: '00:05:00' },
|
|
201
|
+
{ id: '2', time: '10 minutos', value: '00:10:00' },
|
|
202
|
+
{ id: '3', time: '15 minutos', value: '00:15:00' },
|
|
203
|
+
{ id: '4', time: '30 minutos', value: '00:30:00' },
|
|
204
|
+
{ id: '5', time: '45 minutos', value: '00:45:00' },
|
|
205
|
+
{ id: '6', time: '60 minutos', value: '01:00:00' },
|
|
206
|
+
{ id: '7', time: '2 horas', value: '02:00:00' },
|
|
207
|
+
{ id: '8', time: '8 horas', value: '08:00:00' }
|
|
208
|
+
],
|
|
209
|
+
description: 'Botoes de tempo'
|
|
210
|
+
},
|
|
211
|
+
title: {
|
|
212
|
+
type: String,
|
|
213
|
+
default: 'Criar Teste',
|
|
214
|
+
description: 'Titulo do Modal'
|
|
215
|
+
},
|
|
216
|
+
workloadTitle: {
|
|
217
|
+
type: String,
|
|
218
|
+
default: 'Carga horária',
|
|
219
|
+
description:
|
|
220
220
|
'Carga horária do curso, apenas se o modal for usado para a pagina de cursos'
|
|
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
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
221
|
+
},
|
|
222
|
+
textAreaTitle: {
|
|
223
|
+
type: String,
|
|
224
|
+
default: 'Descrição',
|
|
225
|
+
description: 'Titulo da text area'
|
|
226
|
+
},
|
|
227
|
+
buttonAreaTitle: {
|
|
228
|
+
type: String,
|
|
229
|
+
default: 'Tempo Limite',
|
|
230
|
+
description: 'Titulo da area de botões'
|
|
231
|
+
},
|
|
232
|
+
configAppButton: {
|
|
233
|
+
type: String,
|
|
234
|
+
default: 'Salvar',
|
|
235
|
+
description: 'Botão de envio'
|
|
236
|
+
},
|
|
237
|
+
titleValue: {
|
|
238
|
+
type: String,
|
|
239
|
+
default: ''
|
|
240
|
+
},
|
|
241
|
+
textAreaValue: {
|
|
242
|
+
type: String,
|
|
243
|
+
default: ''
|
|
244
|
+
},
|
|
245
|
+
workloadValue: {
|
|
246
|
+
type: String,
|
|
247
|
+
default: '00:00:00'
|
|
248
|
+
},
|
|
249
|
+
time: {
|
|
250
|
+
type: String,
|
|
251
|
+
default: ''
|
|
252
|
+
},
|
|
253
|
+
testCategories: {
|
|
254
|
+
type: Number,
|
|
255
|
+
default: null
|
|
256
|
+
},
|
|
257
|
+
categories: {
|
|
258
|
+
type: Array,
|
|
259
|
+
default: () => []
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
watch: {
|
|
263
|
+
titleValue(newValue) {
|
|
264
|
+
this.configInfo.title = newValue;
|
|
265
|
+
},
|
|
266
|
+
textAreaValue(newValue) {
|
|
267
|
+
this.configInfo.textarea = newValue;
|
|
268
|
+
},
|
|
269
|
+
workloadValue(newValue) {
|
|
270
|
+
this.configInfo.workload = newValue;
|
|
271
|
+
},
|
|
272
|
+
time(newValue) {
|
|
273
|
+
this.configInfo.selectedTime = newValue;
|
|
274
|
+
},
|
|
275
|
+
testCategories(newValue) {
|
|
276
|
+
this.configInfo.category = newValue;
|
|
277
|
+
},
|
|
278
|
+
show(value) {
|
|
279
|
+
const isCategoryInitialized = this.configInfo.category
|
|
280
|
+
? true
|
|
281
|
+
: false;
|
|
282
|
+
if (value && !this.isCourse && !isCategoryInitialized) {
|
|
283
|
+
this.configInfo.category = this.categories[0].id;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
mounted() {
|
|
288
|
+
this.loadTime();
|
|
289
|
+
},
|
|
290
|
+
computed: {
|
|
291
|
+
openModal: {
|
|
292
|
+
get() {
|
|
293
|
+
return this.show;
|
|
294
|
+
},
|
|
295
|
+
set(show) {
|
|
296
|
+
this.$emit('input', show);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
methods: {
|
|
301
|
+
loadTime() {
|
|
302
|
+
let time = this.buttons.find(e => e.value === this.time);
|
|
303
|
+
if (time != null) {
|
|
304
|
+
this.currentSelectedButton = time.id;
|
|
305
|
+
this.configInfo.selectedTime = this.time;
|
|
306
|
+
} else {
|
|
307
|
+
time = this.buttons.find(
|
|
308
|
+
e => e.id == this.defaultButtonSelected
|
|
309
|
+
);
|
|
310
|
+
this.currentSelectedButton = time.id;
|
|
311
|
+
this.configInfo.selectedTime = time.value;
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
timeSelection(buttonId) {
|
|
315
|
+
let btn = document.getElementById('button-' + buttonId);
|
|
316
|
+
this.configInfo.selectedTime = btn.value;
|
|
317
|
+
this.currentSelectedButton = buttonId;
|
|
318
|
+
},
|
|
319
|
+
async sendConfig() {
|
|
320
|
+
const pass = await this.$refs.appConfigModal.validate();
|
|
321
|
+
if (!pass) {
|
|
322
|
+
return;
|
|
323
|
+
}
|
|
324
|
+
let config;
|
|
325
|
+
if (!this.isCourse) {
|
|
326
|
+
config = {
|
|
327
|
+
title: this.configInfo.title,
|
|
328
|
+
textarea: this.configInfo.textarea,
|
|
329
|
+
selectedTime: this.configInfo.selectedTime,
|
|
330
|
+
category: this.configInfo.category
|
|
331
|
+
};
|
|
332
|
+
} else if (this.isCourse) {
|
|
333
|
+
config = {
|
|
334
|
+
title: this.configInfo.title,
|
|
335
|
+
textarea: this.configInfo.textarea,
|
|
336
|
+
selectedTime: this.configInfo.selectedTime,
|
|
337
|
+
workload: this.configInfo.workload
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
this.$emit('send-config-info', config);
|
|
341
|
+
this.openModal = false;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
344
|
};
|
|
345
345
|
</script>
|
|
346
346
|
<style lang="scss">
|