@nixweb/nixloc-ui 0.0.78 → 0.0.79
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
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
/>
|
|
66
66
|
</div>
|
|
67
67
|
</div>
|
|
68
|
+
<div slot="noOptions">Lista está vazia</div>
|
|
68
69
|
<div slot="noResult">Nenhum registro encontrado</div>
|
|
69
70
|
</multiselect>
|
|
70
71
|
<div v-if="formSujo">
|
|
@@ -131,7 +132,6 @@ export default {
|
|
|
131
132
|
dados: [],
|
|
132
133
|
totalRegistros: 0,
|
|
133
134
|
baseParams: {
|
|
134
|
-
url: this.url,
|
|
135
135
|
pesquisa: "",
|
|
136
136
|
paginaAtual: 1,
|
|
137
137
|
totalPorPagina: 20,
|
|
@@ -157,7 +157,7 @@ export default {
|
|
|
157
157
|
...mapGetters("generic", ["mostrarVodal"]),
|
|
158
158
|
},
|
|
159
159
|
methods: {
|
|
160
|
-
...mapActions("generic", ["
|
|
160
|
+
...mapActions("generic", ["getApi"]),
|
|
161
161
|
...mapMutations("generic", [
|
|
162
162
|
"removeCarregando",
|
|
163
163
|
"abrirVodal",
|
|
@@ -189,15 +189,16 @@ export default {
|
|
|
189
189
|
if (value.conteudo) return `${value.conteudo}`;
|
|
190
190
|
},
|
|
191
191
|
obterTodos() {
|
|
192
|
-
let
|
|
192
|
+
let obj = { ...this.baseParams, ...this.propsParams };
|
|
193
|
+
let params = { url: this.url, obj: obj };
|
|
193
194
|
this.carregando = true;
|
|
194
|
-
this.
|
|
195
|
-
this.totalRegistros = response.totalRegistros;
|
|
195
|
+
this.getApi(params).then((response) => {
|
|
196
|
+
this.totalRegistros = response.conteudo.totalRegistros;
|
|
196
197
|
let self = this;
|
|
197
198
|
if (this.baseParams.paginaAtual == 1) {
|
|
198
199
|
this.dados = [];
|
|
199
200
|
}
|
|
200
|
-
response.dados.map(function (value, key) {
|
|
201
|
+
response.conteudo.dados.map(function (value, key) {
|
|
201
202
|
self.dados.push(value);
|
|
202
203
|
});
|
|
203
204
|
this.carregando = false;
|
|
@@ -39,13 +39,13 @@ export default {
|
|
|
39
39
|
|
|
40
40
|
<style scoped>
|
|
41
41
|
.barra {
|
|
42
|
-
background-color:
|
|
42
|
+
background-color: #fafafc;
|
|
43
43
|
position: fixed;
|
|
44
44
|
width: 100%;
|
|
45
45
|
overflow: hidden;
|
|
46
46
|
z-index: 20;
|
|
47
47
|
padding: 18px;
|
|
48
|
-
margin-left:
|
|
48
|
+
margin-left: 220px;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.tamanho {
|
|
@@ -65,5 +65,4 @@ export default {
|
|
|
65
65
|
bottom: 0px;
|
|
66
66
|
border-top: 1px solid #e1e1e2;
|
|
67
67
|
}
|
|
68
|
-
|
|
69
68
|
</style>
|
|
@@ -158,13 +158,13 @@ export default {
|
|
|
158
158
|
|
|
159
159
|
.titulo {
|
|
160
160
|
margin-left: 14px;
|
|
161
|
-
font-size:
|
|
161
|
+
font-size: 15px;
|
|
162
162
|
font-weight: 400;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
.titulo-sub {
|
|
166
166
|
margin-left: 5px;
|
|
167
|
-
font-weight:
|
|
167
|
+
font-weight: 400;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
.sub-titulo {
|