@nixweb/nixloc-ui 0.0.128 → 0.0.130
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 +87 -79
- package/src/App.vue +13 -13
- package/src/component/forms/Button.vue +178 -170
- package/src/component/forms/ButtonGroup.vue +57 -0
- package/src/component/forms/ButtonSub.vue +98 -0
- package/src/component/forms/CheckboxGroup.vue +73 -72
- package/src/component/forms/CheckboxSimple.vue +52 -46
- package/src/component/forms/Color.vue +38 -38
- package/src/component/forms/DateTime.vue +167 -167
- package/src/component/forms/Dropdown.vue +242 -218
- package/src/component/forms/EditorHtml.vue +126 -126
- package/src/component/forms/FileUpload.vue +185 -185
- package/src/component/forms/IncrementDecrement.vue +7 -2
- package/src/component/forms/InputDecimal.vue +150 -142
- package/src/component/forms/InputDecimalDiscount.vue +92 -0
- package/src/component/forms/InputNumber.vue +160 -154
- package/src/component/forms/InputPassword.vue +135 -135
- package/src/component/forms/InputText.vue +174 -162
- package/src/component/forms/InputTextEdit.vue +68 -0
- package/src/component/forms/Modal.vue +65 -65
- package/src/component/forms/RadioGroup.vue +50 -50
- package/src/component/forms/Select.vue +351 -349
- package/src/component/forms/SelectStatic.vue +127 -127
- package/src/component/forms/Slider.vue +18 -18
- package/src/component/forms/TextArea.vue +126 -126
- package/src/component/forms/Toggle.vue +3 -1
- package/src/component/layout/Account.vue +3 -3
- package/src/component/layout/Alert.vue +92 -92
- package/src/component/layout/Badge.vue +104 -103
- package/src/component/layout/FixedBar.vue +100 -100
- package/src/component/layout/Gantt.vue +130 -0
- package/src/component/layout/Header.vue +38 -38
- package/src/component/layout/IconMolded.vue +48 -0
- package/src/component/layout/LoadingFullPage.vue +27 -27
- package/src/component/layout/Menu.vue +213 -210
- package/src/component/layout/Molded.vue +28 -28
- package/src/component/layout/Panel.vue +140 -140
- package/src/component/layout/Popover.vue +126 -126
- package/src/component/layout/ScrollBar.vue +42 -42
- package/src/component/layout/Wizard.vue +211 -211
- package/src/component/rental/DisplayCalculatePeriod.vue +49 -0
- package/src/component/rental/DisplayPeriodRent.vue +19 -44
- package/src/component/rental/DisplayTotalization.vue +11 -2
- package/src/component/shared/Collapse.vue +131 -131
- package/src/component/shared/Confirmation.vue +21 -2
- package/src/component/shared/DocumentEditor.vue +19 -11
- package/src/component/shared/DocumentPreview.vue +5 -4
- package/src/component/shared/ExportPDF.vue +116 -116
- package/src/component/shared/FullCalendar.vue +168 -0
- package/src/component/shared/HorizontalFilter.vue +59 -59
- package/src/component/shared/Loading.vue +107 -107
- package/src/component/shared/LoadingMoreButton.vue +23 -23
- package/src/component/shared/Messages.vue +81 -81
- package/src/component/shared/PDFViewer.vue +22 -22
- package/src/component/shared/Pagination.vue +52 -52
- package/src/component/shared/ParameterLegend.vue +24 -17
- package/src/component/shared/ProgressBar.vue +22 -22
- package/src/component/shared/QueryButton.vue +66 -66
- package/src/component/shared/SaveCancel.vue +3 -2
- package/src/component/shared/Search.vue +154 -154
- package/src/component/shared/Table.vue +163 -163
- package/src/component/shared/TableButton.vue +36 -36
- package/src/component/shared/TableTotalization.vue +47 -47
- package/src/component/shared/TimeLine.vue +47 -0
- package/src/component/shared/Tip.vue +42 -42
- package/src/component/shared/Toast.vue +54 -54
- package/src/component/shared/VerticalFilter.vue +97 -97
- package/src/component/shared/query-builder/AddRule.vue +181 -181
- package/src/component/shared/query-builder/DynamicComponentList.vue +73 -73
- package/src/component/shared/query-builder/QueryBuilder.vue +69 -69
- package/src/component/shared/query-builder/utilities.js +21 -21
- package/src/component/template/ListViewWithDataHandler.vue +260 -260
- package/src/component/template/ViewTemplateConfiguration.vue +64 -64
- package/src/component/template/ViewTemplateDocumentView.vue +7 -2
- package/src/component/template/ViewTemplateReportList.vue +1 -1
- package/src/component/template/ViewTemplateReportPreview.vue +0 -1
- package/src/component/template/ViewTemplateWithSalveCancel.vue +32 -32
- package/src/component/template/ViewTemplateWithTable.vue +56 -56
- package/src/config/axios.js +9 -9
- package/src/config/dicas.js +14 -14
- package/src/config/router.js +13 -13
- package/src/config/token.js +14 -14
- package/src/main.js +23 -23
- package/src/store/modules/generic.js +563 -512
- package/src/store/modules/user.js +3 -0
- package/src/store/modules/validation.js +38 -38
- package/src/store/store.js +13 -13
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div>
|
|
4
|
-
<slot name="content-buttons"></slot>
|
|
5
|
-
<br v-if="templateList.dragAndDrop" />
|
|
6
|
-
<div v-if="showSearch">
|
|
7
|
-
<Search />
|
|
8
|
-
<br />
|
|
9
|
-
</div>
|
|
10
|
-
<ListViewWithDataHandler
|
|
11
|
-
:templateList="templateList"
|
|
12
|
-
:propsParam="propsParam"
|
|
13
|
-
:showMolded="false"
|
|
14
|
-
:showHorizontalFilter="showHorizontalFilter"
|
|
15
|
-
:buttonRemove="buttonRemove"
|
|
16
|
-
>
|
|
17
|
-
<div slot="content-buttons-table-header">
|
|
18
|
-
<slot name="content-buttons-table-header"></slot>
|
|
19
|
-
</div>
|
|
20
|
-
<div slot="content-filter-horizontal">
|
|
21
|
-
<slot name="content-filter-horizontal"></slot>
|
|
22
|
-
</div>
|
|
23
|
-
<div slot="content-buttons-table">
|
|
24
|
-
<slot name="content-buttons-table"></slot>
|
|
25
|
-
</div>
|
|
26
|
-
</ListViewWithDataHandler>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
</template>
|
|
30
|
-
|
|
31
|
-
<script>
|
|
32
|
-
import Search from "../shared/Search.vue";
|
|
33
|
-
|
|
34
|
-
import ListViewWithDataHandler from "@nixweb/nixloc-ui/src/component/template/ListViewWithDataHandler.vue";
|
|
35
|
-
|
|
36
|
-
import { mapGetters, mapMutations } from "vuex";
|
|
37
|
-
|
|
38
|
-
export default {
|
|
39
|
-
name: "ViewTemplateConfiguration",
|
|
40
|
-
components: { Search, ListViewWithDataHandler },
|
|
41
|
-
props: {
|
|
42
|
-
templateList: Object,
|
|
43
|
-
propsParam: Object,
|
|
44
|
-
showSearch: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: true,
|
|
47
|
-
},
|
|
48
|
-
showHorizontalFilter: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
default: true,
|
|
51
|
-
},
|
|
52
|
-
buttonRemove: {
|
|
53
|
-
type: Boolean,
|
|
54
|
-
default: true,
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
created() {
|
|
58
|
-
this.addLoading("loadingLine");
|
|
59
|
-
},
|
|
60
|
-
methods: {
|
|
61
|
-
...mapMutations("generic", ["addLoading"]),
|
|
62
|
-
},
|
|
63
|
-
};
|
|
64
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div>
|
|
4
|
+
<slot name="content-buttons"></slot>
|
|
5
|
+
<br v-if="templateList.dragAndDrop" />
|
|
6
|
+
<div v-if="showSearch">
|
|
7
|
+
<Search />
|
|
8
|
+
<br />
|
|
9
|
+
</div>
|
|
10
|
+
<ListViewWithDataHandler
|
|
11
|
+
:templateList="templateList"
|
|
12
|
+
:propsParam="propsParam"
|
|
13
|
+
:showMolded="false"
|
|
14
|
+
:showHorizontalFilter="showHorizontalFilter"
|
|
15
|
+
:buttonRemove="buttonRemove"
|
|
16
|
+
>
|
|
17
|
+
<div slot="content-buttons-table-header">
|
|
18
|
+
<slot name="content-buttons-table-header"></slot>
|
|
19
|
+
</div>
|
|
20
|
+
<div slot="content-filter-horizontal">
|
|
21
|
+
<slot name="content-filter-horizontal"></slot>
|
|
22
|
+
</div>
|
|
23
|
+
<div slot="content-buttons-table">
|
|
24
|
+
<slot name="content-buttons-table"></slot>
|
|
25
|
+
</div>
|
|
26
|
+
</ListViewWithDataHandler>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script>
|
|
32
|
+
import Search from "../shared/Search.vue";
|
|
33
|
+
|
|
34
|
+
import ListViewWithDataHandler from "@nixweb/nixloc-ui/src/component/template/ListViewWithDataHandler.vue";
|
|
35
|
+
|
|
36
|
+
import { mapGetters, mapMutations } from "vuex";
|
|
37
|
+
|
|
38
|
+
export default {
|
|
39
|
+
name: "ViewTemplateConfiguration",
|
|
40
|
+
components: { Search, ListViewWithDataHandler },
|
|
41
|
+
props: {
|
|
42
|
+
templateList: Object,
|
|
43
|
+
propsParam: Object,
|
|
44
|
+
showSearch: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: true,
|
|
47
|
+
},
|
|
48
|
+
showHorizontalFilter: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: true,
|
|
51
|
+
},
|
|
52
|
+
buttonRemove: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: true,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
created() {
|
|
58
|
+
this.addLoading("loadingLine");
|
|
59
|
+
},
|
|
60
|
+
methods: {
|
|
61
|
+
...mapMutations("generic", ["addLoading"]),
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
</script>
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
<div class="a4">
|
|
101
101
|
<div id="printMe">
|
|
102
102
|
<DocumentPreview
|
|
103
|
-
:template="documentPreview"
|
|
103
|
+
:template="documentPreview('dev')"
|
|
104
104
|
:d="parameterExemple"
|
|
105
105
|
/>
|
|
106
106
|
</div>
|
|
@@ -165,7 +165,12 @@ export default {
|
|
|
165
165
|
...mapGetters("generic", ["showModal", "event", "documentPreview"]),
|
|
166
166
|
},
|
|
167
167
|
methods: {
|
|
168
|
-
...mapMutations("generic", [
|
|
168
|
+
...mapMutations("generic", [
|
|
169
|
+
"openModal",
|
|
170
|
+
"hideModal",
|
|
171
|
+
"removeLoading",
|
|
172
|
+
"addEvent",
|
|
173
|
+
]),
|
|
169
174
|
saveDocument() {
|
|
170
175
|
if (this.id) {
|
|
171
176
|
this.addEvent({ name: "saveDocument" });
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<Panel
|
|
4
|
-
:module="panel.module"
|
|
5
|
-
:title="panel.title"
|
|
6
|
-
:showFilter="panel.showFilter"
|
|
7
|
-
:showSearch="panel.showSearch"
|
|
8
|
-
:showButtons="panel.showButtons"
|
|
9
|
-
>
|
|
10
|
-
<div slot="content-buttons">
|
|
11
|
-
<slot name="content-buttons"></slot>
|
|
12
|
-
</div>
|
|
13
|
-
<div slot="content-main">
|
|
14
|
-
<slot name="content-main"></slot>
|
|
15
|
-
</div>
|
|
16
|
-
</Panel>
|
|
17
|
-
<SaveCancel :formName="panel.formName" />
|
|
18
|
-
</div>
|
|
19
|
-
</template>
|
|
20
|
-
|
|
21
|
-
<script>
|
|
22
|
-
import Panel from "@nixweb/nixloc-ui/src/component/layout/Panel";
|
|
23
|
-
import SaveCancel from "@nixweb/nixloc-ui/src/component/shared/SaveCancel";
|
|
24
|
-
|
|
25
|
-
export default {
|
|
26
|
-
name: "ViewTemplateCrud",
|
|
27
|
-
components: { Panel, SaveCancel },
|
|
28
|
-
props: {
|
|
29
|
-
panel: Object,
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<Panel
|
|
4
|
+
:module="panel.module"
|
|
5
|
+
:title="panel.title"
|
|
6
|
+
:showFilter="panel.showFilter"
|
|
7
|
+
:showSearch="panel.showSearch"
|
|
8
|
+
:showButtons="panel.showButtons"
|
|
9
|
+
>
|
|
10
|
+
<div slot="content-buttons">
|
|
11
|
+
<slot name="content-buttons"></slot>
|
|
12
|
+
</div>
|
|
13
|
+
<div slot="content-main">
|
|
14
|
+
<slot name="content-main"></slot>
|
|
15
|
+
</div>
|
|
16
|
+
</Panel>
|
|
17
|
+
<SaveCancel :formName="panel.formName" />
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script>
|
|
22
|
+
import Panel from "@nixweb/nixloc-ui/src/component/layout/Panel";
|
|
23
|
+
import SaveCancel from "@nixweb/nixloc-ui/src/component/shared/SaveCancel";
|
|
24
|
+
|
|
25
|
+
export default {
|
|
26
|
+
name: "ViewTemplateCrud",
|
|
27
|
+
components: { Panel, SaveCancel },
|
|
28
|
+
props: {
|
|
29
|
+
panel: Object,
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
</script>
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<Panel
|
|
4
|
-
:module="panel.module"
|
|
5
|
-
:title="panel.title"
|
|
6
|
-
:showVerticalFilter="panel.showVerticalFilter"
|
|
7
|
-
:showSearch="panel.showSearch"
|
|
8
|
-
:showButtons="panel.showButtons"
|
|
9
|
-
>
|
|
10
|
-
<div slot="content-filter-vertical">
|
|
11
|
-
<slot name="content-filter-vertical"></slot>
|
|
12
|
-
</div>
|
|
13
|
-
<div slot="content-buttons">
|
|
14
|
-
<slot name="content-buttons"></slot>
|
|
15
|
-
</div>
|
|
16
|
-
<div slot="content-main">
|
|
17
|
-
<Molded>
|
|
18
|
-
<ListViewWithDataHandler
|
|
19
|
-
:templateList="templateList"
|
|
20
|
-
:buttonRemove="buttonRemove"
|
|
21
|
-
>
|
|
22
|
-
<div slot="content-buttons-table-header">
|
|
23
|
-
<slot name="content-buttons-table-header"></slot>
|
|
24
|
-
</div>
|
|
25
|
-
<div slot="content-filter-horizontal">
|
|
26
|
-
<slot name="content-filter-horizontal"></slot>
|
|
27
|
-
</div>
|
|
28
|
-
<div slot="content-buttons-table">
|
|
29
|
-
<slot name="content-buttons-table"></slot>
|
|
30
|
-
</div>
|
|
31
|
-
</ListViewWithDataHandler>
|
|
32
|
-
</Molded>
|
|
33
|
-
</div>
|
|
34
|
-
</Panel>
|
|
35
|
-
</div>
|
|
36
|
-
</template>
|
|
37
|
-
|
|
38
|
-
<script>
|
|
39
|
-
import Panel from "@nixweb/nixloc-ui/src/component/layout/Panel.vue";
|
|
40
|
-
import Molded from "@nixweb/nixloc-ui/src/component/layout/Molded";
|
|
41
|
-
|
|
42
|
-
import ListViewWithDataHandler from "@nixweb/nixloc-ui/src/component/template/ListViewWithDataHandler.vue";
|
|
43
|
-
|
|
44
|
-
export default {
|
|
45
|
-
name: "TemplateView",
|
|
46
|
-
components: { Panel, Molded, ListViewWithDataHandler },
|
|
47
|
-
props: {
|
|
48
|
-
panel: Object,
|
|
49
|
-
templateList: Object,
|
|
50
|
-
buttonRemove: {
|
|
51
|
-
type: Boolean,
|
|
52
|
-
default: true,
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<Panel
|
|
4
|
+
:module="panel.module"
|
|
5
|
+
:title="panel.title"
|
|
6
|
+
:showVerticalFilter="panel.showVerticalFilter"
|
|
7
|
+
:showSearch="panel.showSearch"
|
|
8
|
+
:showButtons="panel.showButtons"
|
|
9
|
+
>
|
|
10
|
+
<div slot="content-filter-vertical">
|
|
11
|
+
<slot name="content-filter-vertical"></slot>
|
|
12
|
+
</div>
|
|
13
|
+
<div slot="content-buttons">
|
|
14
|
+
<slot name="content-buttons"></slot>
|
|
15
|
+
</div>
|
|
16
|
+
<div slot="content-main">
|
|
17
|
+
<Molded>
|
|
18
|
+
<ListViewWithDataHandler
|
|
19
|
+
:templateList="templateList"
|
|
20
|
+
:buttonRemove="buttonRemove"
|
|
21
|
+
>
|
|
22
|
+
<div slot="content-buttons-table-header">
|
|
23
|
+
<slot name="content-buttons-table-header"></slot>
|
|
24
|
+
</div>
|
|
25
|
+
<div slot="content-filter-horizontal">
|
|
26
|
+
<slot name="content-filter-horizontal"></slot>
|
|
27
|
+
</div>
|
|
28
|
+
<div slot="content-buttons-table">
|
|
29
|
+
<slot name="content-buttons-table"></slot>
|
|
30
|
+
</div>
|
|
31
|
+
</ListViewWithDataHandler>
|
|
32
|
+
</Molded>
|
|
33
|
+
</div>
|
|
34
|
+
</Panel>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<script>
|
|
39
|
+
import Panel from "@nixweb/nixloc-ui/src/component/layout/Panel.vue";
|
|
40
|
+
import Molded from "@nixweb/nixloc-ui/src/component/layout/Molded";
|
|
41
|
+
|
|
42
|
+
import ListViewWithDataHandler from "@nixweb/nixloc-ui/src/component/template/ListViewWithDataHandler.vue";
|
|
43
|
+
|
|
44
|
+
export default {
|
|
45
|
+
name: "TemplateView",
|
|
46
|
+
components: { Panel, Molded, ListViewWithDataHandler },
|
|
47
|
+
props: {
|
|
48
|
+
panel: Object,
|
|
49
|
+
templateList: Object,
|
|
50
|
+
buttonRemove: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: true,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
</script>
|
package/src/config/axios.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import axios from "axios";
|
|
2
|
-
|
|
3
|
-
const BASE_URL = process.env.VUE_APP_API_URL;
|
|
4
|
-
|
|
5
|
-
const api = axios.create({
|
|
6
|
-
baseURL: BASE_URL,
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
export default api;
|
|
1
|
+
import axios from "axios";
|
|
2
|
+
|
|
3
|
+
const BASE_URL = process.env.VUE_APP_API_URL;
|
|
4
|
+
|
|
5
|
+
const api = axios.create({
|
|
6
|
+
baseURL: BASE_URL,
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
export default api;
|
package/src/config/dicas.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const dicas = [];
|
|
2
|
-
|
|
3
|
-
const manutencao = [
|
|
4
|
-
// { formName: "opcoesFaturamento", field: "unificar", title: "Unificar Cliente", description: "Ao marcar essa opção" },
|
|
5
|
-
|
|
6
|
-
];
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
manutencao.forEach(function (obj) {
|
|
10
|
-
dicas.push(obj);
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
const dicas = [];
|
|
2
|
+
|
|
3
|
+
const manutencao = [
|
|
4
|
+
// { formName: "opcoesFaturamento", field: "unificar", title: "Unificar Cliente", description: "Ao marcar essa opção" },
|
|
5
|
+
|
|
6
|
+
];
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
manutencao.forEach(function (obj) {
|
|
10
|
+
dicas.push(obj);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
15
|
export default dicas;
|
package/src/config/router.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
import Router from 'vue-router'
|
|
3
|
-
|
|
4
|
-
Vue.use(Router)
|
|
5
|
-
|
|
6
|
-
const router = new Router({
|
|
7
|
-
mode: 'history',
|
|
8
|
-
routes: [
|
|
9
|
-
{ path: '/', redirect: { name: "" } },
|
|
10
|
-
|
|
11
|
-
],
|
|
12
|
-
})
|
|
13
|
-
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
import Router from 'vue-router'
|
|
3
|
+
|
|
4
|
+
Vue.use(Router)
|
|
5
|
+
|
|
6
|
+
const router = new Router({
|
|
7
|
+
mode: 'history',
|
|
8
|
+
routes: [
|
|
9
|
+
{ path: '/', redirect: { name: "" } },
|
|
10
|
+
|
|
11
|
+
],
|
|
12
|
+
})
|
|
13
|
+
|
|
14
14
|
export default router
|
package/src/config/token.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export default class Token {
|
|
2
|
-
|
|
3
|
-
tokenHeaders() {
|
|
4
|
-
return {
|
|
5
|
-
"Content-Type": "application/json",
|
|
6
|
-
Authorization: "Bearer " + JSON.parse(sessionStorage.vuex).user.userLogged.token
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
tokenHeadersFormData() {
|
|
10
|
-
return {
|
|
11
|
-
"Content-Type": "multipart/form-data",
|
|
12
|
-
Authorization: "Bearer " + JSON.parse(sessionStorage.vuex).user.userLogged.token
|
|
13
|
-
};
|
|
14
|
-
}
|
|
1
|
+
export default class Token {
|
|
2
|
+
|
|
3
|
+
tokenHeaders() {
|
|
4
|
+
return {
|
|
5
|
+
"Content-Type": "application/json",
|
|
6
|
+
Authorization: "Bearer " + JSON.parse(sessionStorage.vuex).user.userLogged.token
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
tokenHeadersFormData() {
|
|
10
|
+
return {
|
|
11
|
+
"Content-Type": "multipart/form-data",
|
|
12
|
+
Authorization: "Bearer " + JSON.parse(sessionStorage.vuex).user.userLogged.token
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
15
|
}
|
package/src/main.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
import App from './App.vue'
|
|
3
|
-
import router from './config/router'
|
|
4
|
-
import store from './store/store'
|
|
5
|
-
|
|
6
|
-
import BootstrapVue from 'bootstrap-vue'
|
|
7
|
-
import VueLoading from "vue-loading-template";
|
|
8
|
-
import VueTheMask from 'vue-the-mask'
|
|
9
|
-
|
|
10
|
-
import 'bootstrap/dist/css/bootstrap.css'
|
|
11
|
-
import 'bootstrap-vue/dist/bootstrap-vue.css'
|
|
12
|
-
|
|
13
|
-
Vue.use(BootstrapVue)
|
|
14
|
-
Vue.use(VueLoading)
|
|
15
|
-
Vue.use(VueTheMask)
|
|
16
|
-
|
|
17
|
-
Vue.config.productionTip = false
|
|
18
|
-
|
|
19
|
-
new Vue({
|
|
20
|
-
router,
|
|
21
|
-
store,
|
|
22
|
-
render: h => h(App),
|
|
23
|
-
}).$mount('#app')
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
import App from './App.vue'
|
|
3
|
+
import router from './config/router'
|
|
4
|
+
import store from './store/store'
|
|
5
|
+
|
|
6
|
+
import BootstrapVue from 'bootstrap-vue'
|
|
7
|
+
import VueLoading from "vue-loading-template";
|
|
8
|
+
import VueTheMask from 'vue-the-mask'
|
|
9
|
+
|
|
10
|
+
import 'bootstrap/dist/css/bootstrap.css'
|
|
11
|
+
import 'bootstrap-vue/dist/bootstrap-vue.css'
|
|
12
|
+
|
|
13
|
+
Vue.use(BootstrapVue)
|
|
14
|
+
Vue.use(VueLoading)
|
|
15
|
+
Vue.use(VueTheMask)
|
|
16
|
+
|
|
17
|
+
Vue.config.productionTip = false
|
|
18
|
+
|
|
19
|
+
new Vue({
|
|
20
|
+
router,
|
|
21
|
+
store,
|
|
22
|
+
render: h => h(App),
|
|
23
|
+
}).$mount('#app')
|