@nixweb/nixloc-ui 0.0.125 → 0.0.128

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.
Files changed (111) hide show
  1. package/docs/src/component/template/ViewTemplateReportPreview.drawio +210 -0
  2. package/package.json +79 -77
  3. package/src/App.vue +13 -13
  4. package/src/component/forms/Button.vue +170 -169
  5. package/src/component/forms/CheckboxGroup.vue +72 -63
  6. package/src/component/forms/CheckboxSimple.vue +46 -27
  7. package/src/component/forms/Color.vue +38 -38
  8. package/src/component/forms/DateTime.vue +167 -177
  9. package/src/component/forms/Dropdown.vue +218 -224
  10. package/src/component/forms/EditorHtml.vue +126 -123
  11. package/src/component/forms/FileUpload.vue +185 -189
  12. package/src/component/forms/ImageUpload.vue +230 -0
  13. package/src/component/forms/IncrementDecrement.vue +101 -0
  14. package/src/component/forms/InputDecimal.vue +142 -137
  15. package/src/component/forms/InputNumber.vue +154 -149
  16. package/src/component/forms/InputPassword.vue +135 -135
  17. package/src/component/forms/InputText.vue +162 -157
  18. package/src/component/forms/Modal.vue +65 -60
  19. package/src/component/forms/RadioGroup.vue +50 -50
  20. package/src/component/forms/Select.vue +349 -337
  21. package/src/component/forms/SelectStatic.vue +127 -120
  22. package/src/component/forms/Slider.vue +18 -18
  23. package/src/component/forms/TextArea.vue +126 -126
  24. package/src/component/layout/Alert.vue +92 -92
  25. package/src/component/layout/Badge.vue +103 -103
  26. package/src/component/layout/FixedBar.vue +100 -68
  27. package/src/component/layout/Header.vue +38 -35
  28. package/src/component/layout/LoadingFullPage.vue +27 -27
  29. package/src/component/layout/Menu.vue +210 -214
  30. package/src/component/layout/Molded.vue +28 -27
  31. package/src/component/layout/Panel.vue +140 -142
  32. package/src/component/layout/Popover.vue +126 -126
  33. package/src/component/layout/ScrollBar.vue +42 -43
  34. package/src/component/layout/Tab.vue +135 -0
  35. package/src/component/layout/Tag.vue +3 -3
  36. package/src/component/layout/Wizard.vue +211 -213
  37. package/src/component/rental/DisplayPeriodRent.vue +81 -0
  38. package/src/component/rental/DisplayTotalization.vue +47 -0
  39. package/src/component/shared/Collapse.vue +131 -131
  40. package/src/component/shared/Confirmation.vue +2 -2
  41. package/src/component/shared/DocumentEditor.vue +1 -1
  42. package/src/component/shared/DocumentPreview.vue +1 -1
  43. package/src/component/shared/DocumentPublic.vue +34 -0
  44. package/src/component/shared/ExportExcel.vue +1 -8
  45. package/src/component/shared/ExportPDF.vue +116 -116
  46. package/src/component/shared/{HeaderPrint.vue → HeaderReport.vue} +4 -4
  47. package/src/component/shared/HorizontalFilter.vue +59 -59
  48. package/src/component/shared/Loading.vue +107 -107
  49. package/src/component/shared/LoadingMoreButton.vue +23 -23
  50. package/src/component/shared/Messages.vue +81 -83
  51. package/src/component/shared/PDFViewer.vue +22 -22
  52. package/src/component/shared/Pagination.vue +52 -53
  53. package/src/component/shared/{LegendaParametro.vue → ParameterLegend.vue} +22 -26
  54. package/src/component/shared/ProgressBar.vue +22 -21
  55. package/src/component/shared/QueryButton.vue +66 -66
  56. package/src/component/shared/Report.vue +187 -0
  57. package/src/component/shared/SaveCancel.vue +26 -5
  58. package/src/component/shared/Search.vue +154 -154
  59. package/src/component/shared/SelectOption.vue +146 -0
  60. package/src/component/shared/Table.vue +163 -243
  61. package/src/component/shared/TableButton.vue +36 -36
  62. package/src/component/shared/TableDraggable.vue +127 -0
  63. package/src/component/shared/TableItem.vue +177 -0
  64. package/src/component/shared/TableTotalRecords.vue +9 -10
  65. package/src/component/shared/TableTotalization.vue +47 -47
  66. package/src/component/shared/Tip.vue +42 -42
  67. package/src/component/shared/Toast.vue +54 -54
  68. package/src/component/shared/TotalizationReport.vue +59 -0
  69. package/src/component/shared/VerticalFilter.vue +97 -145
  70. package/src/component/shared/query-builder/AddRule.vue +181 -187
  71. package/src/component/shared/query-builder/ConvertToOdata.js +34 -43
  72. package/src/component/shared/query-builder/DynamicComponent.vue +21 -16
  73. package/src/component/shared/query-builder/DynamicComponentList.vue +73 -0
  74. package/src/component/shared/query-builder/Fields.vue +29 -63
  75. package/src/component/shared/query-builder/QueryBuilder.vue +69 -69
  76. package/src/component/shared/query-builder/Rules.vue +2 -14
  77. package/src/component/shared/query-builder/SelectRule.vue +15 -15
  78. package/src/component/shared/query-builder/Tags.vue +24 -8
  79. package/src/component/shared/query-builder/utilities.js +21 -21
  80. package/src/component/template/{ListViewWithHandlerData.vue → ListViewWithDataHandler.vue} +260 -231
  81. package/src/component/template/{AddEditReport.vue → ReportCreateUpdate.vue} +40 -22
  82. package/src/component/template/ViewTemplateConfiguration.vue +64 -69
  83. package/src/component/template/ViewTemplateDocumentView.vue +22 -25
  84. package/src/component/template/ViewTemplateReportList.vue +39 -57
  85. package/src/component/template/ViewTemplateReportPreview.vue +270 -341
  86. package/src/component/template/ViewTemplateReportPreviewCOPIASEGURANCA.vue +497 -0
  87. package/src/component/template/ViewTemplateSelectOption.vue +60 -0
  88. package/src/component/template/ViewTemplateWithSalveCancel.vue +32 -32
  89. package/src/component/template/ViewTemplateWithTable.vue +56 -49
  90. package/src/component/template/model/Report.js +2 -2
  91. package/src/component/value-objects/Address.js +11 -0
  92. package/src/component/value-objects/{Endereco.vue → Address.vue} +39 -40
  93. package/src/component/value-objects/{DadosContato.js → Contact.js} +2 -2
  94. package/src/component/value-objects/{DadosContato.vue → Contact.vue} +24 -17
  95. package/src/component/value-objects/Person.js +10 -0
  96. package/src/component/value-objects/{DadosPessoa.vue → Person.vue} +50 -35
  97. package/src/config/axios.js +9 -9
  98. package/src/config/dicas.js +14 -14
  99. package/src/config/router.js +13 -13
  100. package/src/config/token.js +14 -14
  101. package/src/main.js +23 -23
  102. package/src/store/modules/generic.js +512 -488
  103. package/src/store/modules/report.js +156 -127
  104. package/src/store/modules/user.js +6 -0
  105. package/src/store/modules/validation.js +38 -38
  106. package/src/store/store.js +13 -13
  107. package/docs/src/component/template/ModeloRelatorioView.drawio +0 -160
  108. package/src/component/shared/query-builder/ListDynamicComponent.vue +0 -42
  109. package/src/component/shared/query-builder/Totalization.vue +0 -38
  110. package/src/component/value-objects/DadosPessoa.js +0 -10
  111. package/src/component/value-objects/Endereco.js +0 -11
