@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.
- package/docs/src/component/template/ModeloRelatorioView.drawio +2 -2
- package/docs/src/store/modulos/relatorio.drawio +2 -2
- package/package.json +77 -77
- package/public/styles/app.css +1 -1
- package/src/component/forms/{Botao.vue → Button.vue} +53 -57
- package/src/component/forms/CheckboxGroup.vue +63 -0
- package/src/component/forms/{CheckboxUnico.vue → CheckboxSimple.vue} +8 -8
- package/src/component/forms/{Cor.vue → Color.vue} +9 -9
- package/src/component/forms/DateTime.vue +55 -55
- package/src/component/forms/{BotaoDropdown.vue → Dropdown.vue} +58 -58
- package/src/component/forms/EditorHtml.vue +123 -0
- package/src/component/forms/FileUpload.vue +189 -0
- package/src/component/forms/InputDecimal.vue +137 -0
- package/src/component/forms/InputNumber.vue +149 -0
- package/src/component/forms/InputPassword.vue +135 -0
- package/src/component/forms/InputText.vue +157 -0
- package/src/component/forms/Modal.vue +15 -15
- package/src/component/forms/RadioGroup.vue +50 -0
- package/src/component/forms/Select.vue +337 -0
- package/src/component/forms/SelectStatic.vue +120 -0
- package/src/component/forms/TextArea.vue +126 -0
- package/src/component/forms/Toggle.vue +13 -13
- package/src/component/layout/{Conta.vue → Account.vue} +28 -28
- package/src/component/layout/{Alerta.vue → Alert.vue} +22 -22
- package/src/component/layout/Badge.vue +23 -23
- package/src/component/layout/{BarraFixa.vue → FixedBar.vue} +16 -16
- package/src/component/layout/{Topo.vue → Header.vue} +5 -5
- package/src/component/layout/{CarregandoTelaInteira.vue → LoadingFullPage.vue} +3 -3
- package/src/component/layout/Menu.vue +66 -66
- package/src/component/layout/{Moldura.vue → Molded.vue} +4 -4
- package/src/component/layout/Panel.vue +142 -0
- package/src/component/layout/Popover.vue +1 -1
- package/src/component/layout/{BarraRolagem.vue → Scrollbar.vue} +9 -11
- package/src/component/layout/Tag.vue +15 -15
- package/src/component/layout/Wizard.vue +3 -3
- package/src/component/shared/{CodigoEditor.vue → CodeEditor.vue} +25 -25
- package/src/component/shared/Collapse.vue +131 -0
- package/src/component/shared/Confirmation.vue +80 -0
- package/src/component/shared/{DocumentoEditor.vue → DocumentEditor.vue} +10 -16
- package/src/component/shared/{DocumentoPreview.vue → DocumentPreview.vue} +2 -2
- package/src/component/shared/ExportExcel.vue +67 -0
- package/src/component/shared/{ExportarPDF.vue → ExportPDF.vue} +18 -18
- package/src/component/shared/HeaderPrint.vue +36 -0
- package/src/component/shared/HorizontalFilter.vue +59 -0
- package/src/component/shared/LegendaParametro.vue +22 -22
- package/src/component/shared/{Carregando.vue → Loading.vue} +16 -16
- package/src/component/shared/LoadingMoreButton.vue +23 -0
- package/src/component/shared/Messages.vue +83 -0
- package/src/component/shared/{Paginacao.vue → Pagination.vue} +12 -12
- package/src/component/shared/ProgressBar.vue +21 -0
- package/src/component/shared/{BotaoConsulta.vue → QueryButton.vue} +16 -16
- package/src/component/shared/SaveCancel.vue +56 -0
- package/src/component/shared/{Pesquisa.vue → Search.vue} +46 -46
- package/src/component/shared/Table.vue +243 -0
- package/src/component/shared/TableButton.vue +36 -0
- package/src/component/shared/{Registro.vue → TableTotalRecords.vue} +7 -7
- package/src/component/shared/{ResumoTabela.vue → TableTotalization.vue} +12 -8
- package/src/component/shared/Tip.vue +42 -0
- package/src/component/shared/Toast.vue +7 -7
- package/src/component/shared/{FiltroVertical.vue → VerticalFilter.vue} +24 -24
- package/src/component/shared/query-builder/AddRule.vue +187 -0
- package/src/component/shared/query-builder/ConvertToOdata.js +80 -0
- package/src/component/shared/query-builder/DynamicComponent.vue +107 -0
- package/src/component/shared/query-builder/Fields.vue +127 -0
- package/src/component/shared/query-builder/ListDynamicComponent.vue +42 -0
- package/src/component/shared/query-builder/QueryBuilder.vue +25 -120
- package/src/component/shared/query-builder/{Filtro.vue → Rules.vue} +13 -18
- package/src/component/shared/query-builder/SelectRule.vue +96 -0
- package/src/component/shared/query-builder/Tags.vue +14 -14
- package/src/component/shared/query-builder/{Rodape.vue → Totalization.vue} +10 -10
- package/src/component/template/AddEditReport.vue +106 -0
- package/src/component/template/ListViewWithHandlerData.vue +231 -0
- package/src/component/template/ViewTemplateConfiguration.vue +69 -0
- package/src/component/template/ViewTemplateDocumentView.vue +227 -0
- package/src/component/template/ViewTemplateReportList.vue +230 -0
- package/src/component/template/ViewTemplateReportPreview.vue +500 -0
- package/src/component/template/ViewTemplateWithSalveCancel.vue +32 -0
- package/src/component/template/ViewTemplateWithTable.vue +49 -0
- package/src/component/template/model/Report.js +6 -0
- package/src/component/value-objects/DadosContato.vue +34 -35
- package/src/component/value-objects/DadosPessoa.vue +58 -58
- package/src/component/value-objects/Endereco.vue +96 -97
- package/src/config/dicas.js +1 -1
- package/src/config/token.js +2 -2
- package/src/store/modules/generic.js +489 -0
- package/src/store/modules/report.js +246 -0
- package/src/store/modules/user.js +38 -0
- package/src/store/modules/validation.js +39 -0
- package/src/store/store.js +4 -4
- package/src/component/forms/ArquivoUpload.vue +0 -199
- package/src/component/forms/CheckboxMultiplo.vue +0 -63
- package/src/component/forms/Decimal.vue +0 -137
- package/src/component/forms/Escolher.vue +0 -335
- package/src/component/forms/EscolherEstatico.vue +0 -139
- package/src/component/forms/Numero.vue +0 -153
- package/src/component/forms/Opcoes.vue +0 -51
- package/src/component/forms/Senha.vue +0 -139
- package/src/component/forms/Texto.vue +0 -161
- package/src/component/forms/TextoArea.vue +0 -126
- package/src/component/forms/TextoEditor.vue +0 -123
- package/src/component/layout/Painel.vue +0 -142
- package/src/component/shared/BotaoCarregarMais.vue +0 -23
- package/src/component/shared/CabecalhoImpressao.vue +0 -36
- package/src/component/shared/Confirmacao.vue +0 -80
- package/src/component/shared/Dica.vue +0 -42
- package/src/component/shared/EsconderMostrar.vue +0 -131
- package/src/component/shared/ExportarExcel.vue +0 -67
- package/src/component/shared/FiltroHorizontal.vue +0 -59
- package/src/component/shared/Mensagem.vue +0 -86
- package/src/component/shared/Progresso.vue +0 -21
- package/src/component/shared/SalvarCancelar.vue +0 -56
- package/src/component/shared/Tabela.vue +0 -275
- package/src/component/shared/TabelaBotao.vue +0 -36
- package/src/component/shared/query-builder/Campo.vue +0 -116
- package/src/component/shared/query-builder/ConverteParaOdata.js +0 -77
- package/src/component/shared/query-builder/components/CustomSelect.vue +0 -115
- package/src/component/shared/query-builder/components/QueryBuilderChildren.vue +0 -46
- package/src/component/shared/query-builder/components/QueryBuilderGroup.vue +0 -151
- package/src/component/shared/query-builder/components/QueryBuilderRule.vue +0 -81
- package/src/component/shared/query-builder/layouts/Bootstrap/BootstrapGroup.vue +0 -120
- package/src/component/shared/query-builder/layouts/Bootstrap/BootstrapRule.vue +0 -187
- package/src/component/shared/query-builder/main.js +0 -81
- package/src/component/template/ModeloAdicionarModificarView.vue +0 -32
- package/src/component/template/ModeloDocumentoView.vue +0 -227
- package/src/component/template/ModeloLista.vue +0 -231
- package/src/component/template/ModeloRelatorioListaView.vue +0 -227
- package/src/component/template/ModeloRelatorioView.vue +0 -489
- package/src/component/template/ModeloSubView.vue +0 -69
- package/src/component/template/ModeloView.vue +0 -49
- package/src/component/template/Relatorio.js +0 -10
- package/src/component/template/RelatorioAdicionarModificar.vue +0 -106
- package/src/store/modulos/generic.js +0 -494
- package/src/store/modulos/relatorio.js +0 -204
- package/src/store/modulos/usuario.js +0 -38
- package/src/store/modulos/validation.js +0 -39
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<table class="table table-responsive-xs">
|
|
4
|
+
<thead>
|
|
5
|
+
<tr>
|
|
6
|
+
<th class="td-checkbox" v-if="showChecks">
|
|
7
|
+
<div>
|
|
8
|
+
<b-form-checkbox v-model="selectAll" @change="select" />
|
|
9
|
+
</div>
|
|
10
|
+
</th>
|
|
11
|
+
<th v-for="(obj, ind) in header" :key="ind">
|
|
12
|
+
<div class="title-margem" :class="obj.classCssTitle">
|
|
13
|
+
<i class="fas fa-search" v-if="obj.iconSearch"></i>
|
|
14
|
+
<span class="title-header"> {{ obj.title }}</span>
|
|
15
|
+
</div>
|
|
16
|
+
</th>
|
|
17
|
+
</tr>
|
|
18
|
+
</thead>
|
|
19
|
+
<tbody>
|
|
20
|
+
<tr v-for="(row, index) in data" :key="index" :style="row.rowCss">
|
|
21
|
+
<td class="td-checkbox" v-if="showChecks">
|
|
22
|
+
<b-form-checkbox v-model="selected" :value="row.id" />
|
|
23
|
+
</td>
|
|
24
|
+
<td v-for="(obj, ind) in header" :key="ind">
|
|
25
|
+
<div
|
|
26
|
+
:class="convertClass(row[obj.fieldComparison], obj.classCssBody)"
|
|
27
|
+
v-if="obj.type === 'text'"
|
|
28
|
+
>
|
|
29
|
+
{{ row[obj.field] }}
|
|
30
|
+
</div>
|
|
31
|
+
<div
|
|
32
|
+
:class="convertClass(row[obj.fieldComparison], obj.classCssBody)"
|
|
33
|
+
v-if="obj.type === 'class'"
|
|
34
|
+
>
|
|
35
|
+
{{ row[obj.field] }}
|
|
36
|
+
</div>
|
|
37
|
+
<div
|
|
38
|
+
:class="convertClass(row[obj.fieldComparison], obj.classCssBody)"
|
|
39
|
+
v-if="obj.type === 'html'"
|
|
40
|
+
>
|
|
41
|
+
<div v-if="row[obj.field]" v-html="row[obj.field]"></div>
|
|
42
|
+
<div v-else v-html="obj.html"></div>
|
|
43
|
+
</div>
|
|
44
|
+
<div
|
|
45
|
+
:class="convertClass(row[obj.fieldComparison], obj.classCssBody)"
|
|
46
|
+
v-if="obj.type === 'select'"
|
|
47
|
+
>
|
|
48
|
+
{{ row[obj.field].content }}
|
|
49
|
+
</div>
|
|
50
|
+
<div
|
|
51
|
+
:class="convertClass(row[obj.fieldComparison], obj.classCssBody)"
|
|
52
|
+
v-if="obj.type === 'date'"
|
|
53
|
+
>
|
|
54
|
+
{{ row[obj.field] | moment("DD/MM/YYYY") }}
|
|
55
|
+
</div>
|
|
56
|
+
<div
|
|
57
|
+
:class="convertClass(row[obj.fieldComparison], obj.classCssBody)"
|
|
58
|
+
v-if="obj.type === 'dateTime'"
|
|
59
|
+
>
|
|
60
|
+
{{ row[obj.field] | moment("DD/MM/YYYY HH:mm") }}
|
|
61
|
+
</div>
|
|
62
|
+
<div
|
|
63
|
+
:class="convertClass(row[obj.fieldComparison], obj.classCssBody)"
|
|
64
|
+
v-if="obj.type === 'currency'"
|
|
65
|
+
>
|
|
66
|
+
{{ row[obj.field] | currency }}
|
|
67
|
+
</div>
|
|
68
|
+
<div
|
|
69
|
+
:class="convertClass(row[obj.fieldComparison], obj.classCssBody)"
|
|
70
|
+
v-if="obj.type === 'pdf'"
|
|
71
|
+
>
|
|
72
|
+
<span
|
|
73
|
+
@click="solicitarPdf(obj.pdf, row[obj.field])"
|
|
74
|
+
class="icon"
|
|
75
|
+
v-if="row[obj.field]"
|
|
76
|
+
>
|
|
77
|
+
<i :class="obj.icon"></i
|
|
78
|
+
></span>
|
|
79
|
+
<span v-else>N/I</span>
|
|
80
|
+
</div>
|
|
81
|
+
<div
|
|
82
|
+
:class="convertClass(row[obj.fieldComparison], obj.classCssBody)"
|
|
83
|
+
v-if="obj.type === 'button'"
|
|
84
|
+
>
|
|
85
|
+
<TableButton :obj="obj" :row="row" />
|
|
86
|
+
</div>
|
|
87
|
+
<div class="link" v-if="obj.type === 'link'" @click="navegateTo(obj, row)">
|
|
88
|
+
<span> {{ row[obj.field] }}</span>
|
|
89
|
+
</div>
|
|
90
|
+
</td>
|
|
91
|
+
</tr>
|
|
92
|
+
</tbody>
|
|
93
|
+
<tbody v-show="data.length == 0">
|
|
94
|
+
<tr>
|
|
95
|
+
<td colspan="12">
|
|
96
|
+
<span>Nenhum registro encontrado!</span>
|
|
97
|
+
</td>
|
|
98
|
+
</tr>
|
|
99
|
+
</tbody>
|
|
100
|
+
</table>
|
|
101
|
+
</div>
|
|
102
|
+
</template>
|
|
103
|
+
|
|
104
|
+
<script>
|
|
105
|
+
import TableButton from "@nixweb/nixloc-ui/src/component/shared/TableButton.vue";
|
|
106
|
+
|
|
107
|
+
import { mapState, mapMutations, mapActions } from "vuex";
|
|
108
|
+
|
|
109
|
+
export default {
|
|
110
|
+
components: { TableButton },
|
|
111
|
+
props: {
|
|
112
|
+
header: Array,
|
|
113
|
+
data: Array,
|
|
114
|
+
showChecks: {
|
|
115
|
+
type: Boolean,
|
|
116
|
+
default: true,
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
data() {
|
|
120
|
+
return {
|
|
121
|
+
selectAll: false,
|
|
122
|
+
};
|
|
123
|
+
},
|
|
124
|
+
computed: {
|
|
125
|
+
...mapState("generic", ["selected"]),
|
|
126
|
+
selected: {
|
|
127
|
+
get() {
|
|
128
|
+
return this.$store.state.generic.selected;
|
|
129
|
+
},
|
|
130
|
+
set(value) {
|
|
131
|
+
this.addSelected(value);
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
methods: {
|
|
136
|
+
...mapMutations("generic", ["addSelected", "addEvent"]),
|
|
137
|
+
...mapActions("generic", ["pdfApi"]),
|
|
138
|
+
select() {
|
|
139
|
+
this.addSelected([]);
|
|
140
|
+
if (this.selectAll) {
|
|
141
|
+
for (let i in this.data) {
|
|
142
|
+
this.selected.push(this.data[i].id);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
convertClass(fieldComparison, classCssBody) {
|
|
147
|
+
if (Array.isArray(classCssBody)) {
|
|
148
|
+
let ret = [];
|
|
149
|
+
classCssBody.forEach(function (value) {
|
|
150
|
+
let classCss = value.classCss;
|
|
151
|
+
let condition = value.fieldComparison == fieldComparison;
|
|
152
|
+
let obj = {
|
|
153
|
+
[classCss]: condition,
|
|
154
|
+
};
|
|
155
|
+
ret.push(obj);
|
|
156
|
+
});
|
|
157
|
+
return ret;
|
|
158
|
+
} else {
|
|
159
|
+
return classCssBody;
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
navegateTo(obj, row) {
|
|
163
|
+
if (obj.routeName) {
|
|
164
|
+
this.$router.push({
|
|
165
|
+
name: obj.routeName,
|
|
166
|
+
params: { id: row.id },
|
|
167
|
+
});
|
|
168
|
+
} else {
|
|
169
|
+
this.addEvent({
|
|
170
|
+
nome: obj.eventName,
|
|
171
|
+
data: row,
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
beforeDestroy() {
|
|
177
|
+
this.addSelected([]);
|
|
178
|
+
},
|
|
179
|
+
};
|
|
180
|
+
</script>
|
|
181
|
+
|
|
182
|
+
<style scoped>
|
|
183
|
+
|
|
184
|
+
table tbody tr td {
|
|
185
|
+
max-width: 350px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.table th,
|
|
189
|
+
.table td {
|
|
190
|
+
height: 10px !important;
|
|
191
|
+
padding-left: 5px !important;
|
|
192
|
+
padding-top: 7px !important;
|
|
193
|
+
padding-bottom: 5px !important;
|
|
194
|
+
padding-right: 5px !important;
|
|
195
|
+
border-bottom: 0px !important;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.td-checkbox {
|
|
199
|
+
width: 30px;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
tr:hover {
|
|
203
|
+
background-color: #fafafc;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.title-header {
|
|
207
|
+
font-size: 13px;
|
|
208
|
+
color: #757d8c;
|
|
209
|
+
font-weight: 400;
|
|
210
|
+
text-transform: uppercase;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.table-number {
|
|
214
|
+
font-size: 14px;
|
|
215
|
+
font-weight: bold;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.table-main {
|
|
219
|
+
color: #757d8c;
|
|
220
|
+
max-width: 200px;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.table-currency {
|
|
224
|
+
font-size: 14px;
|
|
225
|
+
min-width: 100px;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.link {
|
|
229
|
+
color: #3f529b;
|
|
230
|
+
font-size: 14px;
|
|
231
|
+
font-weight: 400;
|
|
232
|
+
cursor: pointer;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.link:hover {
|
|
236
|
+
text-decoration: underline;
|
|
237
|
+
transition: 0.1s;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.icon-link:hover {
|
|
241
|
+
font-size: 12.5px;
|
|
242
|
+
}
|
|
243
|
+
</style>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<Button
|
|
4
|
+
v-if="obj.qualBotao == 'button'"
|
|
5
|
+
:key="row.id"
|
|
6
|
+
:title="obj.button.title"
|
|
7
|
+
:type="obj.button.type"
|
|
8
|
+
:size="obj.button.size"
|
|
9
|
+
:classIcon="obj.button.classIcon"
|
|
10
|
+
:eventName="obj.button.eventName"
|
|
11
|
+
:eventData="row"
|
|
12
|
+
/>
|
|
13
|
+
<BotaoDropdown
|
|
14
|
+
v-if="obj.qualBotao == 'botaodropdown'"
|
|
15
|
+
:title="obj.button.title"
|
|
16
|
+
:type="obj.button.type"
|
|
17
|
+
:size="obj.button.size"
|
|
18
|
+
:classIcon="obj.button.classIcon"
|
|
19
|
+
:eventData="row"
|
|
20
|
+
:items="obj.button.items"
|
|
21
|
+
/>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script>
|
|
26
|
+
import BotaoDropdown from "../forms/BotaoDropdown";
|
|
27
|
+
import Button from "../forms/Button";
|
|
28
|
+
export default {
|
|
29
|
+
name: "TableButton",
|
|
30
|
+
components: { Button, BotaoDropdown },
|
|
31
|
+
props: {
|
|
32
|
+
obj: Object,
|
|
33
|
+
row: Object,
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
</script>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="row c-div-total">
|
|
3
3
|
<div class="col-sm-12 text-right">
|
|
4
|
-
<span class="c-
|
|
4
|
+
<span class="c-title">
|
|
5
5
|
Total de
|
|
6
6
|
<b-badge variant="warning">
|
|
7
|
-
<span class="c-total">{{
|
|
7
|
+
<span class="c-total">{{ totalRecords }}</span>
|
|
8
8
|
</b-badge>
|
|
9
|
-
<span class="
|
|
9
|
+
<span class="records">registros</span>
|
|
10
10
|
</span>
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
|
|
15
15
|
<script>
|
|
16
16
|
export default {
|
|
17
|
-
name: "
|
|
17
|
+
name: "TableTotalRecords",
|
|
18
18
|
props: {
|
|
19
|
-
|
|
19
|
+
totalRecords: {
|
|
20
20
|
type: Number,
|
|
21
21
|
default: 0,
|
|
22
22
|
},
|
|
@@ -29,7 +29,7 @@ export default {
|
|
|
29
29
|
padding-bottom: 10px;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.c-
|
|
32
|
+
.c-title {
|
|
33
33
|
font-size: 14px;
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
font-size: 14px;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.
|
|
41
|
+
.records{
|
|
42
42
|
margin-left: 5px;
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<div
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
<div
|
|
4
|
+
class="badge-side-by-side text-center"
|
|
5
|
+
v-for="item in totalization"
|
|
6
|
+
:key="item.title"
|
|
7
|
+
>
|
|
8
|
+
<div class="badge-totalization" :class="item.classCss">
|
|
9
|
+
<span>{{ item.title }}</span>
|
|
10
|
+
<span>{{ item.value }}</span>
|
|
7
11
|
</div>
|
|
8
12
|
</div>
|
|
9
13
|
</div>
|
|
@@ -11,21 +15,21 @@
|
|
|
11
15
|
|
|
12
16
|
<script>
|
|
13
17
|
export default {
|
|
14
|
-
name: "
|
|
18
|
+
name: "TableTotalization",
|
|
15
19
|
props: {
|
|
16
|
-
|
|
20
|
+
totalization: Array,
|
|
17
21
|
},
|
|
18
22
|
};
|
|
19
23
|
</script>
|
|
20
24
|
|
|
21
25
|
<style scoped>
|
|
22
|
-
.badge-
|
|
26
|
+
.badge-side-by-side {
|
|
23
27
|
display: inline-block;
|
|
24
28
|
margin-right: 3px;
|
|
25
29
|
margin-bottom: 10px;
|
|
26
30
|
}
|
|
27
31
|
|
|
28
|
-
.badge-
|
|
32
|
+
.badge-totalization {
|
|
29
33
|
border: 1px solid #dbdee0;
|
|
30
34
|
padding-left: 5px;
|
|
31
35
|
padding-right: 5px;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<span class="tip" v-if="title">
|
|
3
|
+
<i
|
|
4
|
+
class="fal fa-exclamation-circle"
|
|
5
|
+
:title="title"
|
|
6
|
+
v-b-popover.hover.top="description"
|
|
7
|
+
></i>
|
|
8
|
+
</span>
|
|
9
|
+
</template>
|
|
10
|
+
<script>
|
|
11
|
+
import { mapGetters } from "vuex";
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
name: "Tip",
|
|
15
|
+
props: {
|
|
16
|
+
field: String,
|
|
17
|
+
formName: String,
|
|
18
|
+
},
|
|
19
|
+
data() {
|
|
20
|
+
return {
|
|
21
|
+
title: "",
|
|
22
|
+
description: "",
|
|
23
|
+
};
|
|
24
|
+
},
|
|
25
|
+
mounted() {
|
|
26
|
+
let tip = this.tip({ field: this.field, formName: this.formName });
|
|
27
|
+
if (tip) {
|
|
28
|
+
this.title = tip.title;
|
|
29
|
+
this.description = tip.description;
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
computed: {
|
|
33
|
+
...mapGetters("generic", ["tip"]),
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<style scoped>
|
|
39
|
+
.tip {
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
}
|
|
42
|
+
</style>
|
|
@@ -18,28 +18,28 @@ export default {
|
|
|
18
18
|
},
|
|
19
19
|
methods: {
|
|
20
20
|
notifica(value) {
|
|
21
|
-
if (value.
|
|
22
|
-
this.$toasted.show("Salvo com
|
|
21
|
+
if (value.type == "postApi" || value.type == "putApi")
|
|
22
|
+
this.$toasted.show("Salvo com success", {
|
|
23
23
|
type: "success",
|
|
24
24
|
});
|
|
25
|
-
if (value.
|
|
25
|
+
if (value.type == "postApiError" || value.type == "putApiErro") {
|
|
26
26
|
this.$toasted.show("Ops! Algo deu errado", {
|
|
27
27
|
type: "error",
|
|
28
28
|
});
|
|
29
29
|
this.voltarParaTopo();
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
if (value.
|
|
33
|
-
this.$toasted.show("Removido com
|
|
32
|
+
if (value.type == "removerTodosApiSucesso")
|
|
33
|
+
this.$toasted.show("Removido com success", {
|
|
34
34
|
type: "success",
|
|
35
35
|
});
|
|
36
|
-
if (value.
|
|
36
|
+
if (value.type == "removerTodosApiErro") {
|
|
37
37
|
this.$toasted.show("Ops! Algo deu errado", {
|
|
38
38
|
type: "error",
|
|
39
39
|
});
|
|
40
40
|
this.voltarParaTopo();
|
|
41
41
|
}
|
|
42
|
-
if (value.
|
|
42
|
+
if (value.type == "falhaGenerica") {
|
|
43
43
|
this.$toasted.show("Ops! Algo deu errado", {
|
|
44
44
|
type: "error",
|
|
45
45
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<div
|
|
4
|
-
class="
|
|
5
|
-
:class="{ fechado: !
|
|
6
|
-
v-show="!
|
|
4
|
+
class="molded-button"
|
|
5
|
+
:class="{ fechado: !showFilter, aberto: showFilter }"
|
|
6
|
+
v-show="!showFilter"
|
|
7
7
|
@click="mouseOver"
|
|
8
8
|
>
|
|
9
9
|
<i class="fas fa-arrow-circle-left"></i>
|
|
@@ -11,31 +11,31 @@
|
|
|
11
11
|
|
|
12
12
|
<transition name="slide-fade">
|
|
13
13
|
<div
|
|
14
|
-
class="
|
|
15
|
-
v-show="
|
|
16
|
-
@click="
|
|
14
|
+
class="molded-button button-recolher"
|
|
15
|
+
v-show="showFilter"
|
|
16
|
+
@click="showFilter = false"
|
|
17
17
|
>
|
|
18
18
|
<i class="fas fa-arrow-circle-right"></i>
|
|
19
19
|
</div>
|
|
20
20
|
</transition>
|
|
21
21
|
|
|
22
22
|
<transition name="slide-fade">
|
|
23
|
-
<div class="
|
|
23
|
+
<div class="molded" v-show="showFilter">
|
|
24
24
|
<div class="row">
|
|
25
|
-
<div class="col-4 c-
|
|
25
|
+
<div class="col-4 c-title-filter">
|
|
26
26
|
<i class="fas fa-filter"></i>
|
|
27
|
-
<span class="espaco-
|
|
27
|
+
<span class="espaco-icon">FILTRO</span>
|
|
28
28
|
</div>
|
|
29
29
|
</div>
|
|
30
30
|
<hr />
|
|
31
31
|
<b-row v-if="mostrarSelecioneTotal">
|
|
32
32
|
<b-col sm="6">
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
:
|
|
33
|
+
<Select
|
|
34
|
+
title="show"
|
|
35
|
+
field="show"
|
|
36
|
+
:required="false"
|
|
37
37
|
url="/api/v1/util/total-por-pagina"
|
|
38
|
-
v-model="
|
|
38
|
+
v-model="totalPerPage"
|
|
39
39
|
/>
|
|
40
40
|
</b-col>
|
|
41
41
|
</b-row>
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
</template>
|
|
47
47
|
|
|
48
48
|
<script>
|
|
49
|
-
import
|
|
49
|
+
import Select from "../forms/Select";
|
|
50
50
|
|
|
51
51
|
import { mapMutations } from "vuex";
|
|
52
52
|
|
|
@@ -57,19 +57,19 @@ export default {
|
|
|
57
57
|
default: true,
|
|
58
58
|
},
|
|
59
59
|
},
|
|
60
|
-
components: {
|
|
60
|
+
components: { Select },
|
|
61
61
|
data() {
|
|
62
62
|
return {
|
|
63
|
-
|
|
63
|
+
showFilter: false,
|
|
64
64
|
};
|
|
65
65
|
},
|
|
66
66
|
computed: {
|
|
67
|
-
|
|
67
|
+
totalPerPage: {
|
|
68
68
|
get() {
|
|
69
|
-
return this.$store.state.generic.
|
|
69
|
+
return this.$store.state.generic.totalPerPage;
|
|
70
70
|
},
|
|
71
71
|
set(value) {
|
|
72
|
-
if (!value.
|
|
72
|
+
if (!value.content) value.content = 10;
|
|
73
73
|
this.atualizaTotalPorPagina(value);
|
|
74
74
|
},
|
|
75
75
|
},
|
|
@@ -77,14 +77,14 @@ export default {
|
|
|
77
77
|
methods: {
|
|
78
78
|
...mapMutations("generic", ["atualizaTotalPorPagina"]),
|
|
79
79
|
mouseOver: function () {
|
|
80
|
-
this.
|
|
80
|
+
this.showFilter = !this.showFilter;
|
|
81
81
|
},
|
|
82
82
|
},
|
|
83
83
|
};
|
|
84
84
|
</script>
|
|
85
85
|
|
|
86
86
|
<style scoped>
|
|
87
|
-
.
|
|
87
|
+
.molded {
|
|
88
88
|
background: white;
|
|
89
89
|
border-left: solid 1px #dbdee0;
|
|
90
90
|
font-size: 13px;
|
|
@@ -98,7 +98,7 @@ export default {
|
|
|
98
98
|
z-index: 999;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
.
|
|
101
|
+
.molded-button {
|
|
102
102
|
font-size: 18px;
|
|
103
103
|
background: #ffffff;
|
|
104
104
|
border: solid 1px #dbdfe9;
|
|
@@ -116,7 +116,7 @@ export default {
|
|
|
116
116
|
z-index: 999;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
.
|
|
119
|
+
.button-recolher {
|
|
120
120
|
padding-left: 12px;
|
|
121
121
|
padding-right: 418px;
|
|
122
122
|
right: -38px;
|