@nixweb/nixloc-ui 0.0.69 → 0.0.72
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 -1
- package/src/component/forms/DateTime.vue +3 -0
- package/src/component/forms/Escolher.vue +4 -1
- package/src/component/forms/EscolherEstatico.vue +4 -1
- package/src/component/forms/Modal.vue +1 -2
- package/src/component/forms/Numero.vue +3 -0
- package/src/component/forms/Opcoes.vue +4 -2
- package/src/component/forms/Texto.vue +3 -0
- package/src/component/layout/Menu.vue +1 -0
- package/src/component/layout/Moldura.vue +1 -1
- package/src/component/layout/Painel.vue +6 -6
- package/src/component/template/ModeloLista.vue +6 -1
- package/src/store/modulos/generic.js +9 -9
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<label>
|
|
4
|
-
<span>{{ titulo }}</span>
|
|
4
|
+
<span class="titulo">{{ titulo }}</span>
|
|
5
5
|
<span class="requerido" v-if="requerido">*</span>
|
|
6
6
|
<Dica :campo="campo" :formNome="formNome" />
|
|
7
7
|
</label>
|
|
@@ -282,6 +282,9 @@ export default {
|
|
|
282
282
|
</script>
|
|
283
283
|
|
|
284
284
|
<style scoped>
|
|
285
|
+
.titulo {
|
|
286
|
+
color: #5f7587;
|
|
287
|
+
}
|
|
285
288
|
div.antes-lista {
|
|
286
289
|
padding: 8px;
|
|
287
290
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<label>
|
|
4
|
-
<span>{{ titulo }}</span>
|
|
4
|
+
<span class="titulo">{{ titulo }}</span>
|
|
5
5
|
</label>
|
|
6
6
|
<div class="selecione">
|
|
7
7
|
<multiselect
|
|
@@ -119,6 +119,9 @@ export default {
|
|
|
119
119
|
</script>
|
|
120
120
|
|
|
121
121
|
<style scoped>
|
|
122
|
+
.titulo {
|
|
123
|
+
color: #5f7587;
|
|
124
|
+
}
|
|
122
125
|
div.antes-lista {
|
|
123
126
|
padding: 8px;
|
|
124
127
|
}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
</template>
|
|
23
23
|
|
|
24
24
|
<script>
|
|
25
|
-
import Mensagem from "
|
|
25
|
+
import Mensagem from "@nixweb/nixloc-ui/src/component/shared/Mensagem";
|
|
26
26
|
import Vodal from "vodal";
|
|
27
27
|
|
|
28
28
|
import { mapState, mapMutations } from "vuex";
|
|
@@ -56,6 +56,5 @@ export default {
|
|
|
56
56
|
.titulo {
|
|
57
57
|
font-size: 18px;
|
|
58
58
|
margin-bottom: 5px;
|
|
59
|
-
color: #577696;
|
|
60
59
|
}
|
|
61
60
|
</style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<span>{{ titulo }}</span>
|
|
3
|
+
<span class="titulo">{{ titulo }}</span>
|
|
4
4
|
<Dica :campo="campo" :formNome="formNome" />
|
|
5
5
|
<div class="opcoes">
|
|
6
6
|
<b-form-group>
|
|
@@ -47,5 +47,7 @@ export default {
|
|
|
47
47
|
.opcoes {
|
|
48
48
|
margin-top: 5px;
|
|
49
49
|
}
|
|
50
|
+
.titulo {
|
|
51
|
+
color: #5f7587;
|
|
52
|
+
}
|
|
50
53
|
</style>
|
|
51
|
-
|
|
@@ -14,13 +14,12 @@
|
|
|
14
14
|
<div class="col-10">
|
|
15
15
|
<div class="div-titulo">
|
|
16
16
|
<i class="fas fa-arrow-circle-right"></i>
|
|
17
|
-
<span> {{ modulo }} </span> /
|
|
18
|
-
<span class="
|
|
17
|
+
<span class="modulo"> {{ modulo }} </span> /
|
|
18
|
+
<span class="titulo"> {{ titulo }}</span>
|
|
19
19
|
</div>
|
|
20
20
|
</div>
|
|
21
21
|
<div class="col-2 text-right" v-show="rotaAtual != 'Dashboard'">
|
|
22
22
|
<div class="c-voltar" @click="voltar()">
|
|
23
|
-
<i class="fad fa-long-arrow-left"></i>
|
|
24
23
|
<span class="g-espaco-esquerda">Voltar</span>
|
|
25
24
|
</div>
|
|
26
25
|
</div>
|
|
@@ -107,8 +106,9 @@ export default {
|
|
|
107
106
|
margin-top: 15px;
|
|
108
107
|
}
|
|
109
108
|
|
|
110
|
-
.
|
|
111
|
-
font-size:
|
|
109
|
+
.titulo {
|
|
110
|
+
font-size: 16px;
|
|
111
|
+
font-weight: bold;
|
|
112
112
|
margin-top: 16px;
|
|
113
113
|
color: #577696;
|
|
114
114
|
}
|
|
@@ -126,6 +126,6 @@ export default {
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
.painel {
|
|
129
|
-
padding:
|
|
129
|
+
padding: 25px;
|
|
130
130
|
}
|
|
131
131
|
</style>
|
|
@@ -152,7 +152,12 @@ export default {
|
|
|
152
152
|
},
|
|
153
153
|
watch: {
|
|
154
154
|
metodoExecutadoApi: function (value) {
|
|
155
|
-
if (
|
|
155
|
+
if (
|
|
156
|
+
value === "postApi" ||
|
|
157
|
+
value === "putApi" ||
|
|
158
|
+
value === "deleteAllApi" ||
|
|
159
|
+
value === "deleteAllApiErro"
|
|
160
|
+
) {
|
|
156
161
|
this.obterTodos();
|
|
157
162
|
}
|
|
158
163
|
},
|
|
@@ -161,7 +161,7 @@ export default {
|
|
|
161
161
|
})
|
|
162
162
|
.then((response) => {
|
|
163
163
|
if (response.data.sucesso) {
|
|
164
|
-
context.commit('insereMetodoExecutadoApi',
|
|
164
|
+
context.commit('insereMetodoExecutadoApi', 'postApi');
|
|
165
165
|
|
|
166
166
|
if (!params.naoNotificarToast)
|
|
167
167
|
context.commit('insereToast', 'postApi');
|
|
@@ -178,7 +178,7 @@ export default {
|
|
|
178
178
|
}, (err) => {
|
|
179
179
|
if (err.response)
|
|
180
180
|
if (err.response.status === 403)
|
|
181
|
-
context.commit('insereNotificacao', [{ mensagem: "Usuário
|
|
181
|
+
context.commit('insereNotificacao', [{ mensagem: "Usuário sem permissão para adicionar!" }])
|
|
182
182
|
|
|
183
183
|
if (!err.response)
|
|
184
184
|
context.commit('insereNotificacaoErroApi');
|
|
@@ -192,7 +192,7 @@ export default {
|
|
|
192
192
|
})
|
|
193
193
|
.then((response) => {
|
|
194
194
|
if (response.data.sucesso) {
|
|
195
|
-
context.commit('insereMetodoExecutadoApi',
|
|
195
|
+
context.commit('insereMetodoExecutadoApi', 'putApi');
|
|
196
196
|
|
|
197
197
|
if (!params.naoNotificarToast)
|
|
198
198
|
context.commit('insereToast', 'putApi');
|
|
@@ -208,7 +208,7 @@ export default {
|
|
|
208
208
|
}, (err) => {
|
|
209
209
|
if (err.response)
|
|
210
210
|
if (err.response.status === 403)
|
|
211
|
-
context.commit('insereNotificacao', [{ mensagem: "Usuário
|
|
211
|
+
context.commit('insereNotificacao', [{ mensagem: "Usuário sem permissão para modificar!" }])
|
|
212
212
|
|
|
213
213
|
if (!err.response)
|
|
214
214
|
context.commit('insereNotificacaoErroApi');
|
|
@@ -264,7 +264,7 @@ export default {
|
|
|
264
264
|
}, (err) => {
|
|
265
265
|
if (err.response)
|
|
266
266
|
if (err.response.status === 403)
|
|
267
|
-
context.commit('insereNotificacao', [{ mensagem: "Usuário
|
|
267
|
+
context.commit('insereNotificacao', [{ mensagem: "Usuário sem permissão para remover!" }])
|
|
268
268
|
|
|
269
269
|
if (!err.response)
|
|
270
270
|
context.commit('insereNotificacaoErroApi');
|
|
@@ -294,7 +294,7 @@ export default {
|
|
|
294
294
|
}, (err) => {
|
|
295
295
|
if (err.response)
|
|
296
296
|
if (err.response.status === 403)
|
|
297
|
-
context.commit('insereNotificacao', [{ mensagem: "Usuário
|
|
297
|
+
context.commit('insereNotificacao', [{ mensagem: "Usuário sem permissão para remover!" }])
|
|
298
298
|
|
|
299
299
|
if (!err.response)
|
|
300
300
|
context.commit('insereNotificacaoErroApi');
|
|
@@ -344,7 +344,7 @@ export default {
|
|
|
344
344
|
}, (err) => {
|
|
345
345
|
if (err.response)
|
|
346
346
|
if (err.response.status === 403)
|
|
347
|
-
context.commit('insereNotificacao', [{ mensagem: "Usuário
|
|
347
|
+
context.commit('insereNotificacao', [{ mensagem: "Usuário sem permissão para adicionar!" }])
|
|
348
348
|
|
|
349
349
|
if (!err.response)
|
|
350
350
|
context.commit('insereNotificacaoErroApi');
|
|
@@ -357,7 +357,7 @@ export default {
|
|
|
357
357
|
let url = params.url;
|
|
358
358
|
let nome = params.obj.nome;
|
|
359
359
|
let container = params.obj.container;
|
|
360
|
-
|
|
360
|
+
|
|
361
361
|
return axios.delete(`${url}?nome=${nome}?container=${container}`, {
|
|
362
362
|
headers: new Token().tokenHeaders(),
|
|
363
363
|
})
|
|
@@ -374,7 +374,7 @@ export default {
|
|
|
374
374
|
}, (err) => {
|
|
375
375
|
if (err.response)
|
|
376
376
|
if (err.response.status === 403)
|
|
377
|
-
context.commit('insereNotificacao', [{ mensagem: "Usuário
|
|
377
|
+
context.commit('insereNotificacao', [{ mensagem: "Usuário sem permissão para remover!" }])
|
|
378
378
|
|
|
379
379
|
if (!err.response)
|
|
380
380
|
context.commit('insereNotificacaoErroApi');
|