@nixweb/nixloc-ui 0.0.180 → 0.0.182
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/InputDecimal.vue +7 -17
- package/src/component/forms/InputDecimalDiscount.vue +17 -41
- package/src/component/forms/RadioGroup.vue +1 -0
- package/src/component/layout/Menu.vue +25 -36
- package/src/component/template/ViewTemplateReportPreview.vue +19 -5
package/package.json
CHANGED
|
@@ -6,26 +6,13 @@
|
|
|
6
6
|
<Tip :field="field" :formName="formName" />
|
|
7
7
|
</label>
|
|
8
8
|
<div class="inner-addon right-addon">
|
|
9
|
-
<div
|
|
10
|
-
class="required glyphicon"
|
|
11
|
-
v-if="notifications.length > 0 && formDirty"
|
|
12
|
-
>
|
|
9
|
+
<div class="required glyphicon" v-if="notifications.length > 0 && formDirty">
|
|
13
10
|
<i class="fas fa-exclamation-triangle"></i>
|
|
14
11
|
</div>
|
|
15
12
|
<slot v-else></slot>
|
|
16
|
-
<vue-numeric
|
|
17
|
-
:
|
|
18
|
-
|
|
19
|
-
v-on:keyup.enter.native="pressedEnter"
|
|
20
|
-
:class="{ 'is-invalid': notifications.length > 0 && formDirty }"
|
|
21
|
-
:placeholder="placeholder"
|
|
22
|
-
:disabled="disabled"
|
|
23
|
-
currency="R$"
|
|
24
|
-
separator="."
|
|
25
|
-
:minus="allowNegative"
|
|
26
|
-
v-bind:precision="2"
|
|
27
|
-
v-model="valueLocal"
|
|
28
|
-
></vue-numeric>
|
|
13
|
+
<vue-numeric :style="_style" class="form-control" v-on:keyup.enter.native="pressedEnter"
|
|
14
|
+
:class="{ 'is-invalid': notifications.length > 0 && formDirty }" :placeholder="placeholder" :disabled="disabled"
|
|
15
|
+
currency="R$" separator="." :minus="allowNegative" v-bind:precision="2" v-model="valueLocal"></vue-numeric>
|
|
29
16
|
</div>
|
|
30
17
|
|
|
31
18
|
<div v-if="formDirty">
|
|
@@ -147,14 +134,17 @@ export default {
|
|
|
147
134
|
color: #0a0a0a;
|
|
148
135
|
letter-spacing: 0.5px !important;
|
|
149
136
|
}
|
|
137
|
+
|
|
150
138
|
.success {
|
|
151
139
|
color: #94aa2a;
|
|
152
140
|
font-size: 14px;
|
|
153
141
|
}
|
|
142
|
+
|
|
154
143
|
.invalid {
|
|
155
144
|
color: #f0134d;
|
|
156
145
|
font-size: 14px;
|
|
157
146
|
}
|
|
147
|
+
|
|
158
148
|
.margin-button {
|
|
159
149
|
margin-top: -2px;
|
|
160
150
|
}
|
|
@@ -1,47 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<InputDecimal
|
|
4
|
-
v-
|
|
5
|
-
:title="title"
|
|
6
|
-
field="discount"
|
|
7
|
-
:required="required"
|
|
8
|
-
:formName="formName"
|
|
9
|
-
_style="color:red;"
|
|
10
|
-
:disabled="disabled"
|
|
11
|
-
v-model="discount.discount"
|
|
12
|
-
>
|
|
3
|
+
<InputDecimal v-if="!discount.discountByPercentage" :title="title" field="discount" :required="required"
|
|
4
|
+
:formName="formName" _style="color:red;" :disabled="disabled" v-model="discount.discount">
|
|
13
5
|
<div class="glyphicon margin-button">
|
|
14
|
-
<Button
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
></InputDecimal>
|
|
24
|
-
<InputNumber
|
|
25
|
-
v-if="discount.discountByPercentage"
|
|
26
|
-
:title="title"
|
|
27
|
-
field="discount"
|
|
28
|
-
:formName="formName"
|
|
29
|
-
:required="false"
|
|
30
|
-
:disabled="disabled"
|
|
31
|
-
_style="color:red;"
|
|
32
|
-
:maxLength="5"
|
|
33
|
-
type="float"
|
|
34
|
-
v-model="discount.discount"
|
|
35
|
-
><div class="glyphicon margin-button">
|
|
36
|
-
<Button
|
|
37
|
-
_key="btnDiscount"
|
|
38
|
-
title=""
|
|
39
|
-
type="primary"
|
|
40
|
-
:disabled="disabled"
|
|
41
|
-
classIcon="fa-solid fa-percent"
|
|
42
|
-
size="small"
|
|
43
|
-
:clicked="change"
|
|
44
|
-
/>
|
|
6
|
+
<Button _key="btnDiscount" title="" type="primary" classIcon="fa-solid fa-brazilian-real-sign" size="small"
|
|
7
|
+
:disabled="disabled" :clicked="change" />
|
|
8
|
+
</div>
|
|
9
|
+
</InputDecimal>
|
|
10
|
+
<InputNumber v-if="discount.discountByPercentage" :title="title" field="discount" :formName="formName"
|
|
11
|
+
:required="false" :disabled="disabled" _style="color:red;" :maxLength="5" type="float" v-model="discount.discount">
|
|
12
|
+
<div class="glyphicon margin-button">
|
|
13
|
+
<Button _key="btnDiscount" title="" type="primary" :disabled="disabled" classIcon="fa-solid fa-percent"
|
|
14
|
+
size="small" :clicked="change" />
|
|
45
15
|
</div>
|
|
46
16
|
</InputNumber>
|
|
47
17
|
</div>
|
|
@@ -68,6 +38,12 @@ export default {
|
|
|
68
38
|
discount: { discountByPercentage: false, discount: 0 },
|
|
69
39
|
};
|
|
70
40
|
},
|
|
41
|
+
mounted() {
|
|
42
|
+
let self = this;
|
|
43
|
+
setTimeout(function () {
|
|
44
|
+
self.discount = self.value;
|
|
45
|
+
}, 100);
|
|
46
|
+
},
|
|
71
47
|
methods: {
|
|
72
48
|
...mapMutations("generic", ["removeLoading"]),
|
|
73
49
|
change() {
|
|
@@ -10,22 +10,12 @@
|
|
|
10
10
|
<div class="text-center">
|
|
11
11
|
<img class="photo" :src="urlPhoto" />
|
|
12
12
|
</div>
|
|
13
|
-
<div
|
|
14
|
-
class="
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
href="#"
|
|
20
|
-
@click.prevent="openSubMenu(item.module)"
|
|
21
|
-
:class="highlightSession(item.module)"
|
|
22
|
-
>
|
|
23
|
-
<div
|
|
24
|
-
:class="{
|
|
25
|
-
'icon-active': menuActive == item.module,
|
|
26
|
-
'icon-normal': menuActive != item.module,
|
|
27
|
-
}"
|
|
28
|
-
>
|
|
13
|
+
<div class="box-main" v-for="(item, index) in menuFilter(true)" :key="index">
|
|
14
|
+
<a href="#" @click.prevent="openSubMenu(item.module)" :class="highlightSession(item.module)">
|
|
15
|
+
<div :class="{
|
|
16
|
+
'icon-active': menuActive == item.module,
|
|
17
|
+
'icon-normal': menuActive != item.module,
|
|
18
|
+
}">
|
|
29
19
|
<b-row>
|
|
30
20
|
<b-col sm="12">
|
|
31
21
|
<div class="box-icon text-center">
|
|
@@ -61,29 +51,15 @@
|
|
|
61
51
|
<li v-for="(item, index) in subMenuFilter(false)" :key="index">
|
|
62
52
|
<h5 v-if="item.type === 'group'" class="context-menu__title">
|
|
63
53
|
<span class="sub-title"> {{ item.groupName }}</span>
|
|
64
|
-
<span
|
|
65
|
-
v-if="index === 0"
|
|
66
|
-
@click.prevent="hideSubMenu"
|
|
67
|
-
class="context-menu__btn-close icon-close"
|
|
68
|
-
href="#"
|
|
69
|
-
>
|
|
54
|
+
<span v-if="index === 0" @click.prevent="hideSubMenu" class="context-menu__btn-close icon-close" href="#">
|
|
70
55
|
<i class="fas fa-times-circle"></i>
|
|
71
56
|
</span>
|
|
72
57
|
</h5>
|
|
73
58
|
|
|
74
|
-
<a
|
|
75
|
-
v-else
|
|
76
|
-
href="#"
|
|
77
|
-
@click.prevent="navegateTo(item)"
|
|
78
|
-
:class="classSubMenu(item.title)"
|
|
79
|
-
>
|
|
59
|
+
<a v-else href="#" @click.prevent="navegateTo(item)" :class="classSubMenu(item.title)">
|
|
80
60
|
<b-row>
|
|
81
61
|
<b-col sm="1">
|
|
82
|
-
<i
|
|
83
|
-
class="menu-icon"
|
|
84
|
-
:style="'color:' + item.iconColor"
|
|
85
|
-
:class="item.icon"
|
|
86
|
-
></i>
|
|
62
|
+
<i class="menu-icon" :style="'color:' + item.iconColor" :class="item.icon"></i>
|
|
87
63
|
</b-col>
|
|
88
64
|
<b-col sm="10">
|
|
89
65
|
<span class="title-sub"> {{ item.title }}</span>
|
|
@@ -158,15 +134,27 @@ export default {
|
|
|
158
134
|
subMenuFilter(isModule) {
|
|
159
135
|
let filter = [];
|
|
160
136
|
let self = this;
|
|
137
|
+
let userLogged = this.userLogged.user.userName;
|
|
161
138
|
this.menu.items.forEach(function (obj) {
|
|
162
|
-
|
|
163
|
-
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
if (obj.isModule == isModule && obj.module === self.module) {
|
|
142
|
+
if (obj.isVisible == "all")
|
|
143
|
+
filter.push(obj);
|
|
144
|
+
|
|
145
|
+
if (obj.isVisible == "support" && userLogged == "UserTemp")
|
|
146
|
+
filter.push(obj);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
console.log(obj.isVisible);
|
|
150
|
+
console.log(userLogged);
|
|
151
|
+
|
|
164
152
|
});
|
|
165
153
|
return filter;
|
|
166
154
|
},
|
|
167
155
|
},
|
|
168
156
|
computed: {
|
|
169
|
-
...mapState("user", ["menu"]),
|
|
157
|
+
...mapState("user", ["menu", "userLogged"]),
|
|
170
158
|
},
|
|
171
159
|
watch: {
|
|
172
160
|
$route: {
|
|
@@ -184,6 +172,7 @@ export default {
|
|
|
184
172
|
width: 350px;
|
|
185
173
|
z-index: 1000;
|
|
186
174
|
}
|
|
175
|
+
|
|
187
176
|
.div-logo {
|
|
188
177
|
padding-top: 12px;
|
|
189
178
|
padding-left: 10px;
|
|
@@ -6,9 +6,12 @@
|
|
|
6
6
|
<br />
|
|
7
7
|
<Loading type="line" :center="false" v-show="loadingSearch" />
|
|
8
8
|
<div v-show="!showFilter">
|
|
9
|
-
<div class="div-progress" v-if="liveTotalRecords != baseParams.totalRecords && !loadingSearch">
|
|
10
|
-
<ProgressBar :text="`Carregando ${liveTotalRecords}
|
|
9
|
+
<div class="div-progress" v-if="liveTotalRecords != baseParams.totalRecords && !loadingSearch && !cancel">
|
|
10
|
+
<ProgressBar :text="`Carregando ${liveTotalRecords} registros de ${baseParams.totalRecords}`"
|
|
11
11
|
:value="liveTotalRecords" :max="baseParams.totalRecords" size="medium" />
|
|
12
|
+
<div class="text-center cancel" @click="stop">
|
|
13
|
+
<i class="fa-solid fa-ban"></i> Cancelar
|
|
14
|
+
</div>
|
|
12
15
|
</div>
|
|
13
16
|
<Molded>
|
|
14
17
|
<b-row>
|
|
@@ -140,6 +143,7 @@ export default {
|
|
|
140
143
|
isLoading: false,
|
|
141
144
|
showBodyReport: false,
|
|
142
145
|
showFilter: false,
|
|
146
|
+
cancel: false,
|
|
143
147
|
};
|
|
144
148
|
},
|
|
145
149
|
mounted() {
|
|
@@ -184,6 +188,7 @@ export default {
|
|
|
184
188
|
getAll() {
|
|
185
189
|
this.btnSearchDisabled = true;
|
|
186
190
|
this.loadingSearch = true;
|
|
191
|
+
this.cancel = false;
|
|
187
192
|
|
|
188
193
|
if (this.rulesIsValid) {
|
|
189
194
|
this.getTotalRecords();
|
|
@@ -284,6 +289,12 @@ export default {
|
|
|
284
289
|
self.removeLoading(["panel"]);
|
|
285
290
|
}, 350);
|
|
286
291
|
},
|
|
292
|
+
stop() {
|
|
293
|
+
this.cancel = true;
|
|
294
|
+
this.btnSearchDisabled = false;
|
|
295
|
+
this.btnSaveDisabled = false;
|
|
296
|
+
this.isLoading = false;
|
|
297
|
+
}
|
|
287
298
|
},
|
|
288
299
|
computed: {
|
|
289
300
|
...mapGetters("generic", ["showModal", "event"]),
|
|
@@ -322,12 +333,10 @@ export default {
|
|
|
322
333
|
},
|
|
323
334
|
"content.totalPages": {
|
|
324
335
|
handler(totalPages) {
|
|
325
|
-
if (totalPages.length > 0) {
|
|
326
|
-
console.log("Total Pages...");
|
|
336
|
+
if (totalPages.length > 0 && !this.cancel) {
|
|
327
337
|
let self = this;
|
|
328
338
|
setTimeout(function () {
|
|
329
339
|
self.getAllManyPages();
|
|
330
|
-
console.log("Get All Many Pages...");
|
|
331
340
|
}, 1000);
|
|
332
341
|
}
|
|
333
342
|
if (totalPages.length == 1) this.isLoading = false;
|
|
@@ -406,4 +415,9 @@ export default {
|
|
|
406
415
|
.body-report {
|
|
407
416
|
margin-top: 30px;
|
|
408
417
|
}
|
|
418
|
+
|
|
419
|
+
.cancel {
|
|
420
|
+
color: red;
|
|
421
|
+
cursor: pointer;
|
|
422
|
+
}
|
|
409
423
|
</style>
|