@nixweb/nixloc-ui 0.0.286 → 0.0.288
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/layout/ScrollBar.vue +1 -1
- package/src/component/layout/Tag.vue +1 -1
- package/src/component/report/Fields.vue +4 -2
- package/src/component/report/Report.vue +30 -5
- package/src/component/report/ReportTable.vue +5 -1
- package/src/component/shared/filter-builder/FilterBuilder.vue +4 -4
- package/src/component/template/ReportCreateUpdate.vue +4 -18
- package/src/component/template/ViewTemplateReportList.vue +1 -0
package/package.json
CHANGED
|
@@ -62,8 +62,10 @@ export default {
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
created() {
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
const targetObject = this.data.find(item => item.initialOrderBy === true);
|
|
66
|
+
|
|
67
|
+
this.initialValue = { content: targetObject.title, id: targetObject.fieldOrderBy };
|
|
68
|
+
this.$emit("input", { ordering: this.ordering, field: targetObject.fieldOrderBy });
|
|
67
69
|
},
|
|
68
70
|
computed: {
|
|
69
71
|
...mapGetters("generic", ["showModal"]),
|
|
@@ -10,13 +10,14 @@
|
|
|
10
10
|
<div class="side-by-side">
|
|
11
11
|
<div class="div-filter">
|
|
12
12
|
<Button _key="btnSearchReport" :disabled="loading || !isValid" type="primary"
|
|
13
|
-
title="Buscar" classIcon="fas fa-file-search" size="medium"
|
|
13
|
+
title="Buscar" classIcon="fas fa-file-search" size="medium"
|
|
14
|
+
:clicked="executeSearch" />
|
|
14
15
|
</div>
|
|
15
16
|
</div>
|
|
16
17
|
<div class="side-by-side">
|
|
17
18
|
<Fields :data="header" v-model="ordering" />
|
|
18
19
|
</div>
|
|
19
|
-
<div class="side-by-side">
|
|
20
|
+
<div class="side-by-side div-filter-query">
|
|
20
21
|
<FilterQuery :filters="filters" v-model="stringFilter" />
|
|
21
22
|
</div>
|
|
22
23
|
</div>
|
|
@@ -25,6 +26,9 @@
|
|
|
25
26
|
<div v-if="liveTotalRecords != totalRecords">
|
|
26
27
|
<ProgressBar :text="`Carregando ${liveTotalRecords} registros de ${totalRecords}`"
|
|
27
28
|
:value="liveTotalRecords" :max="totalRecords" size="medium" />
|
|
29
|
+
<div class="text-center cancel" @click="stop">
|
|
30
|
+
<i class="fa-solid fa-ban"></i> Cancelar
|
|
31
|
+
</div>
|
|
28
32
|
</div>
|
|
29
33
|
<div v-if="!isValid">
|
|
30
34
|
<Alert type="info">
|
|
@@ -106,7 +110,8 @@ export default {
|
|
|
106
110
|
totalRecords: 0,
|
|
107
111
|
currentPage: 1,
|
|
108
112
|
totalPerPage: 50,
|
|
109
|
-
pagination: []
|
|
113
|
+
pagination: [],
|
|
114
|
+
cancel: false,
|
|
110
115
|
}
|
|
111
116
|
},
|
|
112
117
|
mounted() {
|
|
@@ -140,10 +145,18 @@ export default {
|
|
|
140
145
|
methods: {
|
|
141
146
|
...mapMutations("generic", ["removeLoading"]),
|
|
142
147
|
...mapActions("generic", ["getApi"]),
|
|
148
|
+
executeSearch() {
|
|
149
|
+
this.cancel = false;
|
|
150
|
+
this.data = [];
|
|
151
|
+
this.totalization = [];
|
|
152
|
+
this.getAll();
|
|
153
|
+
},
|
|
143
154
|
getAll() {
|
|
144
|
-
if (this.isValid) {
|
|
155
|
+
if (this.isValid && !this.cancel) {
|
|
145
156
|
this.removeLoading(["btnSearchReport"]);
|
|
146
157
|
this.loading = true;
|
|
158
|
+
this.cancel = false;
|
|
159
|
+
|
|
147
160
|
let params = {
|
|
148
161
|
url: this.urlGet,
|
|
149
162
|
obj:
|
|
@@ -184,7 +197,6 @@ export default {
|
|
|
184
197
|
this.show = true;
|
|
185
198
|
setTimeout(function () {
|
|
186
199
|
self.loading = false;
|
|
187
|
-
|
|
188
200
|
}, 500);
|
|
189
201
|
|
|
190
202
|
this.verifyIfPagination();
|
|
@@ -202,6 +214,10 @@ export default {
|
|
|
202
214
|
} else {
|
|
203
215
|
this.currentPage = 1;
|
|
204
216
|
}
|
|
217
|
+
},
|
|
218
|
+
stop() {
|
|
219
|
+
this.cancel = true;
|
|
220
|
+
this.loading = false;
|
|
205
221
|
}
|
|
206
222
|
},
|
|
207
223
|
watch: {
|
|
@@ -266,6 +282,10 @@ export default {
|
|
|
266
282
|
margin-bottom: -12px;
|
|
267
283
|
}
|
|
268
284
|
|
|
285
|
+
.div-filter-query {
|
|
286
|
+
margin-top: 10px;
|
|
287
|
+
}
|
|
288
|
+
|
|
269
289
|
.footer {
|
|
270
290
|
margin-bottom: 10px;
|
|
271
291
|
}
|
|
@@ -273,4 +293,9 @@ export default {
|
|
|
273
293
|
.icon-excel {
|
|
274
294
|
color: green;
|
|
275
295
|
}
|
|
296
|
+
|
|
297
|
+
.cancel {
|
|
298
|
+
color: red;
|
|
299
|
+
cursor: pointer;
|
|
300
|
+
}
|
|
276
301
|
</style>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
</tr>
|
|
13
13
|
</thead>
|
|
14
14
|
<tbody>
|
|
15
|
-
<tr v-for="(row, index) in data" :key="index" :style="row.rowCss">
|
|
15
|
+
<tr class="div-row" v-for="(row, index) in data" :key="index" :style="row.rowCss">
|
|
16
16
|
<td v-for="(obj, ind) in header" :key="ind">
|
|
17
17
|
<div :style="obj.styleBody" @click="sendEvent(obj.eventName, row)"
|
|
18
18
|
:class="convertClass(row[obj.fieldComparison], obj.classCssBody)">
|
|
@@ -105,4 +105,8 @@ table tbody tr td {
|
|
|
105
105
|
font-size: 12px;
|
|
106
106
|
min-width: 100px;
|
|
107
107
|
}
|
|
108
|
+
|
|
109
|
+
.div-row {
|
|
110
|
+
border-bottom: 1px solid #D3D3D3;
|
|
111
|
+
}
|
|
108
112
|
</style>
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
</b-row>
|
|
46
46
|
</div>
|
|
47
47
|
</div>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
</div>
|
|
49
|
+
<div class="text-center">
|
|
50
|
+
<Button _key="btnApply" title="Aplicar" backGroundColor="#017AFF" color="white" size="small"
|
|
51
|
+
:clicked="apply" />
|
|
52
52
|
</div>
|
|
53
53
|
</div>
|
|
54
54
|
</template>
|
|
@@ -2,29 +2,15 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<b-row>
|
|
4
4
|
<b-col sm="12">
|
|
5
|
-
<InputText
|
|
6
|
-
|
|
7
|
-
field="name"
|
|
8
|
-
:formName="formName"
|
|
9
|
-
:required="true"
|
|
10
|
-
:maxLength="40"
|
|
11
|
-
v-model="report.name"
|
|
12
|
-
:markFormDirty="false"
|
|
13
|
-
/>
|
|
5
|
+
<InputText title="Nome" field="name" :formName="formName" :required="true" :maxLength="40" v-model="report.name"
|
|
6
|
+
:markFormDirty="false" />
|
|
14
7
|
</b-col>
|
|
15
8
|
</b-row>
|
|
16
9
|
<b-row>
|
|
17
10
|
<b-col sm="12">
|
|
18
11
|
<div class="text-right">
|
|
19
|
-
<Button
|
|
20
|
-
|
|
21
|
-
type="success"
|
|
22
|
-
title="Salvar"
|
|
23
|
-
:disabled="!isFormValid(formName)"
|
|
24
|
-
classIcon="fas fa-save"
|
|
25
|
-
size="medium"
|
|
26
|
-
:clicked="saveReport"
|
|
27
|
-
/>
|
|
12
|
+
<Button _key="btnSaveReport" type="success" title="Salvar" :disabled="!isFormValid(formName)"
|
|
13
|
+
classIcon="fas fa-save" size="medium" :clicked="saveReport" />
|
|
28
14
|
</div>
|
|
29
15
|
</b-col>
|
|
30
16
|
</b-row>
|