@@ -0,0 +1,47 @@
1
+ <template>
2
+ <div class="main side-by-side">
3
+ <div class="molded-totalization">
4
+ <div class="title">{{ title }}</div>
5
+ <div class="value" :style="_style">{{ value | currency }}</div>
6
+ </div>
7
+ </div>
8
+ </template>
9
+ <script>
10
+ export default {
11
+ name: "DisplayTotalization",
12
+ props: {
13
+ title: String,
14
+ value: Number,
15
+ _style: String,
16
+ },
17
+ };
18
+ </script>
19
+ <style scoped>
20
+ .main {
21
+ margin-bottom: 10px;
22
+ margin-right: 20px;
23
+ }
24
+
25
+ .molded-totalization {
26
+ height: 63px;
27
+ border: 1px solid #dbdfe9;
28
+ border-radius: 30px;
29
+ padding-left: 8px;
30
+ padding-right: 15px;
31
+ margin-bottom: 20px;
32
+ font-size: 13px;
33
+ font-weight: 400;
34
+ min-width: 200px;
35
+ }
36
+
37
+ .title {
38
+ padding-left: 10px;
39
+ color: black !important;
40
+ }
41
+
42
+ .value {
43
+ padding-left: 10px;
44
+ font-size: 18px;
45
+ font-weight: 700;
46
+ }
47
+ </style>
@@ -1,131 +1,131 @@
1
- <template>
2
- <div>
3
- <div class="line-arrow" v-if="type == 'arrow'">
4
- <div class="arrow" @click="show" v-if="!showCollapse">
5
- <b-row>
6
- <b-col sm="6" class="text-left">
7
- <span class="title">{{ title }}</span>
8
- </b-col>
9
- <b-col sm="6" class="text-right">
10
- <i class="far fa-plus"></i>
11
- </b-col>
12
- </b-row>
13
- </div>
14
- <div class="arrow" @click="hide" v-if="showCollapse">
15
- <b-row>
16
- <b-col sm="6" class="text-left">
17
- <span class="title">{{ title }}</span>
18
- </b-col>
19
- <b-col sm="6" class="text-right">
20
- <i class="far fa-minus"></i>
21
- </b-col>
22
- </b-row>
23
- </div>
24
- </div>
25
- <b-collapse id="collapse-4" v-model="showCollapse" class="mt-2">
26
- <slot></slot>
27
- </b-collapse>
28
- <div v-if="type == 'button'">
29
- <b-row>
30
- <b-col sm="12">
31
- <div class="text-center">
32
- <Button
33
- v-if="!showCollapse"
34
- :title="buttonShow.title"
35
- :classIcon="buttonShow.icon"
36
- :type="buttonShow.type"
37
- size="small"
38
- :clicked="show"
39
- />
40
- </div>
41
- </b-col>
42
- </b-row>
43
- <b-row>
44
- <b-col>
45
- <div class="text-center">
46
- <Button
47
- v-if="showCollapse"
48
- key="hideCollapse"
49
- :title="buttonHide.title"
50
- :classIcon="buttonHide.icon"
51
- :type="buttonHide.type"
52
- size="small"
53
- :clicked="hide"
54
- />
55
- </div>
56
- </b-col>
57
- </b-row>
58
- </div>
59
- </div>
60
- </template>
61
-
62
- <script>
63
- import Button from "../forms/Button.vue";
64
-
65
- import { mapMutations } from "vuex";
66
-
67
- export default {
68
- components: { Button },
69
- name: "Collapse",
70
- props: {
71
- buttonShow: Object,
72
- buttonHide: Object,
73
- type: {
74
- type: String,
75
- default: "button",
76
- },
77
- title: String,
78
- startOpen: {
79
- type: Boolean,
80
- default: false,
81
- },
82
- },
83
- data() {
84
- return {
85
- showCollapse: false,
86
- };
87
- },
88
- created() {
89
- this.showCollapse = this.startOpen;
90
- },
91
- methods: {
92
- ...mapMutations("generic", ["removeLoading"]),
93
- show() {
94
- let self = this;
95
- setTimeout(function () {
96
- self.showCollapse = true;
97
- }, 200);
98
- this.removeLoadingButton();
99
- },
100
- hide() {
101
- let self = this;
102
- setTimeout(function () {
103
- self.showCollapse = false;
104
- }, 200);
105
- this.removeLoadingButton();
106
- },
107
- removeLoadingButton() {
108
- this.removeLoading(["showCollapse", "hideCollapse"]);
109
- },
110
- },
111
- };
112
- </script>
113
- <style scoped>
114
- .arrow {
115
- font-size: 14px;
116
- color: #577696;
117
- cursor: pointer;
118
- margin-bottom: 10px;
119
- }
120
-
121
- .title {
122
- font-size: 16px;
123
- margin-left: 5px;
124
- }
125
-
126
- .line-arrow {
127
- border-top: solid 1px #dbdfe9;
128
- margin-top: 10px;
129
- padding-top: 10px;
130
- }
131
- </style>
1
+ <template>
2
+ <div>
3
+ <div class="line-arrow" v-if="type == 'arrow'">
4
+ <div class="arrow" @click="show" v-if="!showCollapse">
5
+ <b-row>
6
+ <b-col sm="6" class="text-left">
7
+ <span class="title">{{ title }}</span>
8
+ </b-col>
9
+ <b-col sm="6" class="text-right">
10
+ <i class="far fa-plus"></i>
11
+ </b-col>
12
+ </b-row>
13
+ </div>
14
+ <div class="arrow" @click="hide" v-if="showCollapse">
15
+ <b-row>
16
+ <b-col sm="6" class="text-left">
17
+ <span class="title">{{ title }}</span>
18
+ </b-col>
19
+ <b-col sm="6" class="text-right">
20
+ <i class="far fa-minus"></i>
21
+ </b-col>
22
+ </b-row>
23
+ </div>
24
+ </div>
25
+ <b-collapse id="collapse-4" v-model="showCollapse" class="mt-2">
26
+ <slot></slot>
27
+ </b-collapse>
28
+ <div v-if="type == 'button'">
29
+ <b-row>
30
+ <b-col sm="12">
31
+ <div class="text-center">
32
+ <Button
33
+ v-if="!showCollapse"
34
+ :title="buttonShow.title"
35
+ :classIcon="buttonShow.icon"
36
+ :type="buttonShow.type"
37
+ size="small"
38
+ :clicked="show"
39
+ />
40
+ </div>
41
+ </b-col>
42
+ </b-row>
43
+ <b-row>
44
+ <b-col>
45
+ <div class="text-center">
46
+ <Button
47
+ v-if="showCollapse"
48
+ key="hideCollapse"
49
+ :title="buttonHide.title"
50
+ :classIcon="buttonHide.icon"
51
+ :type="buttonHide.type"
52
+ size="small"
53
+ :clicked="hide"
54
+ />
55
+ </div>
56
+ </b-col>
57
+ </b-row>
58
+ </div>
59
+ </div>
60
+ </template>
61
+
62
+ <script>
63
+ import Button from "../forms/Button.vue";
64
+
65
+ import { mapMutations } from "vuex";
66
+
67
+ export default {
68
+ components: { Button },
69
+ name: "Collapse",
70
+ props: {
71
+ buttonShow: Object,
72
+ buttonHide: Object,
73
+ type: {
74
+ type: String,
75
+ default: "button",
76
+ },
77
+ title: String,
78
+ startOpen: {
79
+ type: Boolean,
80
+ default: false,
81
+ },
82
+ },
83
+ data() {
84
+ return {
85
+ showCollapse: false,
86
+ };
87
+ },
88
+ created() {
89
+ this.showCollapse = this.startOpen;
90
+ },
91
+ methods: {
92
+ ...mapMutations("generic", ["removeLoading"]),
93
+ show() {
94
+ let self = this;
95
+ setTimeout(function () {
96
+ self.showCollapse = true;
97
+ }, 200);
98
+ this.removeLoadingButton();
99
+ },
100
+ hide() {
101
+ let self = this;
102
+ setTimeout(function () {
103
+ self.showCollapse = false;
104
+ }, 200);
105
+ this.removeLoadingButton();
106
+ },
107
+ removeLoadingButton() {
108
+ this.removeLoading(["showCollapse", "hideCollapse"]);
109
+ },
110
+ },
111
+ };
112
+ </script>
113
+ <style scoped>
114
+ .arrow {
115
+ font-size: 14px;
116
+ color: #577696;
117
+ cursor: pointer;
118
+ margin-bottom: 10px;
119
+ }
120
+
121
+ .title {
122
+ font-size: 16px;
123
+ margin-left: 5px;
124
+ }
125
+
126
+ .line-arrow {
127
+ border-top: solid 1px #dbdfe9;
128
+ margin-top: 10px;
129
+ padding-top: 10px;
130
+ }
131
+ </style>
@@ -50,9 +50,9 @@ export default {
50
50
  confirmed: Function,
51
51
  },
