@nixweb/nixloc-ui 0.0.37 → 0.0.38
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 +1 -2
- package/src/component/forms/Botao.vue +7 -3
- package/src/component/layout/BarraFixa.vue +0 -1
- package/src/component/layout/Menu.vue +7 -17
- package/src/component/shared/Paginacao.vue +15 -0
- package/src/component/shared/Registro.vue +6 -1
- package/src/component/shared/Tabela.vue +1 -10
- package/src/component/template/ModeloLista.vue +7 -7
- package/src/store/modulos/generic.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nixweb/nixloc-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.38",
|
|
4
4
|
"description": "Componentes UI",
|
|
5
5
|
"author": "Fábio Ávila <fabio@nixweb.com.br>",
|
|
6
6
|
"private": false,
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
"vue2-editor": "^2.6.6",
|
|
20
20
|
"vue-loading-template": "^1.3.0",
|
|
21
21
|
"vue-moment": "^4.0.0",
|
|
22
|
-
"vue-moment-datepicker": "^1.0.5",
|
|
23
22
|
"vue-multiselect": "^2.1.0",
|
|
24
23
|
"vue-numeric": "^2.4.1",
|
|
25
24
|
"vue-toasted": "^1.1.28",
|
|
@@ -17,8 +17,12 @@
|
|
|
17
17
|
:disabled="desabilitado"
|
|
18
18
|
@click="executar()"
|
|
19
19
|
>
|
|
20
|
-
<i
|
|
21
|
-
|
|
20
|
+
<i
|
|
21
|
+
class="titulo"
|
|
22
|
+
:class="classeIcone"
|
|
23
|
+
v-if="!carregando(this.chave) && classeIcone"
|
|
24
|
+
></i>
|
|
25
|
+
<span v-if="!carregando(this.chave)">{{ titulo }}</span>
|
|
22
26
|
<vue-loading
|
|
23
27
|
v-if="carregando(this.chave)"
|
|
24
28
|
type="bubbles"
|
|
@@ -69,7 +73,7 @@ export default {
|
|
|
69
73
|
}
|
|
70
74
|
|
|
71
75
|
.titulo {
|
|
72
|
-
margin-
|
|
76
|
+
margin-right: 5px;
|
|
73
77
|
}
|
|
74
78
|
|
|
75
79
|
.botao {
|
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
</li>
|
|
33
33
|
</ul>
|
|
34
34
|
</div>
|
|
35
|
-
|
|
36
35
|
<ul id="panel-account" data-mm-title="Conta">
|
|
37
36
|
<li v-for="item in conta" :key="item.titulo">
|
|
38
37
|
<span class="titulo" @click="navegarPara(item.rotaDestino)">{{
|
|
@@ -62,6 +61,10 @@ export default {
|
|
|
62
61
|
new Mmenu(
|
|
63
62
|
document.querySelector("#menu"),
|
|
64
63
|
{
|
|
64
|
+
backButton: {
|
|
65
|
+
close: true,
|
|
66
|
+
},
|
|
67
|
+
|
|
65
68
|
setSelected: {
|
|
66
69
|
hover: true,
|
|
67
70
|
parent: true,
|
|
@@ -74,15 +77,7 @@ export default {
|
|
|
74
77
|
placeholder: "Pesquisar",
|
|
75
78
|
splash: "<p>O que você está procurando?</p>",
|
|
76
79
|
title: "Pesquisar",
|
|
77
|
-
|
|
78
|
-
iconbar: {
|
|
79
|
-
use: "(min-width: 450px)",
|
|
80
|
-
top: ['<a href="/dashboard"><span class="fa fa-home"></span></a>'],
|
|
81
|
-
/* bottom: [
|
|
82
|
-
'<a href="#/"><span class="fa fa-twitter"></span></a>',
|
|
83
|
-
'<a href="#/"><span class="fa fa-facebook"></span></a>',
|
|
84
|
-
'<a href="#/"><span class="fa fa-youtube"></span></a>',
|
|
85
|
-
],*/
|
|
80
|
+
noResults: "Nenhum resultado",
|
|
86
81
|
},
|
|
87
82
|
iconPanels: {
|
|
88
83
|
add: true,
|
|
@@ -90,11 +85,10 @@ export default {
|
|
|
90
85
|
},
|
|
91
86
|
sidebar: {
|
|
92
87
|
collapsed: {
|
|
93
|
-
use:
|
|
88
|
+
use: false,
|
|
94
89
|
},
|
|
95
90
|
expanded: {
|
|
96
|
-
use: "(min-width:
|
|
97
|
-
initial: "closed",
|
|
91
|
+
use: "(min-width: 1000px)",
|
|
98
92
|
},
|
|
99
93
|
},
|
|
100
94
|
navbars: [
|
|
@@ -111,10 +105,6 @@ export default {
|
|
|
111
105
|
{
|
|
112
106
|
content: ["prev", "breadcrumbs", "close"],
|
|
113
107
|
},
|
|
114
|
-
{
|
|
115
|
-
position: "bottom",
|
|
116
|
-
content: [],
|
|
117
|
-
},
|
|
118
108
|
],
|
|
119
109
|
},
|
|
120
110
|
{
|
|
@@ -36,3 +36,18 @@ export default {
|
|
|
36
36
|
},
|
|
37
37
|
};
|
|
38
38
|
</script>
|
|
39
|
+
|
|
40
|
+
<style>
|
|
41
|
+
|
|
42
|
+
.page-item {
|
|
43
|
+
font-size: 13px !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.page-item.active .page-link {
|
|
47
|
+
font-size: 13px !important;
|
|
48
|
+
z-index: 3 !important;
|
|
49
|
+
color: #fff !important;
|
|
50
|
+
background-color: #d98621 !important;
|
|
51
|
+
border-color: #d98621 !important;
|
|
52
|
+
}
|
|
53
|
+
</style>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<b-badge variant="warning">
|
|
7
7
|
<span class="c-total">{{ totalRegistro }}</span>
|
|
8
8
|
</b-badge>
|
|
9
|
-
<span>registros</span>
|
|
9
|
+
<span class="registros">registros</span>
|
|
10
10
|
</span>
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
|
@@ -37,4 +37,9 @@ export default {
|
|
|
37
37
|
color: white;
|
|
38
38
|
font-size: 14px;
|
|
39
39
|
}
|
|
40
|
+
|
|
41
|
+
.registros{
|
|
42
|
+
margin-left: 5px;
|
|
43
|
+
}
|
|
44
|
+
|
|
40
45
|
</style>
|
|
@@ -147,7 +147,7 @@ export default {
|
|
|
147
147
|
...mapActions("generic", ["pdfApi"]),
|
|
148
148
|
selecionar() {
|
|
149
149
|
this.adicionaSelecao([]);
|
|
150
|
-
if (
|
|
150
|
+
if (this.selecionarTodos) {
|
|
151
151
|
for (let i in this.dados) {
|
|
152
152
|
this.selecionados.push(this.dados[i].id);
|
|
153
153
|
}
|
|
@@ -196,11 +196,6 @@ export default {
|
|
|
196
196
|
</script>
|
|
197
197
|
|
|
198
198
|
<style scoped>
|
|
199
|
-
|
|
200
|
-
table {
|
|
201
|
-
border-collapse: initial !important;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
199
|
table tbody tr td {
|
|
205
200
|
max-width: 350px;
|
|
206
201
|
}
|
|
@@ -225,10 +220,6 @@ table tbody tr td {
|
|
|
225
220
|
font-weight: bold;
|
|
226
221
|
}
|
|
227
222
|
|
|
228
|
-
.titulo-margem {
|
|
229
|
-
padding-bottom: 5px;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
223
|
.tabela-numero {
|
|
233
224
|
font-size: 16px;
|
|
234
225
|
font-weight: bold;
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
</b-row>
|
|
14
14
|
<b-row>
|
|
15
15
|
<b-col sm="6">
|
|
16
|
-
<ResumoTabela :resumo="
|
|
16
|
+
<ResumoTabela :resumo="conteudo.resumo" />
|
|
17
17
|
</b-col>
|
|
18
18
|
|
|
19
19
|
<b-col sm="6">
|
|
20
|
-
<Registro :totalRegistro="
|
|
20
|
+
<Registro :totalRegistro="conteudo.totalRegistros" />
|
|
21
21
|
</b-col>
|
|
22
22
|
</b-row>
|
|
23
23
|
<BarraFixa posicao="topo" v-show="selecionados.length > 0">
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
></BarraFixa>
|
|
35
35
|
<Tabela
|
|
36
36
|
:cabecalhoTabela="modeloLista.cabecalhoTabela"
|
|
37
|
-
:dados="
|
|
37
|
+
:dados="conteudo.dados"
|
|
38
38
|
:mostrarChecks="modeloLista.mostrarChecks"
|
|
39
39
|
>
|
|
40
40
|
<div slot="conteudo-botoes-tabela">
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
</Tabela>
|
|
44
44
|
</div>
|
|
45
45
|
<br />
|
|
46
|
-
<Paginacao chave="modeloLista" :totalRegistros="
|
|
46
|
+
<Paginacao chave="modeloLista" :totalRegistros="conteudo.totalRegistros" />
|
|
47
47
|
</div>
|
|
48
48
|
</template>
|
|
49
49
|
|
|
@@ -78,7 +78,7 @@ export default {
|
|
|
78
78
|
},
|
|
79
79
|
data() {
|
|
80
80
|
return {
|
|
81
|
-
|
|
81
|
+
conteudo: {
|
|
82
82
|
dados: [],
|
|
83
83
|
totalRegistros: 0,
|
|
84
84
|
},
|
|
@@ -130,7 +130,7 @@ export default {
|
|
|
130
130
|
let obj = { ...this.baseParams, ...this.propsParams };
|
|
131
131
|
let params = { url: this.modeloLista.urlGetApi, obj: obj };
|
|
132
132
|
this.getApi(params).then((response) => {
|
|
133
|
-
this.
|
|
133
|
+
this.conteudo = response.conteudo;
|
|
134
134
|
this.removeCarregando(["painel", "pesquisar", "limpar"]);
|
|
135
135
|
});
|
|
136
136
|
},
|
|
@@ -151,7 +151,7 @@ export default {
|
|
|
151
151
|
watch: {
|
|
152
152
|
metodoExecutadoApi: function (value) {
|
|
153
153
|
if (value != "obterTodosApi" && value != "" && value != "escolherApi") {
|
|
154
|
-
this.obterTodos();
|
|
154
|
+
// this.obterTodos();
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
buscouPesquisa: function () {
|
|
@@ -202,7 +202,7 @@ export default {
|
|
|
202
202
|
params: params.obj,
|
|
203
203
|
headers: new Token().tokenHeaders(),
|
|
204
204
|
})
|
|
205
|
-
.then((response) => {
|
|
205
|
+
.then((response) => {
|
|
206
206
|
if (response.data.sucesso) {
|
|
207
207
|
context.commit('insereMetodoExecutadoApi', params.MetodoExecutadoApi);
|
|
208
208
|
context.commit('removeNotificacao');
|