@nixweb/nixloc-ui 0.0.127 → 0.0.129
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 +9 -1
- package/src/component/forms/Button.vue +3 -2
- package/src/component/forms/ButtonGroup.vue +57 -0
- package/src/component/forms/ButtonSub.vue +98 -0
- package/src/component/forms/CheckboxGroup.vue +7 -0
- package/src/component/forms/CheckboxSimple.vue +5 -1
- package/src/component/forms/DateTime.vue +5 -1
- package/src/component/forms/Dropdown.vue +48 -30
- package/src/component/forms/ImageUpload.vue +12 -4
- package/src/component/forms/IncrementDecrement.vue +106 -0
- package/src/component/forms/InputDecimal.vue +17 -5
- package/src/component/forms/InputDecimalDiscount.vue +92 -0
- package/src/component/forms/InputNumber.vue +6 -0
- package/src/component/forms/InputText.vue +19 -2
- package/src/component/forms/InputTextEdit.vue +68 -0
- package/src/component/forms/RadioGroup.vue +2 -2
- package/src/component/forms/Select.vue +14 -3
- package/src/component/forms/Toggle.vue +3 -1
- package/src/component/layout/Account.vue +3 -3
- package/src/component/layout/Badge.vue +6 -5
- package/src/component/layout/FixedBar.vue +39 -7
- package/src/component/layout/Gantt.vue +130 -0
- package/src/component/layout/Header.vue +3 -0
- package/src/component/layout/IconMolded.vue +48 -0
- package/src/component/layout/Menu.vue +12 -14
- package/src/component/layout/Molded.vue +4 -3
- package/src/component/layout/Panel.vue +2 -2
- package/src/component/layout/Tab.vue +135 -0
- package/src/component/rental/DisplayCalculatePeriod.vue +49 -0
- package/src/component/rental/DisplayPeriodRent.vue +56 -0
- package/src/component/rental/DisplayTotalization.vue +56 -0
- package/src/component/shared/Confirmation.vue +21 -2
- package/src/component/shared/DocumentPreview.vue +3 -2
- package/src/component/shared/DocumentPublic.vue +34 -0
- package/src/component/shared/FullCalendar.vue +159 -0
- package/src/component/shared/HeaderReport.vue +1 -1
- package/src/component/shared/{BodyReport.vue → Report.vue} +8 -7
- package/src/component/shared/SaveCancel.vue +8 -2
- package/src/component/shared/Search.vue +1 -1
- package/src/component/shared/SelectOption.vue +18 -9
- package/src/component/shared/Table.vue +32 -123
- package/src/component/shared/TableDraggable.vue +127 -0
- package/src/component/shared/TableItem.vue +177 -0
- package/src/component/shared/TimeLine.vue +47 -0
- package/src/component/shared/TotalizationReport.vue +59 -0
- package/src/component/shared/query-builder/ConvertToOdata.js +3 -9
- package/src/component/shared/query-builder/DynamicComponent.vue +5 -1
- package/src/component/shared/query-builder/DynamicComponentList.vue +20 -9
- package/src/component/template/ListViewWithDataHandler.vue +26 -4
- package/src/component/template/ReportCreateUpdate.vue +9 -2
- package/src/component/template/ViewTemplateConfiguration.vue +1 -0
- package/src/component/template/ViewTemplateDocumentView.vue +1 -0
- package/src/component/template/ViewTemplateReportList.vue +1 -1
- package/src/component/template/ViewTemplateReportPreview.vue +55 -12
- package/src/component/value-objects/Contact.vue +7 -0
- package/src/component/value-objects/Person.vue +15 -0
- package/src/store/modules/generic.js +124 -75
- package/src/store/modules/report.js +37 -19
- package/src/store/modules/user.js +6 -0
- package/src/component/shared/query-builder/Totalization.vue +0 -38
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<img :src="urlImage" />
|
|
7
7
|
</div>
|
|
8
8
|
</li>
|
|
9
|
-
<li>
|
|
9
|
+
<!-- <li>
|
|
10
10
|
<div :class="{ 'menu-active': menuActive == 'Dashboard' }">
|
|
11
11
|
<a
|
|
12
12
|
href="#"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<div class="title">Dashboard</div>
|
|
26
26
|
</a>
|
|
27
27
|
</div>
|
|
28
|
-
</li
|
|
28
|
+
</li>-->
|
|
29
29
|
<li v-for="(item, index) in menuFilter(true)" :key="index">
|
|
30
30
|
<div :class="{ 'menu-active': menuActive == item.module }">
|
|
31
31
|
<a
|
|
@@ -72,7 +72,9 @@
|
|
|
72
72
|
:class="classSubMenu(item.title)"
|
|
73
73
|
>
|
|
74
74
|
<b-row>
|
|
75
|
-
<b-col sm="1">
|
|
75
|
+
<b-col sm="1">
|
|
76
|
+
<i :class="item.icon" aria-hidden="true"></i
|
|
77
|
+
></b-col>
|
|
76
78
|
<b-col sm="10">
|
|
77
79
|
<span class="title-sub"> {{ item.title }}</span></b-col
|
|
78
80
|
></b-row
|
|
@@ -139,13 +141,14 @@ export default {
|
|
|
139
141
|
this.menu.items.forEach(function (obj) {
|
|
140
142
|
if (obj.isModule == isModule) filter.push(obj);
|
|
141
143
|
});
|
|
142
|
-
return filter;
|
|
144
|
+
return filter.sort((a, b) => a.order - b.order);
|
|
143
145
|
},
|
|
144
146
|
subMenuFilter(isModule) {
|
|
145
147
|
let filter = [];
|
|
146
148
|
let self = this;
|
|
147
149
|
this.menu.items.forEach(function (obj) {
|
|
148
|
-
if (obj.isModule == isModule && obj.module === self.module)
|
|
150
|
+
if (obj.isModule == isModule && obj.module === self.module)
|
|
151
|
+
filter.push(obj);
|
|
149
152
|
});
|
|
150
153
|
return filter;
|
|
151
154
|
},
|
|
@@ -169,19 +172,16 @@ export default {
|
|
|
169
172
|
width: 350px;
|
|
170
173
|
z-index: 1000;
|
|
171
174
|
}
|
|
172
|
-
|
|
173
175
|
.div-logo {
|
|
174
|
-
padding-top:
|
|
175
|
-
padding-bottom:
|
|
176
|
+
padding-top: 4px;
|
|
177
|
+
padding-bottom: 6px;
|
|
176
178
|
}
|
|
177
|
-
|
|
178
179
|
.div-icon {
|
|
179
180
|
width: 35px;
|
|
180
181
|
height: 35px;
|
|
181
182
|
padding-top: 5px;
|
|
182
183
|
margin-left: 38px;
|
|
183
184
|
}
|
|
184
|
-
|
|
185
185
|
.icon-close {
|
|
186
186
|
margin-right: 60px;
|
|
187
187
|
}
|
|
@@ -198,7 +198,6 @@ export default {
|
|
|
198
198
|
text-align: center;
|
|
199
199
|
width: 100%;
|
|
200
200
|
}
|
|
201
|
-
|
|
202
201
|
.title-sub {
|
|
203
202
|
margin-left: -3px;
|
|
204
203
|
font-weight: 400;
|
|
@@ -207,9 +206,8 @@ export default {
|
|
|
207
206
|
font-size: 16px;
|
|
208
207
|
font-weight: normal;
|
|
209
208
|
}
|
|
210
|
-
|
|
211
209
|
img {
|
|
212
|
-
height:
|
|
213
|
-
margin-top:
|
|
210
|
+
height: 36px;
|
|
211
|
+
margin-top: 5px;
|
|
214
212
|
}
|
|
215
213
|
</style>
|
|
@@ -10,18 +10,19 @@ export default {
|
|
|
10
10
|
props: {
|
|
11
11
|
borderRadius: {
|
|
12
12
|
type: Number,
|
|
13
|
-
default:
|
|
13
|
+
default: 6,
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
16
|
};
|
|
17
17
|
</script>
|
|
18
18
|
<style scoped>
|
|
19
19
|
.molded {
|
|
20
|
-
border: 1px solid #
|
|
21
|
-
background-color:
|
|
20
|
+
border: 1px solid #EAEDF3;
|
|
21
|
+
background-color: white;
|
|
22
22
|
padding-top: 15px;
|
|
23
23
|
padding-left: 30px;
|
|
24
24
|
padding-right: 30px;
|
|
25
25
|
padding-bottom: 10px;
|
|
26
|
+
box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 3%);
|
|
26
27
|
}
|
|
27
28
|
</style>
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<b-tabs v-model="tabIndex" id="custom-tab">
|
|
4
|
+
<template #tabs-start v-if="tabs.length > 8">
|
|
5
|
+
<div class="arrow-left">
|
|
6
|
+
<span class="icon">
|
|
7
|
+
<i class="fa-solid fa-circle-chevron-left" @click="back()"></i>
|
|
8
|
+
</span>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
<b-tab v-for="i in tabs" :key="'dyn-tab-' + i" :title="title(i).title">
|
|
12
|
+
<slot :name="i"></slot>
|
|
13
|
+
</b-tab>
|
|
14
|
+
<template #tabs-end v-if="tabs.length > 8">
|
|
15
|
+
<div class="arrow-right">
|
|
16
|
+
<span class="icon">
|
|
17
|
+
<i class="fa-solid fa-circle-chevron-right" @click="prev()"></i>
|
|
18
|
+
</span>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
</b-tabs>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script>
|
|
26
|
+
export default {
|
|
27
|
+
props: {
|
|
28
|
+
initialTabs: Array,
|
|
29
|
+
value: Number,
|
|
30
|
+
},
|
|
31
|
+
data() {
|
|
32
|
+
return {
|
|
33
|
+
tabIndex: 0,
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
created() {
|
|
37
|
+
this.tabIndex = this.value;
|
|
38
|
+
},
|
|
39
|
+
computed: {
|
|
40
|
+
tabs() {
|
|
41
|
+
let tabs = [];
|
|
42
|
+
this.initialTabs.forEach((item) => {
|
|
43
|
+
tabs.push(item.index);
|
|
44
|
+
});
|
|
45
|
+
return tabs;
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
mounted() {
|
|
49
|
+
var container = document.getElementById("custom-tab__BV_tab_controls_");
|
|
50
|
+
container.classList.remove("nav");
|
|
51
|
+
if (this.tabs.length > 8) container.classList.add("nav-custom");
|
|
52
|
+
if (this.tabs.length <= 8) container.classList.add("nav-default");
|
|
53
|
+
},
|
|
54
|
+
methods: {
|
|
55
|
+
title(index) {
|
|
56
|
+
var ret = this.initialTabs.find((x) => x.index == index);
|
|
57
|
+
return ret;
|
|
58
|
+
},
|
|
59
|
+
prev() {
|
|
60
|
+
var container = document.getElementById("custom-tab__BV_tab_controls_");
|
|
61
|
+
this.sideScroll(container, "right", 25, 100, 10);
|
|
62
|
+
},
|
|
63
|
+
back() {
|
|
64
|
+
var container = document.getElementById("custom-tab__BV_tab_controls_");
|
|
65
|
+
this.sideScroll(container, "left", 25, 100, 10);
|
|
66
|
+
},
|
|
67
|
+
sideScroll(element, direction, speed, distance, step) {
|
|
68
|
+
let scrollAmount = 0;
|
|
69
|
+
var slideTimer = setInterval(function () {
|
|
70
|
+
if (direction == "left") {
|
|
71
|
+
element.scrollLeft -= step;
|
|
72
|
+
} else {
|
|
73
|
+
element.scrollLeft += step;
|
|
74
|
+
}
|
|
75
|
+
scrollAmount += step;
|
|
76
|
+
if (scrollAmount >= distance) {
|
|
77
|
+
window.clearInterval(slideTimer);
|
|
78
|
+
}
|
|
79
|
+
}, speed);
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
watch: {
|
|
83
|
+
tabIndex(tabIndex) {
|
|
84
|
+
this.$emit("input", tabIndex);
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
</script>
|
|
89
|
+
<style>
|
|
90
|
+
.arrow-left {
|
|
91
|
+
position: absolute;
|
|
92
|
+
margin-top: 28px;
|
|
93
|
+
left: 50%;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.arrow-right {
|
|
97
|
+
position: absolute;
|
|
98
|
+
margin-top: 28px;
|
|
99
|
+
left: 53%;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.nav-default {
|
|
103
|
+
display: flex;
|
|
104
|
+
flex-wrap: wrap;
|
|
105
|
+
padding-left: 0;
|
|
106
|
+
margin-bottom: 0;
|
|
107
|
+
list-style: none;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.nav-custom {
|
|
111
|
+
display: flex;
|
|
112
|
+
flex-wrap: nowrap !important;
|
|
113
|
+
padding-left: 0;
|
|
114
|
+
margin-bottom: 0;
|
|
115
|
+
list-style: none;
|
|
116
|
+
overflow: auto;
|
|
117
|
+
overflow-y: hidden;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.nav-custom::-webkit-scrollbar {
|
|
121
|
+
width: 10px;
|
|
122
|
+
height: 0px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.icon {
|
|
126
|
+
color: #c1c1c7;
|
|
127
|
+
font-size: 24px;
|
|
128
|
+
padding-left: 10px;
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.icon:hover {
|
|
133
|
+
color: #577696;
|
|
134
|
+
}
|
|
135
|
+
</style>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<span>
|
|
3
|
+
<span> (</span>
|
|
4
|
+
|
|
5
|
+
<span :style="'font-size:' + fontSize + 'px'" v-if="periodRent.year > 0">
|
|
6
|
+
<span> {{ periodRent.year }}</span>
|
|
7
|
+
<span v-if="periodRent.year == 1"> Ano</span>
|
|
8
|
+
<span v-if="periodRent.year > 1"> Anos</span>
|
|
9
|
+
</span>
|
|
10
|
+
|
|
11
|
+
<span :style="'font-size:' + fontSize + 'px'" v-if="periodRent.month > 0">
|
|
12
|
+
<span> {{ periodRent.month }}</span>
|
|
13
|
+
<span v-if="periodRent.month == 1"> Mês</span>
|
|
14
|
+
<span v-if="periodRent.month > 1"> Meses</span>
|
|
15
|
+
</span>
|
|
16
|
+
|
|
17
|
+
<span :style="'font-size:' + fontSize + 'px'" v-if="periodRent.day > 0">
|
|
18
|
+
<span> {{ periodRent.day }}</span>
|
|
19
|
+
<span v-if="periodRent.day == 1"> Dia</span>
|
|
20
|
+
<span v-if="periodRent.day > 1"> Dias</span>
|
|
21
|
+
</span>
|
|
22
|
+
|
|
23
|
+
<span :style="'font-size:' + fontSize + 'px'" v-if="periodRent.hour > 0">
|
|
24
|
+
<span> {{ periodRent.hour }}</span>
|
|
25
|
+
<span v-if="periodRent.hour == 1"> Hora</span>
|
|
26
|
+
<span v-if="periodRent.hour > 1"> Horas</span>
|
|
27
|
+
</span>
|
|
28
|
+
|
|
29
|
+
<span :style="'font-size:' + fontSize + 'px'" v-if="periodRent.minute > 0">
|
|
30
|
+
<span> {{ periodRent.minute }}</span>
|
|
31
|
+
<span v-if="periodRent.minute == 1"> Minuto</span>
|
|
32
|
+
<span v-if="periodRent.minute > 1"> Minutos</span>
|
|
33
|
+
</span>
|
|
34
|
+
|
|
35
|
+
<span> )</span>
|
|
36
|
+
</span>
|
|
37
|
+
</template>
|
|
38
|
+
<script>
|
|
39
|
+
export default {
|
|
40
|
+
name: "DisplayCalculatePeriod",
|
|
41
|
+
props: {
|
|
42
|
+
periodRent: Object,
|
|
43
|
+
fontSize: {
|
|
44
|
+
type: Number,
|
|
45
|
+
default: 16,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
</script>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<span>
|
|
4
|
+
<slot name="start"></slot>
|
|
5
|
+
</span>
|
|
6
|
+
<span class="title-delivery" v-if="showDeliveryDevolution"
|
|
7
|
+
>{{ periodRent.deliveryDateHour }}
|
|
8
|
+
</span>
|
|
9
|
+
|
|
10
|
+
<span v-show="!showOnlyDeliveryDevolution">
|
|
11
|
+
<span class="title-main" :style="'font-size:' + fontSize + 'px'">{{
|
|
12
|
+
periodRent.startDateHour
|
|
13
|
+
}}</span>
|
|
14
|
+
-
|
|
15
|
+
<span class="title-main" :style="'font-size:' + fontSize + 'px'">{{
|
|
16
|
+
periodRent.endDateHour
|
|
17
|
+
}}</span>
|
|
18
|
+
</span>
|
|
19
|
+
|
|
20
|
+
<span v-show="!showOnlyDeliveryDevolution">
|
|
21
|
+
<DisplayCalculatePeriod :fontSize="fontSize" :periodRent="periodRent" />
|
|
22
|
+
</span>
|
|
23
|
+
|
|
24
|
+
<span class="title-devolution" v-if="showDeliveryDevolution">
|
|
25
|
+
{{ periodRent.devolutionDateHour }}
|
|
26
|
+
</span>
|
|
27
|
+
</div>
|
|
28
|
+
</template>
|
|
29
|
+
<script>
|
|
30
|
+
import DisplayCalculatePeriod from "./DisplayCalculatePeriod.vue";
|
|
31
|
+
|
|
32
|
+
export default {
|
|
33
|
+
name: "DisplayPeriodRent",
|
|
34
|
+
props: {
|
|
35
|
+
periodRent: Object,
|
|
36
|
+
showOnlyDeliveryDevolution: Boolean,
|
|
37
|
+
showDeliveryDevolution: Boolean,
|
|
38
|
+
fontSize: {
|
|
39
|
+
type: Number,
|
|
40
|
+
default: 16,
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
components: {
|
|
44
|
+
DisplayCalculatePeriod,
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
</script>
|
|
48
|
+
<style scoped>
|
|
49
|
+
.title-delivery {
|
|
50
|
+
color: #009183;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.title-devolution {
|
|
54
|
+
color: #3d4eae;
|
|
55
|
+
}
|
|
56
|
+
</style>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="main side-by-side">
|
|
3
|
+
<div class="molded-totalization">
|
|
4
|
+
<div class="title">{{ title }}</div>
|
|
5
|
+
<div class="value" v-if="currency" :style="_style">
|
|
6
|
+
{{ value | currency }}
|
|
7
|
+
</div>
|
|
8
|
+
<div class="value" v-else :style="_style">
|
|
9
|
+
{{ value }}
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
<script>
|
|
15
|
+
export default {
|
|
16
|
+
name: "DisplayTotalization",
|
|
17
|
+
props: {
|
|
18
|
+
title: String,
|
|
19
|
+
currency: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: true,
|
|
22
|
+
},
|
|
23
|
+
value: Number,
|
|
24
|
+
_style: String,
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
</script>
|
|
28
|
+
<style scoped>
|
|
29
|
+
.main {
|
|
30
|
+
margin-bottom: 10px;
|
|
31
|
+
margin-right: 20px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.molded-totalization {
|
|
35
|
+
height: 63px;
|
|
36
|
+
border: 1px solid #dbdfe9;
|
|
37
|
+
border-radius: 30px;
|
|
38
|
+
padding-left: 8px;
|
|
39
|
+
padding-right: 15px;
|
|
40
|
+
margin-bottom: 20px;
|
|
41
|
+
font-size: 13px;
|
|
42
|
+
font-weight: 400;
|
|
43
|
+
min-width: 180px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.title {
|
|
47
|
+
padding-left: 10px;
|
|
48
|
+
color: black !important;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.value {
|
|
52
|
+
padding-left: 10px;
|
|
53
|
+
font-size: 18px;
|
|
54
|
+
font-weight: 700;
|
|
55
|
+
}
|
|
56
|
+
</style>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
<slot></slot>
|
|
5
5
|
</div>
|
|
6
6
|
<Modal
|
|
7
|
+
v-if="isModal"
|
|
7
8
|
:title="title"
|
|
8
9
|
:width="450"
|
|
9
10
|
:height="250"
|
|
@@ -28,6 +29,22 @@
|
|
|
28
29
|
</div>
|
|
29
30
|
</b-col>
|
|
30
31
|
</Modal>
|
|
32
|
+
<div v-else class="div-button text-center">
|
|
33
|
+
<Button
|
|
34
|
+
_key="notConfirm"
|
|
35
|
+
type="edit"
|
|
36
|
+
title="cancel"
|
|
37
|
+
size="small"
|
|
38
|
+
:clicked="cancel"
|
|
39
|
+
/>
|
|
40
|
+
<Button
|
|
41
|
+
_key="confirm"
|
|
42
|
+
:type="type"
|
|
43
|
+
title="Sim, confirmar"
|
|
44
|
+
size="medium"
|
|
45
|
+
:clicked="confirm"
|
|
46
|
+
/>
|
|
47
|
+
</div>
|
|
31
48
|
</div>
|
|
32
49
|
</template>
|
|
33
50
|
|
|
@@ -47,6 +64,10 @@ export default {
|
|
|
47
64
|
title: String,
|
|
48
65
|
type: String,
|
|
49
66
|
data: Object,
|
|
67
|
+
isModal: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: true,
|
|
70
|
+
},
|
|
50
71
|
confirmed: Function,
|
|
51
72
|
},
|
|
52
73
|
methods: {
|
|
@@ -58,8 +79,6 @@ export default {
|
|
|
58
79
|
let self = this;
|
|
59
80
|
setTimeout(function () {
|
|
60
81
|
if (self.confirmed) self.confirmed(self.data);
|
|
61
|
-
self.removeLoading(["confirm"]);
|
|
62
|
-
self.hideModal();
|
|
63
82
|
}, 200);
|
|
64
83
|
},
|
|
65
84
|
cancel() {
|
|
@@ -8,7 +8,7 @@ import VRuntimeTemplate from "v-runtime-template";
|
|
|
8
8
|
import { mapGetters } from "vuex";
|
|
9
9
|
|
|
10
10
|
export default {
|
|
11
|
-
name: "
|
|
11
|
+
name: "DocumentPreview",
|
|
12
12
|
components: {
|
|
13
13
|
VRuntimeTemplate,
|
|
14
14
|
},
|
|
@@ -16,10 +16,11 @@ export default {
|
|
|
16
16
|
template: String,
|
|
17
17
|
d: Object,
|
|
18
18
|
},
|
|
19
|
+
|
|
19
20
|
methods: {
|
|
20
21
|
sMg(grN) {
|
|
21
22
|
let total = "";
|
|
22
|
-
this.d.
|
|
23
|
+
this.d.pLoc.forEach((x) => {
|
|
23
24
|
if (x.pGp === grN) return (total = x.pGpT);
|
|
24
25
|
});
|
|
25
26
|
return total;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="main">
|
|
3
|
+
<div class="content">
|
|
4
|
+
<DocumentPreview :template="template" :d="d" />
|
|
5
|
+
</div>
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
<script>
|
|
9
|
+
import DocumentPreview from "@nixweb/nixloc-ui/src/component/shared/DocumentPreview.vue";
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
name: "DocumentPublic",
|
|
13
|
+
components: {
|
|
14
|
+
DocumentPreview,
|
|
15
|
+
},
|
|
16
|
+
props: {
|
|
17
|
+
template: String,
|
|
18
|
+
d: Object,
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<style scoped>
|
|
24
|
+
.main {
|
|
25
|
+
background-color: white;
|
|
26
|
+
min-height: 900px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.content {
|
|
30
|
+
width: 1024px;
|
|
31
|
+
margin: auto;
|
|
32
|
+
padding: 10px;
|
|
33
|
+
}
|
|
34
|
+
</style>
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<Loading type="line" :center="false" v-show="loading" />
|
|
4
|
+
<FullCalendar ref="cc" :options="calendarOptions" />
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
import "@fullcalendar/core/vdom"; // solves problem with Vite
|
|
10
|
+
import FullCalendar from "@fullcalendar/vue";
|
|
11
|
+
import dayGridPlugin from "@fullcalendar/daygrid";
|
|
12
|
+
import timeGridPlugin from "@fullcalendar/timegrid";
|
|
13
|
+
import listPlugin from "@fullcalendar/list";
|
|
14
|
+
|
|
15
|
+
import interactionPlugin from "@fullcalendar/interaction";
|
|
16
|
+
import Loading from "@nixweb/nixloc-ui/src/component/shared/Loading.vue";
|
|
17
|
+
|
|
18
|
+
import { mapGetters } from "vuex";
|
|
19
|
+
|
|
20
|
+
export default {
|
|
21
|
+
components: {
|
|
22
|
+
FullCalendar,
|
|
23
|
+
Loading,
|
|
24
|
+
},
|
|
25
|
+
props: {
|
|
26
|
+
changedCalendar: Function,
|
|
27
|
+
clickedCalendar: Function,
|
|
28
|
+
clickedEvent: Function,
|
|
29
|
+
loading: Boolean,
|
|
30
|
+
},
|
|
31
|
+
data() {
|
|
32
|
+
return {
|
|
33
|
+
calendarOptions: {
|
|
34
|
+
plugins: [dayGridPlugin, timeGridPlugin, listPlugin, interactionPlugin],
|
|
35
|
+
initialView: "dayGridMonth",
|
|
36
|
+
locale: "pt-br",
|
|
37
|
+
allDayText: "Dia inteiro",
|
|
38
|
+
headerToolbar: {
|
|
39
|
+
start: "today prev,next",
|
|
40
|
+
center: "title",
|
|
41
|
+
end: "timeGridDay,dayGridWeek,dayGridMonth,listYear",
|
|
42
|
+
},
|
|
43
|
+
buttonText: {
|
|
44
|
+
today: "Hoje",
|
|
45
|
+
month: "Mês",
|
|
46
|
+
week: "Semana",
|
|
47
|
+
day: "Dia",
|
|
48
|
+
list: "Ano",
|
|
49
|
+
},
|
|
50
|
+
dateClick: this.handleDateClick,
|
|
51
|
+
eventClick: this.handleEventClick,
|
|
52
|
+
viewDidMount: this.handleEventRender,
|
|
53
|
+
datesSet: this.handleChange,
|
|
54
|
+
events: [],
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
computed: {
|
|
59
|
+
...mapGetters("generic", ["event"]),
|
|
60
|
+
},
|
|
61
|
+
methods: {
|
|
62
|
+
handleChange(arg) {
|
|
63
|
+
if (this.changedCalendar) this.changedCalendar(arg);
|
|
64
|
+
},
|
|
65
|
+
handleEventRender(arg) {},
|
|
66
|
+
handleDateClick: function (arg) {
|
|
67
|
+
if (this.clickedCalendar) this.clickedCalendar(arg);
|
|
68
|
+
},
|
|
69
|
+
handleEventClick: function (arg) {
|
|
70
|
+
if (this.clickedEvent) this.clickedEvent(arg.event._def);
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
watch: {
|
|
74
|
+
event: {
|
|
75
|
+
handler(event) {
|
|
76
|
+
if (event.name == "updateCalendar")
|
|
77
|
+
this.calendarOptions.events = event.data;
|
|
78
|
+
},
|
|
79
|
+
deep: true,
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
</script>
|
|
84
|
+
<style>
|
|
85
|
+
.fc .fc-daygrid-day.fc-day-today {
|
|
86
|
+
background-color: #f1f3f4;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.fc-button-primary {
|
|
90
|
+
background-color: #4bb4e2 !important;
|
|
91
|
+
border-color: white !important;
|
|
92
|
+
border: 0px !important;
|
|
93
|
+
margin-left: 5px !important;
|
|
94
|
+
border-radius: 15px !important;
|
|
95
|
+
font-size: 13px !important;
|
|
96
|
+
cursor: pointer !important;
|
|
97
|
+
border: none !important;
|
|
98
|
+
min-width: 33px !important;
|
|
99
|
+
font-weight: normal !important;
|
|
100
|
+
font-style: normal !important;
|
|
101
|
+
letter-spacing: 1px !important;
|
|
102
|
+
-webkit-box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 12%) !important;
|
|
103
|
+
-moz-box-shadow: 0px 10px 20px -6px rgba(0, 0, 0, 0.12) !important;
|
|
104
|
+
box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 12%) !important;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.fc-timeGridDay-button {
|
|
108
|
+
background-color: #577696 !important;
|
|
109
|
+
border-color: white !important;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.fc-dayGridWeek-button {
|
|
113
|
+
background-color: #577696 !important;
|
|
114
|
+
border-color: white !important;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.fc-dayGridMonth-button {
|
|
118
|
+
background-color: #577696 !important;
|
|
119
|
+
border-color: white !important;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.fc-listYear-button {
|
|
123
|
+
background-color: #577696 !important;
|
|
124
|
+
border-color: white !important;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.fc .fc-daygrid-day-number {
|
|
128
|
+
font-size: 16px !important;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.fc-button-active {
|
|
132
|
+
background-color: #89ceeb !important;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.fc-event-title {
|
|
136
|
+
color: black !important;
|
|
137
|
+
cursor: pointer !important;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.fc-list-day-side-text {
|
|
141
|
+
color: black !important;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.fc-list-day-text {
|
|
145
|
+
color: black !important;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.fc-col-header-cell-cushion {
|
|
149
|
+
color: black !important;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.fc-daygrid-day-number {
|
|
153
|
+
color: black !important;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.fc-button-primary:hover {
|
|
157
|
+
background: #3e90b3 !important;
|
|
158
|
+
}
|
|
159
|
+
</style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="div-header">
|
|
3
|
-
<div class="title">{{
|
|
3
|
+
<div class="title">Relatório {{ $route.params.name }}</span></div>
|
|
4
4
|
<div class="side-by-side div-tag" v-for="tag in tags" :key="tag.id">
|
|
5
5
|
<span>{{ tag.title }}</span> <span>{{ tag.value }}</span>
|
|
6
6
|
<span>,</span>
|