52
52
  methods: {
53
- ...mapMutations("generic", ["showModal", "hideModal", "removeLoading"]),
53
+ ...mapMutations("generic", ["openModal", "hideModal", "removeLoading"]),
54
54
  execute() {
55
- this.showModal(`confirmation${this.data.id}`);
55
+ this.openModal(`confirmation${this.data.id}`);
56
56
  },
57
57
  confirm() {
58
58
  let self = this;
@@ -50,7 +50,7 @@ export default {
50
50
  toolbarContainer.appendChild(editor.ui.view.toolbar.element);
51
51
  },
52
52
  changed() {
53
- this.addEvent({ nome: "documentEditorChanged" });
53
+ this.addEvent({ name: "documentEditorChanged" });
54
54
  },
55
55
  },
56
56
  };
@@ -8,7 +8,7 @@ import VRuntimeTemplate from "v-runtime-template";
8
8
  import { mapGetters } from "vuex";
9
9
 
10
10
  export default {
11
- name: "HtmlPreview",
11
+ name: "DocumentPreview",
12
12
  components: {
13
13
  VRuntimeTemplate,
14
14
  },
@@ -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>
@@ -7,13 +7,7 @@
7
7
  worksheet="Planilha"
8
8
  :name="`${fileName}.xls`"
9
9
  >
10
- <Button
11
- key="exportExcel"
12
- :type="button.type"
13
- :title="button.title"
14
- classIcon="fas fa-file-excel"
15
- :size="button.size"
16
- />
10
+ <i class="fas fa-file-excel"></i>
17
11
  </download-excel>
18
12
  </div>
19
13
  </template>
@@ -26,7 +20,6 @@ import { mapMutations } from "vuex";
26
20
  export default {
27
21
  name: "ExportExcel",
28
22
  props: {
29
- button: Object,
30
23
  header: Array,
31
24
  data: Array,
32
25
  },
@@ -1,116 +1,116 @@
1
- <template>
2
- <div>
3
- <div v-show="carregando" class="full-width">
4
- <Loading
5
- :center="true"
6
- :width="70"
7
- :height="70"
8
- message="Por favor aguarde, estamos gerando a impressão..."
9
- />
10
- </div>
11
- <vue-html2pdf
12
- :show-layout="false"
13
- :float-layout="false"
14
- :enable-download="false"
15
- :preview-modal="true"
16
- :paginate-elements-by-height="1400"
17
- :filename="fileName"
18
- :pdf-quality="2"
19
- :manual-pagination="false"
20
- :pdf-format="tamanhoPagina"
21
- :pdf-orientation="orientacao"
22
- pdf-content-width="100%"
23
- @progress="onProgress($event)"
24
- @hasStartedGeneration="hasStartedGeneration()"
25
- @hasGenerated="hasGenerated($event)"
26
- ref="html2Pdf"
27
- :html-to-pdf-options="htmlToPdfOptions"
28
- >
29
- <section slot="pdf-content">
30
- <section class="pdf-item">
31
- <ScrollBar :height="alturaBarraRolagem">
32
- <div id="height">
33
- <slot></slot>
34
- </div>
35
- </ScrollBar>
36
- </section>
37
- </section>
38
- </vue-html2pdf>
39
- <br />
40
- <b-row
41
- ><b-col sm="12" class="text-right">
42
- <button @click="gerarRelatorio()">gerar</button></b-col
43
- ></b-row
44
- >
45
- </div>
46
- </template>
47
-
48
- <script>
49
- import Loading from "./Loading.vue";
50
- import ScrollBar from "../layout/Scrollbar.vue";
51
- import VueHtml2pdf from "vue-html2pdf";
52
-
53
- export default {
54
- name: "ExportPDF",
55
- components: { VueHtml2pdf, ScrollBar, Loading },
56
- props: {
57
- title: String,
58
- fileName: String,
59
- tamanhoPagina: String,
60
- orientacao: String,
61
- larguraImpressao: Number,
62
- },
63
- data() {
64
- return {
65
- alturaBarraRolagem: 450,
66
- carregando: false,
67
- htmlToPdfOptions: {
68
- margin: [5, 3, 5, 3],
69
- },
70
- };
71
- },
72
- methods: {
73
- onProgress(event) {
74
- if (event == 100) {
75
- this.alturaBarraRolagem = 450;
76
- this.carregando = false;
77
- }
78
- },
79
- hasStartedGeneration() {
80
- console.log("começou");
81
- },
82
- hasDownloaded() {
83
- console.log("finalizou");
84
- },
85
- gerarRelatorio() {
86
- const listElm = document.querySelector("#height");
87
- this.alturaBarraRolagem = listElm.scrollHeight;
88
- this.carregando = true;
89
- let self = this;
90
- setTimeout(function () {
91
- self.$refs.html2Pdf.generatePdf();
92
- }, 1000);
93
- },
94
- },
95
- };
96
- </script>
97
-
98
- <style scoped>
99
- .button {
100
- margin-bottom: 20px;
101
- }
102
-
103
- .title {
104
- font-size: 20px;
105
- }
106
-
107
- .full-width {
108
- position: fixed;
109
- width: 100%;
110
- height: 100%;
111
- left: 0;
112
- top: 0;
113
- background: white;
114
- z-index: 99999;
115
- }
116
- </style>
1
+ <template>
2
+ <div>
3
+ <div v-show="carregando" class="full-width">
4
+ <Loading
5
+ :center="true"
6
+ :width="70"
7
+ :height="70"
8
+ message="Por favor aguarde, estamos gerando a impressão..."
9
+ />
10
+ </div>
11
+ <vue-html2pdf
12
+ :show-layout="false"
13
+ :float-layout="false"
14
+ :enable-download="false"
15
+ :preview-modal="true"
16
+ :paginate-elements-by-height="1400"
17
+ :filename="fileName"
18
+ :pdf-quality="2"
19
+ :manual-pagination="false"
20
+ :pdf-format="tamanhoPagina"
21
+ :pdf-orientation="orientacao"
22
+ pdf-content-width="100%"
23
+ @progress="onProgress($event)"
24
+ @hasStartedGeneration="hasStartedGeneration()"
25
+ @hasGenerated="hasGenerated($event)"
26
+ ref="html2Pdf"
27
+ :html-to-pdf-options="htmlToPdfOptions"
28
+ >
29
+ <section slot="pdf-content">
30
+ <section class="pdf-item">
31
+ <ScrollBar :height="alturaBarraRolagem">
32
+ <div id="height">
33
+ <slot></slot>
34
+ </div>
35
+ </ScrollBar>
36
+ </section>
37
+ </section>
38
+ </vue-html2pdf>
39
+ <br />
40
+ <b-row
41
+ ><b-col sm="12" class="text-right">
42
+ <button @click="gerarRelatorio()">gerar</button></b-col
43
+ ></b-row
44
+ >
45
+ </div>
46
+ </template>
47
+
48
+ <script>
49
+ import Loading from "./Loading.vue";
50
+ import ScrollBar from "../layout/Scrollbar.vue";
51
+ import VueHtml2pdf from "vue-html2pdf";
52
+
53
+ export default {
54
+ name: "ExportPDF",
55
+ components: { VueHtml2pdf, ScrollBar, Loading },
56
+ props: {
57
+ title: String,
58
+ fileName: String,
59
+ tamanhoPagina: String,
60
+ orientacao: String,
61
+ larguraImpressao: Number,
62
+ },
63
+ data() {
64
+ return {
65
+ alturaBarraRolagem: 450,
66
+ carregando: false,
67
+ htmlToPdfOptions: {
68
+ margin: [5, 3, 5, 3],
69
+ },
70
+ };
71
+ },
72
+ methods: {
73
+ onProgress(event) {
74
+ if (event == 100) {
75
+ this.alturaBarraRolagem = 450;
76
+ this.carregando = false;
77
+ }
78
+ },
79
+ hasStartedGeneration() {
80
+ console.log("começou");
81
+ },
82
+ hasDownloaded() {
83
+ console.log("finalizou");
84
+ },
85
+ gerarRelatorio() {
86
+ const listElm = document.querySelector("#height");
87
+ this.alturaBarraRolagem = listElm.scrollHeight;
88
+ this.carregando = true;
89
+ let self = this;
90
+ setTimeout(function () {
91
+ self.$refs.html2Pdf.generatePdf();
92
+ }, 1000);
93
+ },
94
+ },
95
+ };
96
+ </script>
97
+
98
+ <style scoped>
99
+ .button {
100
+ margin-bottom: 20px;
101
+ }
102
+
103
+ .title {
104
+ font-size: 20px;
105
+ }
106
+
107
+ .full-width {
108
+ position: fixed;
109
+ width: 100%;
110
+ height: 100%;
111
+ left: 0;
112
+ top: 0;
113
+ background: white;
114
+ z-index: 99999;
115
+ }
116
+ </style>
@@ -1,6 +1,6 @@
1
1
  <template>
2
- <div class="div-header somente-impressao">
3
- <div class="title">{{ fileName }}</div>
2
+ <div class="div-header">
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>
@@ -12,7 +12,7 @@
12
12
  import { mapGetters } from "vuex";
13
13
 
14
14
  export default {
15
- name: "HeaderPrint",
15
+ name: "HeaderReport",
16
16
  computed: {
17
17
  ...mapGetters("report", ["tags"]),
18
18
  fileName() {
@@ -23,7 +23,7 @@ export default {
23
23
  </script>
24
24
  <style scoped>
25
25
  .div-header {
26
- margin: 20px;
26
+ margin-bottom: 20px;
27
27
  }
28
28
 
29
29
  .div-tag {