@nixweb/nixloc-ui 0.0.203 → 0.0.205
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/Color.vue +12 -0
- package/src/component/forms/InputDecimal.vue +4 -7
- package/src/component/shared/Collapse.vue +4 -17
- package/src/component/shared/ExportExcel.vue +2 -7
- package/src/component/shared/Report.vue +0 -2
- package/src/component/shared/TableItem.vue +7 -0
- package/src/component/shared/query-builder/AddRule.vue +5 -12
- package/src/component/shared/query-builder/ConvertToOdata.js +16 -5
- package/src/component/template/ViewTemplateImportFile.vue +1 -1
- package/src/component/template/ViewTemplateReportList.vue +6 -0
- package/src/component/template/ViewTemplateReportPreview.vue +4 -3
package/package.json
CHANGED
|
@@ -36,3 +36,15 @@ export default {
|
|
|
36
36
|
},
|
|
37
37
|
};
|
|
38
38
|
</script>
|
|
39
|
+
<style>
|
|
40
|
+
.vc-chrome-fields .vc-input__input {
|
|
41
|
+
font-size: 14px !important;
|
|
42
|
+
color: #333;
|
|
43
|
+
width: 100%;
|
|
44
|
+
border-radius: 2px;
|
|
45
|
+
border: none;
|
|
46
|
+
box-shadow: inset 0 0 0 1px #dadada;
|
|
47
|
+
height: 21px;
|
|
48
|
+
text-align: center;
|
|
49
|
+
}
|
|
50
|
+
</style>
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
<slot v-else></slot>
|
|
13
13
|
<vue-numeric :style="_style" class="form-control" v-on:keyup.enter.native="pressedEnter"
|
|
14
14
|
:class="{ 'is-invalid': notifications.length > 0 && formDirty }" :placeholder="placeholder" :disabled="disabled"
|
|
15
|
-
currency="R$" separator="." :minus="allowNegative" v-bind:precision="precision"
|
|
16
|
-
|
|
17
|
-
</div>
|
|
15
|
+
currency="R$" separator="." :minus="allowNegative" v-bind:precision="precision" v-model="valueLocal">
|
|
16
|
+
</vue-numeric>
|
|
18
17
|
|
|
18
|
+
</div>
|
|
19
19
|
<div v-if="formDirty">
|
|
20
20
|
<div v-for="message in notifications" :key="message">
|
|
21
21
|
<span class="invalid">{{ message }}</span>
|
|
@@ -66,6 +66,7 @@ export default {
|
|
|
66
66
|
formDirty: false,
|
|
67
67
|
_value: 0,
|
|
68
68
|
valueLocal: 20,
|
|
69
|
+
isPrecision: false
|
|
69
70
|
};
|
|
70
71
|
},
|
|
71
72
|
created() {
|
|
@@ -149,8 +150,4 @@ export default {
|
|
|
149
150
|
color: #f0134d;
|
|
150
151
|
font-size: 14px;
|
|
151
152
|
}
|
|
152
|
-
|
|
153
|
-
.margin-button {
|
|
154
|
-
margin-top: -2px;
|
|
155
|
-
}
|
|
156
153
|
</style>
|
|
@@ -29,29 +29,16 @@
|
|
|
29
29
|
<b-row>
|
|
30
30
|
<b-col sm="12">
|
|
31
31
|
<div class="text-center">
|
|
32
|
-
<Button
|
|
33
|
-
|
|
34
|
-
:title="buttonShow.title"
|
|
35
|
-
:classIcon="buttonShow.icon"
|
|
36
|
-
:type="buttonShow.type"
|
|
37
|
-
size="small"
|
|
38
|
-
:clicked="show"
|
|
39
|
-
/>
|
|
32
|
+
<Button v-if="!showCollapse" :title="buttonShow.title" :classIcon="buttonShow.icon" :type="buttonShow.type"
|
|
33
|
+
size="small" :clicked="show" />
|
|
40
34
|
</div>
|
|
41
35
|
</b-col>
|
|
42
36
|
</b-row>
|
|
43
37
|
<b-row>
|
|
44
38
|
<b-col>
|
|
45
39
|
<div class="text-center">
|
|
46
|
-
<Button
|
|
47
|
-
|
|
48
|
-
key="hideCollapse"
|
|
49
|
-
:title="buttonHide.title"
|
|
50
|
-
:classIcon="buttonHide.icon"
|
|
51
|
-
:type="buttonHide.type"
|
|
52
|
-
size="small"
|
|
53
|
-
:clicked="hide"
|
|
54
|
-
/>
|
|
40
|
+
<Button v-if="showCollapse" key="hideCollapse" :title="buttonHide.title" :classIcon="buttonHide.icon"
|
|
41
|
+
:type="buttonHide.type" size="small" :clicked="hide" />
|
|
55
42
|
</div>
|
|
56
43
|
</b-col>
|
|
57
44
|
</b-row>
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<download-excel
|
|
4
|
-
:
|
|
5
|
-
:data="data"
|
|
6
|
-
:before-finish="exportFinished"
|
|
7
|
-
worksheet="Planilha"
|
|
8
|
-
:name="`${fileName}.xls`"
|
|
9
|
-
>
|
|
3
|
+
<download-excel :fields="column" :data="data" :before-finish="exportFinished" worksheet="Planilha"
|
|
4
|
+
:name="`${fileName}.xls`">
|
|
10
5
|
<i class="fas fa-file-excel"></i>
|
|
11
6
|
</download-excel>
|
|
12
7
|
</div>
|
|
@@ -68,8 +68,6 @@ import TotalizationReport from "../shared/TotalizationReport.vue";
|
|
|
68
68
|
import ExportExcel from "@nixweb/nixloc-ui/src/component/shared/ExportExcel";
|
|
69
69
|
import print from "vue-print-nb";
|
|
70
70
|
|
|
71
|
-
import { mapState, mapMutations, mapActions } from "vuex";
|
|
72
|
-
|
|
73
71
|
export default {
|
|
74
72
|
directives: {
|
|
75
73
|
print,
|
|
@@ -6,11 +6,7 @@
|
|
|
6
6
|
<div class="div-custom">
|
|
7
7
|
<b-row>
|
|
8
8
|
<b-col sm="6">
|
|
9
|
-
<SelectRule
|
|
10
|
-
:options="rules"
|
|
11
|
-
class="select"
|
|
12
|
-
v-model="selectedRule"
|
|
13
|
-
/>
|
|
9
|
+
<SelectRule :options="rules" class="select" v-model="selectedRule" />
|
|
14
10
|
</b-col>
|
|
15
11
|
<b-col sm="3">
|
|
16
12
|
<div class="div-btn">
|
|
@@ -21,13 +17,10 @@
|
|
|
21
17
|
<div class="div-and-or">
|
|
22
18
|
<b-row>
|
|
23
19
|
<b-col sm="3">
|
|
24
|
-
<RadioGroup
|
|
25
|
-
:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
]"
|
|
29
|
-
v-model="andOr"
|
|
30
|
-
/>
|
|
20
|
+
<RadioGroup :options="[
|
|
21
|
+
{ text: 'e', value: 'and' },
|
|
22
|
+
{ text: 'ou', value: 'or' },
|
|
23
|
+
]" v-model="andOr" />
|
|
31
24
|
</b-col>
|
|
32
25
|
</b-row>
|
|
33
26
|
</div>
|
|
@@ -13,15 +13,23 @@ export default class ConvertToOdata {
|
|
|
13
13
|
if (operator === "maior") return `${rule.name} gt ${rule.value}`;
|
|
14
14
|
if (operator === "maior ou igual") return `${rule.name} ge ${rule.value}`;
|
|
15
15
|
|
|
16
|
-
if (rule.typeField === "dateTime") return this.convertDateTime(rule
|
|
16
|
+
if (rule.typeField === "dateTime") return this.convertDateTime(rule);
|
|
17
17
|
if (rule.typeField === "select") return this.convertSelect(rule.name, rule.value);
|
|
18
18
|
if (rule.typeField === "checkbox") return this.convertCheckbox(rule.name, rule.title, rule.type, rule.value);
|
|
19
19
|
|
|
20
20
|
}
|
|
21
|
-
convertDateTime(
|
|
22
|
-
let start = this.convertDate(value[0]);
|
|
23
|
-
let end = this.convertDate(value[1]);
|
|
24
|
-
|
|
21
|
+
convertDateTime(rule) {
|
|
22
|
+
let start = this.convertDate(rule.value[0]);
|
|
23
|
+
let end = this.convertDate(rule.value[1]);
|
|
24
|
+
|
|
25
|
+
if (rule.name.includes("&")) {
|
|
26
|
+
var parts = rule.name.split("&");
|
|
27
|
+
var first = parts[0];
|
|
28
|
+
var second = parts[1];
|
|
29
|
+
return `${first} ge ${start} and ${second} le ${end}`;
|
|
30
|
+
} else {
|
|
31
|
+
return `${rule.name} ge ${start} and ${rule.name} le ${end}`;
|
|
32
|
+
}
|
|
25
33
|
}
|
|
26
34
|
convertSelect(name, value) {
|
|
27
35
|
return `${name} eq '${value.id}'`;
|
|
@@ -48,6 +56,9 @@ export default class ConvertToOdata {
|
|
|
48
56
|
return `${query}`;
|
|
49
57
|
}
|
|
50
58
|
convertDate(data) {
|
|
59
|
+
// a verificação abaixo valida se tem valor, pois quando não tem está retornando um array com 3 posições em brando
|
|
60
|
+
if (data.length == 3) return;
|
|
61
|
+
|
|
51
62
|
let str = data.replace("/", "").replace("/", "");
|
|
52
63
|
|
|
53
64
|
let date = {
|
|
@@ -133,7 +133,7 @@ import ViewTemplateConfiguration from "@nixweb/nixloc-ui/src/component/template/
|
|
|
133
133
|
import TableImport from "@nixweb/nixloc-ui/src/component/shared/TableImport.vue";
|
|
134
134
|
import ListNotifications from "@nixweb/nixloc-ui/src/component/shared/ListNotifications.vue";
|
|
135
135
|
|
|
136
|
-
import {
|
|
136
|
+
import { mapActions, mapMutations, mapGetters } from "vuex";
|
|
137
137
|
|
|
138
138
|
export default {
|
|
139
139
|
name: "ViewTemplateImportFileView",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
</b-col>
|
|
45
45
|
<b-col sm="11" @click="navegateTo(report)">
|
|
46
46
|
<div class="title-report side-by-side">{{ report.name }}</div>
|
|
47
|
+
<div><span class="description-report">{{ report.description }}</span></div>
|
|
47
48
|
</b-col>
|
|
48
49
|
</b-row>
|
|
49
50
|
</Molded>
|
|
@@ -207,4 +208,9 @@ export default {
|
|
|
207
208
|
background: #fafafc !important;
|
|
208
209
|
height: 1px !important;
|
|
209
210
|
}
|
|
211
|
+
|
|
212
|
+
.description-report {
|
|
213
|
+
font-size: 13px;
|
|
214
|
+
color: rgb(110, 110, 110);
|
|
215
|
+
}
|
|
210
216
|
</style>
|
|
@@ -259,6 +259,7 @@ export default {
|
|
|
259
259
|
this.content.data = [];
|
|
260
260
|
this.content.totalPages = [];
|
|
261
261
|
this.baseParams.currentPage = 0;
|
|
262
|
+
this.baseParams.totalRecords = 0;
|
|
262
263
|
this.noDataReturned = false;
|
|
263
264
|
},
|
|
264
265
|
executeOpenModal(params) {
|
|
@@ -344,7 +345,7 @@ export default {
|
|
|
344
345
|
deep: true,
|
|
345
346
|
},
|
|
346
347
|
oDataFilter: {
|
|
347
|
-
handler(
|
|
348
|
+
handler() {
|
|
348
349
|
this.btnSearchDisabled = false;
|
|
349
350
|
this.btnSaveDisabled = false;
|
|
350
351
|
this.showBodyReport = false;
|
|
@@ -353,14 +354,14 @@ export default {
|
|
|
353
354
|
deep: true,
|
|
354
355
|
},
|
|
355
356
|
oDataSelect: {
|
|
356
|
-
handler(
|
|
357
|
+
handler() {
|
|
357
358
|
this.btnSearchDisabled = false;
|
|
358
359
|
this.btnSaveDisabled = false;
|
|
359
360
|
},
|
|
360
361
|
deep: true,
|
|
361
362
|
},
|
|
362
363
|
oDataOrderBy: {
|
|
363
|
-
handler(
|
|
364
|
+
handler() {
|
|
364
365
|
this.btnSearchDisabled = false;
|
|
365
366
|
this.btnSaveDisabled = false;
|
|
366
367
|
},
|