@nixweb/nixloc-ui 0.0.121 → 0.0.124

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.
Files changed (135) hide show
  1. package/docs/src/component/template/ModeloRelatorioView.drawio +2 -2
  2. package/docs/src/store/modulos/relatorio.drawio +2 -2
  3. package/package.json +77 -77
  4. package/public/styles/app.css +1 -1
  5. package/src/component/forms/{Botao.vue → Button.vue} +53 -57
  6. package/src/component/forms/CheckboxGroup.vue +63 -0
  7. package/src/component/forms/{CheckboxUnico.vue → CheckboxSimple.vue} +8 -8
  8. package/src/component/forms/{Cor.vue → Color.vue} +9 -9
  9. package/src/component/forms/DateTime.vue +55 -55
  10. package/src/component/forms/{BotaoDropdown.vue → Dropdown.vue} +58 -58
  11. package/src/component/forms/EditorHtml.vue +123 -0
  12. package/src/component/forms/FileUpload.vue +189 -0
  13. package/src/component/forms/InputDecimal.vue +137 -0
  14. package/src/component/forms/InputNumber.vue +149 -0
  15. package/src/component/forms/InputPassword.vue +135 -0
  16. package/src/component/forms/InputText.vue +157 -0
  17. package/src/component/forms/Modal.vue +15 -15
  18. package/src/component/forms/RadioGroup.vue +50 -0
  19. package/src/component/forms/Select.vue +337 -0
  20. package/src/component/forms/SelectStatic.vue +120 -0
  21. package/src/component/forms/TextArea.vue +126 -0
  22. package/src/component/forms/Toggle.vue +13 -13
  23. package/src/component/layout/{Conta.vue → Account.vue} +28 -28
  24. package/src/component/layout/{Alerta.vue → Alert.vue} +22 -22
  25. package/src/component/layout/Badge.vue +23 -23
  26. package/src/component/layout/{BarraFixa.vue → FixedBar.vue} +16 -16
  27. package/src/component/layout/{Topo.vue → Header.vue} +5 -5
  28. package/src/component/layout/{CarregandoTelaInteira.vue → LoadingFullPage.vue} +3 -3
  29. package/src/component/layout/Menu.vue +66 -66
  30. package/src/component/layout/{Moldura.vue → Molded.vue} +4 -4
  31. package/src/component/layout/Panel.vue +142 -0
  32. package/src/component/layout/Popover.vue +1 -1
  33. package/src/component/layout/{BarraRolagem.vue → Scrollbar.vue} +9 -11
  34. package/src/component/layout/Tag.vue +15 -15
  35. package/src/component/layout/Wizard.vue +3 -3
  36. package/src/component/shared/{CodigoEditor.vue → CodeEditor.vue} +25 -25
  37. package/src/component/shared/Collapse.vue +131 -0
  38. package/src/component/shared/Confirmation.vue +80 -0
  39. package/src/component/shared/{DocumentoEditor.vue → DocumentEditor.vue} +10 -16
  40. package/src/component/shared/{DocumentoPreview.vue → DocumentPreview.vue} +2 -2
  41. package/src/component/shared/ExportExcel.vue +67 -0
  42. package/src/component/shared/{ExportarPDF.vue → ExportPDF.vue} +18 -18
  43. package/src/component/shared/HeaderPrint.vue +36 -0
  44. package/src/component/shared/HorizontalFilter.vue +59 -0
  45. package/src/component/shared/LegendaParametro.vue +22 -22
  46. package/src/component/shared/{Carregando.vue → Loading.vue} +16 -16
  47. package/src/component/shared/LoadingMoreButton.vue +23 -0
  48. package/src/component/shared/Messages.vue +83 -0
  49. package/src/component/shared/{Paginacao.vue → Pagination.vue} +12 -12
  50. package/src/component/shared/ProgressBar.vue +21 -0
  51. package/src/component/shared/{BotaoConsulta.vue → QueryButton.vue} +16 -16
  52. package/src/component/shared/SaveCancel.vue +56 -0
  53. package/src/component/shared/{Pesquisa.vue → Search.vue} +46 -46
  54. package/src/component/shared/Table.vue +243 -0
  55. package/src/component/shared/TableButton.vue +36 -0
  56. package/src/component/shared/{Registro.vue → TableTotalRecords.vue} +7 -7
  57. package/src/component/shared/{ResumoTabela.vue → TableTotalization.vue} +12 -8
  58. package/src/component/shared/Tip.vue +42 -0
  59. package/src/component/shared/Toast.vue +7 -7
  60. package/src/component/shared/{FiltroVertical.vue → VerticalFilter.vue} +24 -24
  61. package/src/component/shared/query-builder/AddRule.vue +187 -0
  62. package/src/component/shared/query-builder/ConvertToOdata.js +80 -0
  63. package/src/component/shared/query-builder/DynamicComponent.vue +107 -0
  64. package/src/component/shared/query-builder/Fields.vue +127 -0
  65. package/src/component/shared/query-builder/ListDynamicComponent.vue +42 -0
  66. package/src/component/shared/query-builder/QueryBuilder.vue +25 -120
  67. package/src/component/shared/query-builder/{Filtro.vue → Rules.vue} +13 -18
  68. package/src/component/shared/query-builder/SelectRule.vue +96 -0
  69. package/src/component/shared/query-builder/Tags.vue +14 -14
  70. package/src/component/shared/query-builder/{Rodape.vue → Totalization.vue} +10 -10
  71. package/src/component/template/AddEditReport.vue +106 -0
  72. package/src/component/template/ListViewWithHandlerData.vue +231 -0
  73. package/src/component/template/ViewTemplateConfiguration.vue +69 -0
  74. package/src/component/template/ViewTemplateDocumentView.vue +227 -0
  75. package/src/component/template/ViewTemplateReportList.vue +230 -0
  76. package/src/component/template/ViewTemplateReportPreview.vue +500 -0
  77. package/src/component/template/ViewTemplateWithSalveCancel.vue +32 -0
  78. package/src/component/template/ViewTemplateWithTable.vue +49 -0
  79. package/src/component/template/model/Report.js +6 -0
  80. package/src/component/value-objects/DadosContato.vue +34 -35
  81. package/src/component/value-objects/DadosPessoa.vue +58 -58
  82. package/src/component/value-objects/Endereco.vue +96 -97
  83. package/src/config/dicas.js +1 -1
  84. package/src/config/token.js +2 -2
  85. package/src/store/modules/generic.js +489 -0
  86. package/src/store/modules/report.js +246 -0
  87. package/src/store/modules/user.js +38 -0
  88. package/src/store/modules/validation.js +39 -0
  89. package/src/store/store.js +4 -4
  90. package/src/component/forms/ArquivoUpload.vue +0 -199
  91. package/src/component/forms/CheckboxMultiplo.vue +0 -63
  92. package/src/component/forms/Decimal.vue +0 -137
  93. package/src/component/forms/Escolher.vue +0 -335
  94. package/src/component/forms/EscolherEstatico.vue +0 -139
  95. package/src/component/forms/Numero.vue +0 -153
  96. package/src/component/forms/Opcoes.vue +0 -51
  97. package/src/component/forms/Senha.vue +0 -139
  98. package/src/component/forms/Texto.vue +0 -161
  99. package/src/component/forms/TextoArea.vue +0 -126
  100. package/src/component/forms/TextoEditor.vue +0 -123
  101. package/src/component/layout/Painel.vue +0 -142
  102. package/src/component/shared/BotaoCarregarMais.vue +0 -23
  103. package/src/component/shared/CabecalhoImpressao.vue +0 -36
  104. package/src/component/shared/Confirmacao.vue +0 -80
  105. package/src/component/shared/Dica.vue +0 -42
  106. package/src/component/shared/EsconderMostrar.vue +0 -131
  107. package/src/component/shared/ExportarExcel.vue +0 -67
  108. package/src/component/shared/FiltroHorizontal.vue +0 -59
  109. package/src/component/shared/Mensagem.vue +0 -86
  110. package/src/component/shared/Progresso.vue +0 -21
  111. package/src/component/shared/SalvarCancelar.vue +0 -56
  112. package/src/component/shared/Tabela.vue +0 -275
  113. package/src/component/shared/TabelaBotao.vue +0 -36
  114. package/src/component/shared/query-builder/Campo.vue +0 -116
  115. package/src/component/shared/query-builder/ConverteParaOdata.js +0 -77
  116. package/src/component/shared/query-builder/components/CustomSelect.vue +0 -115
  117. package/src/component/shared/query-builder/components/QueryBuilderChildren.vue +0 -46
  118. package/src/component/shared/query-builder/components/QueryBuilderGroup.vue +0 -151
  119. package/src/component/shared/query-builder/components/QueryBuilderRule.vue +0 -81
  120. package/src/component/shared/query-builder/layouts/Bootstrap/BootstrapGroup.vue +0 -120
  121. package/src/component/shared/query-builder/layouts/Bootstrap/BootstrapRule.vue +0 -187
  122. package/src/component/shared/query-builder/main.js +0 -81
  123. package/src/component/template/ModeloAdicionarModificarView.vue +0 -32
  124. package/src/component/template/ModeloDocumentoView.vue +0 -227
  125. package/src/component/template/ModeloLista.vue +0 -231
  126. package/src/component/template/ModeloRelatorioListaView.vue +0 -227
  127. package/src/component/template/ModeloRelatorioView.vue +0 -489
  128. package/src/component/template/ModeloSubView.vue +0 -69
  129. package/src/component/template/ModeloView.vue +0 -49
  130. package/src/component/template/Relatorio.js +0 -10
  131. package/src/component/template/RelatorioAdicionarModificar.vue +0 -106
  132. package/src/store/modulos/generic.js +0 -494
  133. package/src/store/modulos/relatorio.js +0 -204
  134. package/src/store/modulos/usuario.js +0 -38
  135. package/src/store/modulos/validation.js +0 -39
