@nixweb/nixloc-ui 0.0.156 → 0.0.157
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/package.json
CHANGED
|
@@ -55,6 +55,7 @@ export default {
|
|
|
55
55
|
},
|
|
56
56
|
props: {
|
|
57
57
|
legend: [],
|
|
58
|
+
module: String,
|
|
58
59
|
},
|
|
59
60
|
data() {
|
|
60
61
|
return {
|
|
@@ -75,7 +76,13 @@ export default {
|
|
|
75
76
|
...mapGetters("generic", ["groupBy"]),
|
|
76
77
|
...mapState("generic", ["search", "executedSearch", "clearedSearch"]),
|
|
77
78
|
grouped() {
|
|
78
|
-
|
|
79
|
+
let legend = [];
|
|
80
|
+
this.legendLocal.forEach((item) => {
|
|
81
|
+
if (item.showModule.includes(this.module) || item.showModule == "all")
|
|
82
|
+
legend.push(item);
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
var list = this.groupBy({ array: legend, key: "groupName" });
|
|
79
86
|
return list;
|
|
80
87
|
},
|
|
81
88
|
},
|
|
@@ -80,8 +80,11 @@ export default {
|
|
|
80
80
|
this.$emit("input", value);
|
|
81
81
|
},
|
|
82
82
|
execute() {
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
let self = this;
|
|
84
|
+
setTimeout(function () {
|
|
85
|
+
self.removeLoading(["btnClickedNext"]);
|
|
86
|
+
if (self.clickedNext) self.clickedNext();
|
|
87
|
+
}, 350);
|
|
85
88
|
},
|
|
86
89
|
},
|
|
87
90
|
computed: {
|
|
@@ -123,7 +126,7 @@ export default {
|
|
|
123
126
|
|
|
124
127
|
.selected {
|
|
125
128
|
background-color: white;
|
|
126
|
-
border-color: #
|
|
129
|
+
border-color: #4680a5;
|
|
127
130
|
}
|
|
128
131
|
|
|
129
132
|
.icon {
|
|
@@ -23,7 +23,7 @@ export default {
|
|
|
23
23
|
type: "success",
|
|
24
24
|
});
|
|
25
25
|
if (value.type == "postApiError" || value.type == "putApiErro") {
|
|
26
|
-
this.$toasted.show("
|
|
26
|
+
this.$toasted.show("Não foi possível adicionar/modificar", {
|
|
27
27
|
type: "error",
|
|
28
28
|
});
|
|
29
29
|
this.voltarParaTopo();
|
|
@@ -34,12 +34,27 @@ export default {
|
|
|
34
34
|
type: "success",
|
|
35
35
|
});
|
|
36
36
|
if (value.type == "removerTodosApiErro") {
|
|
37
|
-
this.$toasted.show("
|
|
37
|
+
this.$toasted.show("Não foi possível remover", {
|
|
38
|
+
type: "error",
|
|
39
|
+
});
|
|
40
|
+
this.voltarParaTopo();
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (value.type == "noPermission") {
|
|
44
|
+
this.$toasted.show("Usuário sem permissão", {
|
|
38
45
|
type: "error",
|
|
39
46
|
});
|
|
40
47
|
this.voltarParaTopo();
|
|
41
48
|
}
|
|
49
|
+
|
|
42
50
|
if (value.type == "falhaGenerica") {
|
|
51
|
+
this.$toasted.show("Ops! Falha de servidor", {
|
|
52
|
+
type: "error",
|
|
53
|
+
});
|
|
54
|
+
this.voltarParaTopo();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (value.type == "messageError") {
|
|
43
58
|
this.$toasted.show("Ops! Algo deu errado", {
|
|
44
59
|
type: "error",
|
|
45
60
|
});
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<div class="side-by-side">
|
|
50
50
|
<Button
|
|
51
51
|
key="showModalLegend"
|
|
52
|
-
title="Parâmetros
|
|
52
|
+
title="Parâmetros"
|
|
53
53
|
type="info"
|
|
54
54
|
classIcon="fas fa-book-reader"
|
|
55
55
|
size="small"
|
|
@@ -84,7 +84,11 @@
|
|
|
84
84
|
<slot></slot>
|
|
85
85
|
</Modal>
|
|
86
86
|
<Modal title="Parâmetros" :width="1100" v-show="showModal('legenda')">
|
|
87
|
-
<ParameterLegend
|
|
87
|
+
<ParameterLegend
|
|
88
|
+
v-show="modal.open"
|
|
89
|
+
:legend="parameterLegend"
|
|
90
|
+
:module="module"
|
|
91
|
+
/>
|
|
88
92
|
</Modal>
|
|
89
93
|
<Modal title="Editor de Código" :width="900" v-if="showModal('code')">
|
|
90
94
|
<CodeEditor v-if="modal.open" />
|
|
@@ -167,6 +171,7 @@ export default {
|
|
|
167
171
|
panel: Object,
|
|
168
172
|
parameterExemple: Object,
|
|
169
173
|
parameterLegend: Array,
|
|
174
|
+
module: String,
|
|
170
175
|
},
|
|
171
176
|
data() {
|
|
172
177
|
return {
|
|
@@ -102,6 +102,7 @@ export default {
|
|
|
102
102
|
let isPayment = th.innerText.includes("t.pagamentoLocacao");
|
|
103
103
|
let isPeriod = th.innerText.includes("t.periodoLocacao");
|
|
104
104
|
let isProduct = th.innerText.includes("t.produtoLocacao");
|
|
105
|
+
let isInvoice = th.innerText.includes("t.produtoFatura");
|
|
105
106
|
let isGrouped = th.innerText.includes("t.produtoAgrupado");
|
|
106
107
|
let isMoviment = th.innerText.includes("t.produtoMovimentacao");
|
|
107
108
|
let isCustumerAddress = th.innerText.includes("t.enderecoCliente");
|
|
@@ -111,6 +112,9 @@ export default {
|
|
|
111
112
|
if (isProduct) {
|
|
112
113
|
obj.vForSimple = "v-for='produto in d.itensLocacao'";
|
|
113
114
|
config.push(obj);
|
|
115
|
+
} else if (isInvoice) {
|
|
116
|
+
obj.vForSimple = "v-for='produto in d.itensFatura'";
|
|
117
|
+
config.push(obj);
|
|
114
118
|
} else if (isPeriod) {
|
|
115
119
|
obj.vForSimple = "v-for='periodo in d.periodoLocacao'";
|
|
116
120
|
config.push(obj);
|
|
@@ -320,7 +324,7 @@ export default {
|
|
|
320
324
|
} else {
|
|
321
325
|
|
|
322
326
|
context.commit('addNotifications', response.data.notifications)
|
|
323
|
-
context.commit('addToast', '
|
|
327
|
+
context.commit('addToast', 'messageError');
|
|
324
328
|
|
|
325
329
|
return response.data;
|
|
326
330
|
}
|
|
@@ -329,7 +333,7 @@ export default {
|
|
|
329
333
|
if (err.response)
|
|
330
334
|
if (err.response.status === 403) {
|
|
331
335
|
context.commit('addNotifications', [{ message: "Usuário sem permissão para executar esta ação!" }])
|
|
332
|
-
context.commit('addToast', '
|
|
336
|
+
context.commit('addToast', 'noPermission');
|
|
333
337
|
}
|
|
334
338
|
|
|
335
339
|
if (!err.response)
|
|
@@ -353,16 +357,15 @@ export default {
|
|
|
353
357
|
context.commit('validation/removeFormDirty', null, { root: true });
|
|
354
358
|
return response.data;
|
|
355
359
|
} else {
|
|
356
|
-
context.commit('addToast', 'putApiErro');
|
|
357
360
|
context.commit('addNotifications', response.data.notifications)
|
|
358
|
-
|
|
361
|
+
context.commit('addToast', 'messageError');
|
|
359
362
|
return response.data;
|
|
360
363
|
}
|
|
361
364
|
}, (err) => {
|
|
362
365
|
if (err.response)
|
|
363
366
|
if (err.response.status === 403) {
|
|
364
367
|
context.commit('addNotifications', [{ message: "Usuário sem permissão para executar esta ação!" }])
|
|
365
|
-
context.commit('addToast', '
|
|
368
|
+
context.commit('addToast', 'noPermission');
|
|
366
369
|
}
|
|
367
370
|
|
|
368
371
|
if (!err.response)
|
|
@@ -435,7 +438,7 @@ export default {
|
|
|
435
438
|
} else {
|
|
436
439
|
context.commit('addNotifications', response.data.notifications)
|
|
437
440
|
context.commit('addMethodExecutedApi', 'putApiErro');
|
|
438
|
-
context.commit('addToast', '
|
|
441
|
+
context.commit('addToast', 'messageError');
|
|
439
442
|
return response.data;
|
|
440
443
|
}
|
|
441
444
|
|
|
@@ -443,7 +446,7 @@ export default {
|
|
|
443
446
|
if (err.response)
|
|
444
447
|
if (err.response.status === 403) {
|
|
445
448
|
context.commit('addNotifications', [{ message: "Usuário sem permissão para executar esta ação!" }])
|
|
446
|
-
context.commit('addToast', '
|
|
449
|
+
context.commit('addToast', 'noPermission');
|
|
447
450
|
}
|
|
448
451
|
|
|
449
452
|
if (!err.response)
|
|
@@ -471,7 +474,7 @@ export default {
|
|
|
471
474
|
} else {
|
|
472
475
|
context.commit('addNotifications', response.data.notifications)
|
|
473
476
|
context.commit('addMethodExecutedApi', 'deleteAllApiErro');
|
|
474
|
-
context.commit('addToast', '
|
|
477
|
+
context.commit('addToast', 'messageError');
|
|
475
478
|
return response.data;
|
|
476
479
|
}
|
|
477
480
|
|
|
@@ -479,7 +482,7 @@ export default {
|
|
|
479
482
|
if (err.response)
|
|
480
483
|
if (err.response.status === 403) {
|
|
481
484
|
context.commit('addNotifications', [{ message: "Usuário sem permissão para executar esta ação!" }])
|
|
482
|
-
context.commit('addToast', '
|
|
485
|
+
context.commit('addToast', 'noPermission');
|
|
483
486
|
}
|
|
484
487
|
|
|
485
488
|
if (!err.response)
|
|
@@ -503,7 +506,7 @@ export default {
|
|
|
503
506
|
return response.data;
|
|
504
507
|
} else {
|
|
505
508
|
context.commit('addNotifications', response.data.notifications)
|
|
506
|
-
context.commit('addToast', '
|
|
509
|
+
context.commit('addToast', 'messageError');
|
|
507
510
|
return response.data;
|
|
508
511
|
}
|
|
509
512
|
|
|
@@ -511,7 +514,7 @@ export default {
|
|
|
511
514
|
if (err.response)
|
|
512
515
|
if (err.response.status === 403) {
|
|
513
516
|
context.commit('addNotifications', [{ message: "Usuário sem permissão para executar esta ação!" }])
|
|
514
|
-
context.commit('addToast', '
|
|
517
|
+
context.commit('addToast', 'noPermission');
|
|
515
518
|
}
|
|
516
519
|
|
|
517
520
|
if (!err.response)
|
|
@@ -554,8 +557,9 @@ export default {
|
|
|
554
557
|
context.commit('removeNotificarions');
|
|
555
558
|
return response.data;
|
|
556
559
|
} else {
|
|
557
|
-
|
|
560
|
+
|
|
558
561
|
context.commit('addNotifications', response.data.notifications)
|
|
562
|
+
context.commit('addToast', 'messageError');
|
|
559
563
|
|
|
560
564
|
return response.data;
|
|
561
565
|
}
|
|
@@ -563,7 +567,7 @@ export default {
|
|
|
563
567
|
if (err.response)
|
|
564
568
|
if (err.response.status === 403) {
|
|
565
569
|
context.commit('addNotifications', [{ message: "Usuário sem permissão para executar esta ação!" }])
|
|
566
|
-
context.commit('addToast', '
|
|
570
|
+
context.commit('addToast', 'noPermission');
|
|
567
571
|
}
|
|
568
572
|
|
|
569
573
|
if (!err.response)
|
|
@@ -595,7 +599,7 @@ export default {
|
|
|
595
599
|
if (err.response)
|
|
596
600
|
if (err.response.status === 403) {
|
|
597
601
|
context.commit('addNotifications', [{ message: "Usuário sem permissão para executar esta ação!" }])
|
|
598
|
-
context.commit('addToast', '
|
|
602
|
+
context.commit('addToast', 'noPermission');
|
|
599
603
|
}
|
|
600
604
|
|
|
601
605
|
if (!err.response)
|