@nixweb/nixloc-ui 0.0.88 → 0.0.89
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<BarraFixa posicao="rodape" v-show="formSujo">
|
|
3
|
+
<BarraFixa posicao="rodape" v-show="formSujo && !modal.abrir">
|
|
4
4
|
<div>
|
|
5
5
|
<Botao
|
|
6
6
|
chave="cancelarSalvarCancelar"
|
|
@@ -37,6 +37,7 @@ export default {
|
|
|
37
37
|
computed: {
|
|
38
38
|
...mapState("validation", ["formSujo"]),
|
|
39
39
|
...mapGetters("validation", ["formValido"]),
|
|
40
|
+
...mapState("generic", ["modal"]),
|
|
40
41
|
},
|
|
41
42
|
methods: {
|
|
42
43
|
...mapMutations("validation", ["insereFormSujo"]),
|
|
@@ -46,5 +47,10 @@ export default {
|
|
|
46
47
|
this.removeCarregando(["cancelarSalvarCancelar"]);
|
|
47
48
|
},
|
|
48
49
|
},
|
|
50
|
+
watch: {
|
|
51
|
+
"modal.abrir": function (valor) {
|
|
52
|
+
this.insereFormSujo(false);
|
|
53
|
+
},
|
|
54
|
+
},
|
|
49
55
|
};
|
|
50
56
|
</script>
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<ModeloLista
|
|
10
10
|
:modeloLista="modeloLista"
|
|
11
|
+
:propsParam="propsParam"
|
|
11
12
|
:mostrarMoldura="false"
|
|
12
13
|
:mostrarFiltroHorizontal="mostrarFiltroHorizontal"
|
|
13
14
|
:botaoExcluir="botaoExcluir"
|
|
@@ -35,6 +36,7 @@ export default {
|
|
|
35
36
|
components: { Pesquisa, ModeloLista },
|
|
36
37
|
props: {
|
|
37
38
|
modeloLista: Object,
|
|
39
|
+
propsParam: Object,
|
|
38
40
|
mostrarPesquisa: {
|
|
39
41
|
type: Boolean,
|
|
40
42
|
default: true,
|
|
@@ -62,6 +62,7 @@ export default {
|
|
|
62
62
|
name: "ModeloLista",
|
|
63
63
|
props: {
|
|
64
64
|
modeloLista: Object,
|
|
65
|
+
propsParam: Object,
|
|
65
66
|
mostrarMoldura: {
|
|
66
67
|
type: Boolean,
|
|
67
68
|
default: true,
|
|
@@ -97,7 +98,7 @@ export default {
|
|
|
97
98
|
totalPorPagina: 10,
|
|
98
99
|
},
|
|
99
100
|
paramsFiltro: [],
|
|
100
|
-
|
|
101
|
+
filtroDinamico: {},
|
|
101
102
|
};
|
|
102
103
|
},
|
|
103
104
|
created() {
|
|
@@ -137,7 +138,7 @@ export default {
|
|
|
137
138
|
"atualizaCampoPesquisa",
|
|
138
139
|
]),
|
|
139
140
|
obterTodos() {
|
|
140
|
-
let obj = { ...this.baseParams, ...this.
|
|
141
|
+
let obj = { ...this.baseParams, ...this.filtroDinamico, ...this.propsParam };
|
|
141
142
|
let params = { url: this.modeloLista.urlGetApi, obj: obj };
|
|
142
143
|
this.getApi(params).then((response) => {
|
|
143
144
|
this.conteudo = response.conteudo;
|
|
@@ -208,11 +209,11 @@ export default {
|
|
|
208
209
|
}
|
|
209
210
|
}
|
|
210
211
|
|
|
211
|
-
this.
|
|
212
|
+
this.filtroDinamico = result;
|
|
212
213
|
|
|
213
214
|
this.atualizaPaginacao({
|
|
214
215
|
chave: "modeloLista",
|
|
215
|
-
totalPorPagina: this.
|
|
216
|
+
totalPorPagina: this.filtroDinamico.totalPorPagina,
|
|
216
217
|
});
|
|
217
218
|
|
|
218
219
|
this.obterTodos();
|