@@ -1,489 +0,0 @@
1
- <template>
2
- <div>
3
- <Painel
4
- :modulo="painel.modulo"
5
- :titulo="painel.titulo"
6
- :mostrarFiltroVertical="painel.mostrarFiltroVertical"
7
- :mostrarPesquisa="painel.mostrarPesquisa"
8
- :mostrarBotoes="painel.mostrarBotoes"
9
- >
10
- <div slot="conteudo-principal">
11
- <br />
12
- <div class="div-progresso" v-if="carregando && tamanhoDados > 0">
13
- <Progresso
14
- :texto="`Carregando ${tamanhoDados} registro(s) de ${conteudo.totalRegistros}`"
15
- :valor="tamanhoDados"
16
- :maximo="conteudo.totalRegistros"
17
- tamanho="medium"
18
- />
19
- </div>
20
- <Modal titulo="Salvar" :largura="550" v-show="mostrarModal('salvar')">
21
- <RelatorioAdicionarModificar :modulo="painel.modulo" />
22
- </Modal>
23
- <Moldura>
24
- <div>
25
- <div slot="conteudo-filtro-horizontal">
26
- <b-row>
27
- <b-col sm="6">
28
- <div class="lado-a-lado">
29
- <Botao
30
- chave="buscarRelatorio"
31
- tipo="primario"
32
- titulo="Buscar"
33
- classeIcone="fas fa-file-search"
34
- tamanho="medio"
35
- :desabilitado="invalido || btnDesativado"
36
- :clique="obterTodos"
37
- />
38
- </div>
39
- <div class="lado-a-lado">
40
- <Botao
41
- v-if="!invalido"
42
- chave="salvarRelatorio"
43
- tipo="sucesso"
44
- titulo="Salvar Modelo"
45
- classeIcone="fas fa-save"
46
- :desabilitado="carregando || invalido"
47
- tamanho="pequeno"
48
- :clique="salvarRelatorio"
49
- />
50
- </div>
51
- </b-col>
52
- <b-col class="text-right" sm="6">
53
- <div class="lado-a-lado">
54
- <Botao
55
- chave="abrirCampo"
56
- tipo="info"
57
- titulo="Campos"
58
- classeIcone="fas fa-database"
59
- tamanho="pequeno"
60
- :desabilitado="carregando"
61
- :clique="abrirCampo"
62
- />
63
- </div>
64
- <div class="lado-a-lado">
65
- <Botao
66
- chave="abrirFiltro"
67
- tipo="info"
68
- titulo="Filtros"
69
- classeIcone="fas fa-filter"
70
- tamanho="pequeno"
71
- :desabilitado="carregando"
72
- :clique="abrirFiltro"
73
- />
74
- </div>
75
- </b-col>
76
- </b-row>
77
- <Modal titulo="Filtros" :largura="900" v-show="mostrarModal('filtro')">
78
- <slot name="filtro"></slot>
79
- <br />
80
- <b-row>
81
- <b-col class="text-right" sm="12">
82
- <div class="lado-a-lado">
83
- <Botao
84
- chave="aplicaFiltro"
85
- tipo="primario"
86
- titulo="Aplicar"
87
- classeIcone="fas fa-filter"
88
- tamanho="pequeno"
89
- :clique="aplicarFiltro"
90
- />
91
- </div>
92
- </b-col>
93
- </b-row>
94
- </Modal>
95
- <Modal titulo="Campos" :largura="600" v-show="mostrarModal('campo')">
96
- <slot name="campo"></slot>
97
- <b-row>
98
- <b-col class="text-right" sm="12">
99
- <div class="lado-a-lado">
100
- <Botao
101
- chave="aplicaFiltro"
102
- tipo="primario"
103
- titulo="Aplicar"
104
- classeIcone="fas fa-filter"
105
- tamanho="pequeno"
106
- :desabilitado="campoSelecionado.length == 0"
107
- :clique="aplicarFiltro"
108
- />
109
- </div>
110
- </b-col>
111
- </b-row>
112
- </Modal>
113
- </div>
114
- </div>
115
- </Moldura>
116
- <div class="div-obrigatorio" v-show="invalido">
117
- <Alerta tipo="info" v-for="item in filtroObrigatorio" :key="item.id">
118
- É necessário informar o filtro
119
- <span class="filtro-obrigatorio">{{ item.label }}</span
120
- >, clique no botão "Filtros" para adicionar.
121
- </Alerta>
122
- </div>
123
- <div class="div-tags">
124
- <Tags nomeEvento="tagRelatorio" />
125
- </div>
126
- <div class="g-div-moldura div-tabela" v-if="!carregando && tamanhoDados > 0">
127
- <b-row>
128
- <b-col sm="6">
129
- <div class="div-botao">
130
- <div class="lado-a-lado">
131
- <ExportarExcel
132
- :botao="{ tipo: 'editar', titulo: 'Excel', tamanho: 'pequeno' }"
133
- nomeArquivo="Auditoria"
134
- :cabecalho="conteudo.cabecalhoTabela"
135
- :dados="conteudo.dados"
136
- />
137
- </div>
138
- <div class="lado-a-lado">
139
- <div>
140
- <Botao
141
- v-print="'#printMe'"
142
- chave="aplicaFiltro"
143
- tipo="editar"
144
- titulo="Imprimir"
145
- classeIcone="fas fa-print"
146
- tamanho="pequeno"
147
- :clique="aplicarFiltro"
148
- />
149
- </div>
150
- </div>
151
- </div>
152
- </b-col>
153
- <b-col sm="6">
154
- <Registro :totalRegistro="conteudo.totalRegistros" />
155
- </b-col>
156
- </b-row>
157
- <BarraRolagem :alturaMinima="400" :alturaMaxima="600">
158
- <div id="printMe">
159
- <CabecalhoImpressao />
160
- <Tabela
161
- :cabecalhoTabela="conteudo.cabecalhoTabela"
162
- :dados="conteudo.dados"
163
- :mostrarChecks="modeloLista.mostrarChecks"
164
- />
165
- </div>
166
- </BarraRolagem>
167
- </div>
168
- <div class="div-sem-dados" v-if="nenhumDadoRetornado">
169
- <Alerta tipo="info">
170
- <span> Nenhum registro foi encontrato!</span>
171
- </Alerta>
172
- </div>
173
- <div class="div-rodape" v-if="conteudo.resumo.length > 0">
174
- <Rodape :dados="conteudo.resumo" />
175
- </div>
176
- </div>
177
- </Painel>
178
- </div>
179
- </template>
180
-
181
- <script>
182
- import Alerta from "@nixweb/nixloc-ui/src/component/layout/Alerta";
183
- import Modal from "@nixweb/nixloc-ui/src/component/forms/Modal";
184
- import Botao from "@nixweb/nixloc-ui/src/component/forms/Botao";
185
- import ExportarExcel from "@nixweb/nixloc-ui/src/component/shared/ExportarExcel";
186
- import Tabela from "../shared/Tabela.vue";
187
- import CabecalhoImpressao from "../shared/CabecalhoImpressao.vue";
188
- import Registro from "../shared/Registro.vue";
189
- import Painel from "@nixweb/nixloc-ui/src/component/layout/Painel.vue";
190
- import BarraRolagem from "@nixweb/nixloc-ui/src/component/layout/BarraRolagem.vue";
191
- import Moldura from "@nixweb/nixloc-ui/src/component/layout/Moldura";
192
- import Progresso from "@nixweb/nixloc-ui/src/component/shared/Progresso";
193
- import Rodape from "@nixweb/nixloc-ui/src/component/shared/query-builder/Rodape.vue";
194
- import Tags from "@nixweb/nixloc-ui/src/component/shared/query-builder/Tags.vue";
195
- import RelatorioAdicionarModificar from "@nixweb/nixloc-ui/src/component/template/RelatorioAdicionarModificar.vue";
196
- import print from "vue-print-nb";
197
-
198
- import { mapState, mapGetters, mapActions, mapMutations } from "vuex";
199
-
200
- export default {
201
- name: "ModeloRelatorioView",
202
- directives: {
203
- print,
204
- },
205
- props: {
206
- modeloLista: Object,
207
- campo: Array,
208
- painel: Object,
209
- },
210
- components: {
211
- Alerta,
212
- Modal,
213
- Botao,
214
- Registro,
215
- Tabela,
216
- Painel,
217
- BarraRolagem,
218
- Moldura,
219
- Rodape,
220
- Progresso,
221
- Tags,
222
- RelatorioAdicionarModificar,
223
- ExportarExcel,
224
- CabecalhoImpressao,
225
- },
226
- data() {
227
- return {
228
- conteudo: {
229
- cabecalhoTabela: [],
230
- dados: [],
231
- resumo: [],
232
- paginacao: 0,
233
- paginaAtual: 1,
234
- totalPorPagina: 100,
235
- totalRegistros: 0,
236
- },
237
- btnDesativado: true,
238
- carregando: false,
239
- nenhumDadoRetornado: false,
240
- teste: this.router,
241
- };
242
- },
243
- mounted() {
244
- this.removeCarregando(["painel"]);
245
- },
246
- computed: {
247
- ...mapGetters("generic", ["mostrarModal", "evento"]),
248
- ...mapGetters("relatorio", [
249
- "cabecalhoTabela",
250
- "filtroSelecionado",
251
- "filtroObrigatorio",
252
- "temCampoSelecionado",
253
- "oDataSelect",
254
- "oDataFilter",
255
- "oDataOrderBy",
256
- ]),
257
- ...mapState("relatorio", ["relatorio", "campoSelecionado", "resumo"]),
258
- urlConsulta() {
259
- let baseUrl = `${this.modeloLista.urlGetApi}?${this.oDataSelect}&${this.oDataOrderBy}&${this.oDataFilter.consulta}&$skip=${this.skip}&$top=${this.conteudo.totalPorPagina}&$count=true`;
260
- return baseUrl.replace("&&", "&");
261
- },
262
- urlResumo() {
263
- let consulta = this.oDataFilter.resumo
264
- ? `$apply=filter(${this.oDataFilter.consulta.replace("$filter=", "")})/`
265
- : "$apply=";
266
- let baseUrl = `${this.modeloLista.urlGetApi}?${consulta}aggregate(${this.oDataFilter.resumo})`;
267
- return baseUrl;
268
- },
269
- skip() {
270
- return (this.conteudo.paginaAtual - 1) * this.conteudo.totalPorPagina;
271
- },
272
- invalido() {
273
- let retorno = true;
274
- this.filtroObrigatorio.forEach((filtro) => {
275
- var existe = this.filtroSelecionado.children.find((value) => {
276
- if (filtro.label == value.query.label) retorno = false;
277
- });
278
- });
279
-
280
- if (this.filtroObrigatorio.length == 0) retorno = false;
281
-
282
- return retorno;
283
- },
284
- tamanhoDados() {
285
- return this.conteudo.dados.length;
286
- },
287
- },
288
- methods: {
289
- ...mapActions("generic", ["getApiOdata"]),
290
- ...mapMutations("generic", ["abrirModal", "fecharModal", "removeCarregando"]),
291
- ...mapMutations("relatorio", ["atualizaCabecalhoTabela", "atualizaConsultaFiltro"]),
292
-
293
- obterTodos() {
294
- this.conteudo.dados = [];
295
- this.conteudo.resumo = [];
296
- this.btnDesativado = true;
297
-
298
- if (!this.invalido) {
299
- this.mostraEscondeCampos();
300
- this.paginacao();
301
- this.removeCarregando(["buscarRelatorio"]);
302
-
303
- if (this.oDataFilter.resumo) this.resumoOData();
304
- if (!this.oDataFilter.resumo) this.conteudo.resumo = [];
305
- }
306
- },
307
- paginacao() {
308
- let paramsConsulta = { url: this.urlConsulta };
309
- this.reiniciaDados();
310
-
311
- this.getApiOdata(paramsConsulta).then((response) => {
312
- let totalRegistros = response["@odata.count"];
313
- if (totalRegistros == 0) this.nenhumDadoRetornado = true;
314
- this.conteudo.totalRegistros = totalRegistros;
315
- this.conteudo.paginacao = Math.round(
316
- totalRegistros / this.conteudo.totalPorPagina
317
- );
318
-
319
- if (totalRegistros <= this.conteudo.totalPorPagina) {
320
- this.consultaOdata();
321
- this.conteudo.cabecalhoTabela = this.cabecalhoTabela;
322
- }
323
- if (this.conteudo.paginacao == 0) this.carregando = false;
324
- });
325
- },
326
- reiniciaDados() {
327
- this.carregando = true;
328
- this.conteudo.dados = [];
329
- this.conteudo.paginaAtual = 1;
330
- this.nenhumDadoRetornado = false;
331
- },
332
- consultaOdata() {
333
- let paramsConsulta = { url: this.urlConsulta };
334
- this.getApiOdata(paramsConsulta).then((response) => {
335
- let self = this;
336
- response.value.forEach(function (obj) {
337
- self.conteudo.dados.push(obj);
338
- });
339
- this.conteudo.paginaAtual++;
340
- });
341
- this.conteudo.cabecalhoTabela = this.cabecalhoTabela;
342
- },
343
- resumoOData() {
344
- let paramsResumo = { url: this.urlResumo };
345
- this.getApiOdata(paramsResumo).then((response) => {
346
- this.conteudo.resumo = [];
347
- const result = Object.entries(response[0]);
348
- let self = this;
349
- result.forEach(function (value) {
350
- self.resumo.forEach(function (legenda) {
351
- let obj = {
352
- titulo: "",
353
- valor: value[1],
354
- classeCss: legenda.classeCss,
355
- tipo: legenda.tipo,
356
- };
357
- if (legenda.valor == value[0]) {
358
- obj.titulo = legenda.titulo;
359
- self.conteudo.resumo.push(obj);
360
- }
361
- });
362
- });
363
- });
364
- },
365
- abrirCampo() {
366
- this.abrirModal("campo");
367
- this.removeCarregando(["abrirCampo"]);
368
- },
369
- abrirFiltro() {
370
- this.abrirModal("filtro");
371
- this.removeCarregando(["abrirFiltro"]);
372
- },
373
- aplicarFiltro() {
374
- this.fecharModal();
375
- this.removeCarregando(["aplicaFiltro", "aplicaCampo"]);
376
- },
377
- salvarRelatorio() {
378
- this.abrirModal("salvar");
379
- this.removeCarregando(["salvarRelatorio"]);
380
- },
381
- mostraEscondeCampos() {
382
- let self = this;
383
- this.relatorio.campo.forEach(function (value) {
384
- if (self.temCampoSelecionado(value.campo, self.campoSelecionado)) {
385
- value.mostrar = true;
386
- } else {
387
- value.mostrar = false;
388
- }
389
- });
390
- },
391
- },
392
- watch: {
393
- evento: {
394
- handler(evento) {
395
- if (evento.nome == "tagRelatorio") this.abrirModal("filtro");
396
- },
397
- deep: true,
398
- },
399
- campoSelecionado: {
400
- handler() {
401
- this.mostraEscondeCampos();
402
- },
403
- deep: true,
404
- },
405
- filtroSelecionado: {
406
- handler(filtro) {
407
- this.atualizaConsultaFiltro(filtro);
408
- },
409
- deep: true,
410
- },
411
- "conteudo.paginaAtual": {
412
- handler(paginaAtual) {
413
- if (paginaAtual <= this.conteudo.paginacao - 1) {
414
- let self = this;
415
- setTimeout(function () {
416
- self.consultaOdata();
417
- }, 200);
418
- }
419
- if (paginaAtual == this.conteudo.paginacao && paginaAtual != 0)
420
- this.carregando = false;
421
- },
422
- deep: true,
423
- },
424
- "conteudo.paginacao": {
425
- handler() {
426
- this.consultaOdata();
427
- },
428
- deep: true,
429
- },
430
- "oDataFilter.consulta": {
431
- handler() {
432
- this.btnDesativado = false;
433
- },
434
- deep: true,
435
- },
436
- oDataSelect: {
437
- handler() {
438
- this.btnDesativado = false;
439
- },
440
- deep: true,
441
- },
442
- oDataOrderBy: {
443
- handler() {
444
- this.btnDesativado = false;
445
- },
446
- deep: true,
447
- },
448
- },
449
- };
450
- </script>
451
-
452
- <style scoped>
453
- .div-botao {
454
- padding-bottom: 15px;
455
- }
456
-
457
- .div-progresso {
458
- margin-bottom: 10px;
459
- }
460
-
461
- .div-sem-dados {
462
- margin-top: 20px;
463
- }
464
-
465
- .div-tabela {
466
- margin-top: 20px;
467
- }
468
-
469
- .div-separacao {
470
- margin-left: 10px;
471
- margin-right: 5px;
472
- }
473
-
474
- .div-rodape {
475
- margin-top: 20px;
476
- }
477
-
478
- .div-tags {
479
- margin-top: 15px;
480
- }
481
-
482
- .div-obrigatorio {
483
- margin-top: 20px;
484
- }
485
-
486
- .filtro-obrigatorio {
487
- font-weight: 500;
488
- }
489
- </style>
@@ -1,69 +0,0 @@
1
- <template>
2
- <div>
3
- <Carregando :centralizado="false" v-show="carregando('modeloSubView')" />
4
- <div v-show="!carregando('modeloSubView')">
5
- <slot name="conteudo-botoes"></slot>
6
- <div v-if="mostrarPesquisa">
7
- <Pesquisa />
8
- <br />
9
- </div>
10
-
11
- <ModeloLista
12
- :modeloLista="modeloLista"
13
- :propsParam="propsParam"
14
- :mostrarMoldura="false"
15
- :mostrarFiltroHorizontal="mostrarFiltroHorizontal"
16
- :botaoExcluir="botaoExcluir"
17
- >
18
- <div slot="conteudo-botoes-tabela-cabecalho">
19
- <slot name="conteudo-botoes-tabela-cabecalho"></slot>
20
- </div>
21
- <div slot="conteudo-filtro-horizontal">
22
- <slot name="conteudo-filtro-horizontal"></slot>
23
- </div>
24
- <div slot="conteudo-botoes-tabela">
25
- <slot name="conteudo-botoes-tabela"></slot>
26
- </div>
27
- </ModeloLista>
28
- </div>
29
- </div>
30
- </template>
31
-
32
- <script>
33
- import Pesquisa from "../shared/Pesquisa.vue";
34
- import Carregando from "../shared/Carregando.vue";
35
-
36
- import ModeloLista from "@nixweb/nixloc-ui/src/component/template/ModeloLista.vue";
37
-
38
- import { mapState, mapGetters, mapMutations } from "vuex";
39
-
40
- export default {
41
- name: "ModeloView",
42
- components: { Pesquisa, Carregando, ModeloLista },
43
- props: {
44
- modeloLista: Object,
45
- propsParam: Object,
46
- mostrarPesquisa: {
47
- type: Boolean,
48
- default: true,
49
- },
50
- mostrarFiltroHorizontal: {
51
- type: Boolean,
52
- default: true,
53
- },
54
- botaoExcluir: {
55
- type: Boolean,
56
- default: true,
57
- },
58
- },
59
- computed: {
60
- ...mapGetters("generic", ["carregando"]),
61
- },
62
- created() {
63
- this.insereCarregando("modeloSubView");
64
- },
65
- methods: {
66
- ...mapMutations("generic", ["insereCarregando"]),
67
- },
68
- };
69
- </script>
@@ -1,49 +0,0 @@
1
- <template>
2
- <div>
3
- <Painel
4
- :modulo="painel.modulo"
5
- :titulo="painel.titulo"
6
- :mostrarFiltroVertical="painel.mostrarFiltroVertical"
7
- :mostrarPesquisa="painel.mostrarPesquisa"
8
- :mostrarBotoes="painel.mostrarBotoes"
9
- >
10
- <div slot="conteudo-filtro-vertical">
11
- <slot name="conteudo-filtro-vertical"></slot>
12
- </div>
13
- <div slot="conteudo-botoes">
14
- <slot name="conteudo-botoes"></slot>
15
- </div>
16
- <div slot="conteudo-principal">
17
- <ModeloLista :modeloLista="modeloLista" :botaoExcluir="botaoExcluir">
18
- <div slot="conteudo-botoes-tabela-cabecalho">
19
- <slot name="conteudo-botoes-tabela-cabecalho"></slot>
20
- </div>
21
- <div slot="conteudo-filtro-horizontal">
22
- <slot name="conteudo-filtro-horizontal"></slot>
23
- </div>
24
- <div slot="conteudo-botoes-tabela">
25
- <slot name="conteudo-botoes-tabela"></slot>
26
- </div>
27
- </ModeloLista>
28
- </div>
29
- </Painel>
30
- </div>
31
- </template>
32
-
33
- <script>
34
- import Painel from '@nixweb/nixloc-ui/src/component/layout/Painel.vue'
35
- import ModeloLista from "@nixweb/nixloc-ui/src/component/template/ModeloLista.vue";
36
-
37
- export default {
38
- name: "ModeloView",
39
- components: { Painel, ModeloLista },
40
- props: {
41
- painel: Object,
42
- modeloLista: Object,
43
- botaoExcluir: {
44
- type: Boolean,
45
- default: true,
46
- },
47
- },
48
- };
49
- </script>
@@ -1,10 +0,0 @@
1
- export default class Relatorio {
2
- constructor() {
3
- this.id = "";
4
- this.nome = "";
5
- }
6
- modificar(dados) {
7
- this.id = dados.id;
8
- this.nome = dados.nome;
9
- }
10
- }