@burh/nuxt-core 1.0.356 → 1.0.358
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/components/burh-ds/Cards/BaseCard.vue +1 -1
- package/components/burh-ds/Curriculum/UserCurriculum/index.vue +249 -249
- package/components/burh-ds/Modals/AddCustomerModal.vue +206 -0
- package/components/burh-ds/Modals/AddMember.vue +3 -17
- package/components/burh-ds/Modals/AddRoleModal.vue +2 -21
- package/package.json +2 -3
|
@@ -1,249 +1,249 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-dialog
|
|
3
|
-
:visible.sync="isActive"
|
|
4
|
-
width="80%"
|
|
5
|
-
:custom-class="`position-relative user__preview__container ${isLoading ? 'loading' : ''}`"
|
|
6
|
-
@close="$emit('close')"
|
|
7
|
-
class="test-radius"
|
|
8
|
-
>
|
|
9
|
-
<template>
|
|
10
|
-
<div class="row d-flex justify-content-between mx-0 user-pdf">
|
|
11
|
-
<img v-if="!isLoading" v-show="coverPhoto" :src="coverPhoto" alt="" class="img__color" />
|
|
12
|
-
<div v-show="!coverPhoto" class="no-cover-photo"></div>
|
|
13
|
-
<slot name="content"></slot>
|
|
14
|
-
</div>
|
|
15
|
-
<slot></slot>
|
|
16
|
-
<!-- <el-tooltip placement="top" :content="!showTools ? 'Exibir Ferramentas' : 'Esconder Ferramentas'">
|
|
17
|
-
<span class="tool tool-show--tools">
|
|
18
|
-
<font-awesome-icon :icon="['fas', !showTools ? 'expand-alt' : 'compress-alt']" class="h3 text-primary"
|
|
19
|
-
@click="showTools = !showTools"/>
|
|
20
|
-
</span>
|
|
21
|
-
</el-tooltip> -->
|
|
22
|
-
<span class="tool tool-close" @click="$emit('close')">
|
|
23
|
-
Fechar
|
|
24
|
-
<font-awesome-icon
|
|
25
|
-
:icon="['fas', 'times']"
|
|
26
|
-
class="text-white ml-1"
|
|
27
|
-
/>
|
|
28
|
-
</span>
|
|
29
|
-
|
|
30
|
-
<div class="user__cv__arrows">
|
|
31
|
-
<button v-if="hasPrevUser" @click="preUser()">
|
|
32
|
-
<i class="fas fa-chevron-left"></i>
|
|
33
|
-
</button>
|
|
34
|
-
<span v-else></span>
|
|
35
|
-
|
|
36
|
-
<button v-if="hasNextUser" @click="nextUser()">
|
|
37
|
-
<i class="fas fa-chevron-right"></i>
|
|
38
|
-
</button>
|
|
39
|
-
<span v-else></span>
|
|
40
|
-
</div>
|
|
41
|
-
</template>
|
|
42
|
-
</el-dialog>
|
|
43
|
-
</template>
|
|
44
|
-
|
|
45
|
-
<script>
|
|
46
|
-
import { Dialog } from 'element-ui';
|
|
47
|
-
|
|
48
|
-
export default {
|
|
49
|
-
name: 'user-curriculum',
|
|
50
|
-
components: {
|
|
51
|
-
[Dialog.name]: Dialog
|
|
52
|
-
},
|
|
53
|
-
props: {
|
|
54
|
-
show: {
|
|
55
|
-
type: Boolean,
|
|
56
|
-
default: false
|
|
57
|
-
},
|
|
58
|
-
tools: {
|
|
59
|
-
type: Array,
|
|
60
|
-
default: () => []
|
|
61
|
-
},
|
|
62
|
-
maxUsers: {
|
|
63
|
-
type: Number,
|
|
64
|
-
default: 16
|
|
65
|
-
},
|
|
66
|
-
currentUserIndex: Number,
|
|
67
|
-
cover: String,
|
|
68
|
-
},
|
|
69
|
-
data() {
|
|
70
|
-
return {
|
|
71
|
-
isActive: this.show,
|
|
72
|
-
showTools: false,
|
|
73
|
-
coverPhoto: this.cover,
|
|
74
|
-
hasPrevUser: false,
|
|
75
|
-
hasNextUser: false,
|
|
76
|
-
isLoading: false,
|
|
77
|
-
};
|
|
78
|
-
},
|
|
79
|
-
watch: {
|
|
80
|
-
currentUserIndex() {
|
|
81
|
-
this.handleArrowsActive();
|
|
82
|
-
},
|
|
83
|
-
show(value) {
|
|
84
|
-
this.isActive = value;
|
|
85
|
-
},
|
|
86
|
-
cover(value) {
|
|
87
|
-
this.coverPhoto = value;
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
mounted() {
|
|
91
|
-
this.handleArrowsActive();
|
|
92
|
-
},
|
|
93
|
-
methods: {
|
|
94
|
-
preUser() {
|
|
95
|
-
if (this.currentUserIndex <= 0 || this.isLoading) return;
|
|
96
|
-
|
|
97
|
-
this.$emit('prev-user');
|
|
98
|
-
},
|
|
99
|
-
nextUser() {
|
|
100
|
-
if (this.currentUserIndex >= (this.maxUsers - 1) || this.isLoading) return;
|
|
101
|
-
|
|
102
|
-
this.$emit('next-user');
|
|
103
|
-
},
|
|
104
|
-
handleKeyPress({ keyCode }) {
|
|
105
|
-
switch (keyCode) {
|
|
106
|
-
case 37:
|
|
107
|
-
this.preUser();
|
|
108
|
-
break;
|
|
109
|
-
|
|
110
|
-
case 39:
|
|
111
|
-
this.nextUser();
|
|
112
|
-
break;
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
handleArrowsActive() {
|
|
116
|
-
this.isLoading = true;
|
|
117
|
-
|
|
118
|
-
if (this.currentUserIndex <= 0) {
|
|
119
|
-
this.hasPrevUser = false;
|
|
120
|
-
this.hasNextUser = true;
|
|
121
|
-
} else {
|
|
122
|
-
this.hasPrevUser = true;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
if (this.currentUserIndex <= (this.maxUsers - 2)) {
|
|
126
|
-
this.hasNextUser = true;
|
|
127
|
-
}
|
|
128
|
-
if (this.currentUserIndex === (this.maxUsers - 1)) {
|
|
129
|
-
this.hasNextUser = false;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
setTimeout(() => this.isLoading = false, 1000);
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
beforeMount() {
|
|
136
|
-
if (process.client) {
|
|
137
|
-
window.addEventListener('keydown', this.handleKeyPress);
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
beforeDestroy() {
|
|
141
|
-
if (process.client) {
|
|
142
|
-
window.removeEventListener('keydown', this.handleKeyPress);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
</script>
|
|
147
|
-
|
|
148
|
-
<style lang="scss" scoped>
|
|
149
|
-
@import '@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
|
|
150
|
-
|
|
151
|
-
/deep/ .el-dialog__body {
|
|
152
|
-
padding: 0;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/deep/ .el-dialog__header {
|
|
156
|
-
display: none;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/deep/ .el-dialog {
|
|
160
|
-
overflow: hidden;
|
|
161
|
-
border-radius: 10px;
|
|
162
|
-
padding-bottom: 50px;
|
|
163
|
-
max-width: 1360px;
|
|
164
|
-
margin-top: 5vh!important;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.img__color {
|
|
168
|
-
background: $primary;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.user__cv__arrows {
|
|
172
|
-
position: fixed;
|
|
173
|
-
display: flex;
|
|
174
|
-
align-items: center;
|
|
175
|
-
justify-content: space-between;
|
|
176
|
-
padding: 0 40px;
|
|
177
|
-
top: 0;
|
|
178
|
-
left: 0;
|
|
179
|
-
width: 100%;
|
|
180
|
-
height: 100vh;
|
|
181
|
-
z-index: -1;
|
|
182
|
-
pointer-events: none;
|
|
183
|
-
> button {
|
|
184
|
-
width: 42px;
|
|
185
|
-
height: 42px;
|
|
186
|
-
display: flex;
|
|
187
|
-
align-items: center;
|
|
188
|
-
justify-content: center;
|
|
189
|
-
border: none;
|
|
190
|
-
background: transparent;
|
|
191
|
-
font-size: 2rem;
|
|
192
|
-
color: $primary;
|
|
193
|
-
pointer-events: all;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.test-radius {
|
|
198
|
-
border-radius: 10px;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.tool {
|
|
202
|
-
position: absolute;
|
|
203
|
-
top: 1rem;
|
|
204
|
-
z-index: 10;
|
|
205
|
-
color: $primary;
|
|
206
|
-
cursor: pointer;
|
|
207
|
-
|
|
208
|
-
&-show--tools {
|
|
209
|
-
right: 1.5rem;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
&-close {
|
|
213
|
-
position: absolute;
|
|
214
|
-
width: 104.93px;
|
|
215
|
-
height: 28px;
|
|
216
|
-
right: 1.5rem;
|
|
217
|
-
display: flex;
|
|
218
|
-
justify-content: center;
|
|
219
|
-
align-items: center;
|
|
220
|
-
|
|
221
|
-
font-weight: 600;
|
|
222
|
-
background: rgba(0, 0, 0, 0.2);
|
|
223
|
-
border-radius: 17.5px;
|
|
224
|
-
color: #fff;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
.user-pdf {
|
|
229
|
-
background-color: #fff;
|
|
230
|
-
img {
|
|
231
|
-
width: 100%;
|
|
232
|
-
height: 150px;
|
|
233
|
-
object-fit: cover;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.no-cover-photo {
|
|
237
|
-
background: $primary;
|
|
238
|
-
width: 100%;
|
|
239
|
-
height: 150px;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
/deep/ .user__preview__container {
|
|
244
|
-
transition: opacity 0.2s;
|
|
245
|
-
&.loading {
|
|
246
|
-
opacity: 0;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog
|
|
3
|
+
:visible.sync="isActive"
|
|
4
|
+
width="80%"
|
|
5
|
+
:custom-class="`position-relative user__preview__container ${isLoading ? 'loading' : ''}`"
|
|
6
|
+
@close="$emit('close')"
|
|
7
|
+
class="test-radius"
|
|
8
|
+
>
|
|
9
|
+
<template>
|
|
10
|
+
<div class="row d-flex justify-content-between mx-0 user-pdf">
|
|
11
|
+
<img v-if="!isLoading" v-show="coverPhoto" :src="coverPhoto" alt="" class="img__color" />
|
|
12
|
+
<div v-show="!coverPhoto" class="no-cover-photo"></div>
|
|
13
|
+
<slot name="content"></slot>
|
|
14
|
+
</div>
|
|
15
|
+
<slot></slot>
|
|
16
|
+
<!-- <el-tooltip placement="top" :content="!showTools ? 'Exibir Ferramentas' : 'Esconder Ferramentas'">
|
|
17
|
+
<span class="tool tool-show--tools">
|
|
18
|
+
<font-awesome-icon :icon="['fas', !showTools ? 'expand-alt' : 'compress-alt']" class="h3 text-primary"
|
|
19
|
+
@click="showTools = !showTools"/>
|
|
20
|
+
</span>
|
|
21
|
+
</el-tooltip> -->
|
|
22
|
+
<span class="tool tool-close" @click="$emit('close')">
|
|
23
|
+
Fechar
|
|
24
|
+
<font-awesome-icon
|
|
25
|
+
:icon="['fas', 'times']"
|
|
26
|
+
class="text-white ml-1"
|
|
27
|
+
/>
|
|
28
|
+
</span>
|
|
29
|
+
|
|
30
|
+
<div class="user__cv__arrows">
|
|
31
|
+
<button v-if="hasPrevUser" @click="preUser()">
|
|
32
|
+
<i class="fas fa-chevron-left"></i>
|
|
33
|
+
</button>
|
|
34
|
+
<span v-else></span>
|
|
35
|
+
|
|
36
|
+
<button v-if="hasNextUser" @click="nextUser()">
|
|
37
|
+
<i class="fas fa-chevron-right"></i>
|
|
38
|
+
</button>
|
|
39
|
+
<span v-else></span>
|
|
40
|
+
</div>
|
|
41
|
+
</template>
|
|
42
|
+
</el-dialog>
|
|
43
|
+
</template>
|
|
44
|
+
|
|
45
|
+
<script>
|
|
46
|
+
import { Dialog } from 'element-ui';
|
|
47
|
+
|
|
48
|
+
export default {
|
|
49
|
+
name: 'user-curriculum',
|
|
50
|
+
components: {
|
|
51
|
+
[Dialog.name]: Dialog
|
|
52
|
+
},
|
|
53
|
+
props: {
|
|
54
|
+
show: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: false
|
|
57
|
+
},
|
|
58
|
+
tools: {
|
|
59
|
+
type: Array,
|
|
60
|
+
default: () => []
|
|
61
|
+
},
|
|
62
|
+
maxUsers: {
|
|
63
|
+
type: Number,
|
|
64
|
+
default: 16
|
|
65
|
+
},
|
|
66
|
+
currentUserIndex: Number,
|
|
67
|
+
cover: String,
|
|
68
|
+
},
|
|
69
|
+
data() {
|
|
70
|
+
return {
|
|
71
|
+
isActive: this.show,
|
|
72
|
+
showTools: false,
|
|
73
|
+
coverPhoto: this.cover,
|
|
74
|
+
hasPrevUser: false,
|
|
75
|
+
hasNextUser: false,
|
|
76
|
+
isLoading: false,
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
watch: {
|
|
80
|
+
currentUserIndex() {
|
|
81
|
+
this.handleArrowsActive();
|
|
82
|
+
},
|
|
83
|
+
show(value) {
|
|
84
|
+
this.isActive = value;
|
|
85
|
+
},
|
|
86
|
+
cover(value) {
|
|
87
|
+
this.coverPhoto = value;
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
mounted() {
|
|
91
|
+
this.handleArrowsActive();
|
|
92
|
+
},
|
|
93
|
+
methods: {
|
|
94
|
+
preUser() {
|
|
95
|
+
if (this.currentUserIndex <= 0 || this.isLoading) return;
|
|
96
|
+
|
|
97
|
+
this.$emit('prev-user');
|
|
98
|
+
},
|
|
99
|
+
nextUser() {
|
|
100
|
+
if (this.currentUserIndex >= (this.maxUsers - 1) || this.isLoading) return;
|
|
101
|
+
|
|
102
|
+
this.$emit('next-user');
|
|
103
|
+
},
|
|
104
|
+
handleKeyPress({ keyCode }) {
|
|
105
|
+
switch (keyCode) {
|
|
106
|
+
case 37:
|
|
107
|
+
this.preUser();
|
|
108
|
+
break;
|
|
109
|
+
|
|
110
|
+
case 39:
|
|
111
|
+
this.nextUser();
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
handleArrowsActive() {
|
|
116
|
+
this.isLoading = true;
|
|
117
|
+
|
|
118
|
+
if (this.currentUserIndex <= 0) {
|
|
119
|
+
this.hasPrevUser = false;
|
|
120
|
+
this.hasNextUser = true;
|
|
121
|
+
} else {
|
|
122
|
+
this.hasPrevUser = true;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (this.currentUserIndex <= (this.maxUsers - 2)) {
|
|
126
|
+
this.hasNextUser = true;
|
|
127
|
+
}
|
|
128
|
+
if (this.currentUserIndex === (this.maxUsers - 1)) {
|
|
129
|
+
this.hasNextUser = false;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
setTimeout(() => this.isLoading = false, 1000);
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
beforeMount() {
|
|
136
|
+
if (process.client) {
|
|
137
|
+
window.addEventListener('keydown', this.handleKeyPress);
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
beforeDestroy() {
|
|
141
|
+
if (process.client) {
|
|
142
|
+
window.removeEventListener('keydown', this.handleKeyPress);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
</script>
|
|
147
|
+
|
|
148
|
+
<style lang="scss" scoped>
|
|
149
|
+
@import '@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
|
|
150
|
+
|
|
151
|
+
/deep/ .el-dialog__body {
|
|
152
|
+
padding: 0;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/deep/ .el-dialog__header {
|
|
156
|
+
display: none;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/deep/ .el-dialog {
|
|
160
|
+
overflow: hidden;
|
|
161
|
+
border-radius: 10px;
|
|
162
|
+
padding-bottom: 50px;
|
|
163
|
+
max-width: 1360px;
|
|
164
|
+
margin-top: 5vh!important;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.img__color {
|
|
168
|
+
background: $primary;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.user__cv__arrows {
|
|
172
|
+
position: fixed;
|
|
173
|
+
display: flex;
|
|
174
|
+
align-items: center;
|
|
175
|
+
justify-content: space-between;
|
|
176
|
+
padding: 0 40px;
|
|
177
|
+
top: 0;
|
|
178
|
+
left: 0;
|
|
179
|
+
width: 100%;
|
|
180
|
+
height: 100vh;
|
|
181
|
+
z-index: -1;
|
|
182
|
+
pointer-events: none;
|
|
183
|
+
> button {
|
|
184
|
+
width: 42px;
|
|
185
|
+
height: 42px;
|
|
186
|
+
display: flex;
|
|
187
|
+
align-items: center;
|
|
188
|
+
justify-content: center;
|
|
189
|
+
border: none;
|
|
190
|
+
background: transparent;
|
|
191
|
+
font-size: 2rem;
|
|
192
|
+
color: $primary;
|
|
193
|
+
pointer-events: all;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.test-radius {
|
|
198
|
+
border-radius: 10px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.tool {
|
|
202
|
+
position: absolute;
|
|
203
|
+
top: 1rem;
|
|
204
|
+
z-index: 10;
|
|
205
|
+
color: $primary;
|
|
206
|
+
cursor: pointer;
|
|
207
|
+
|
|
208
|
+
&-show--tools {
|
|
209
|
+
right: 1.5rem;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
&-close {
|
|
213
|
+
position: absolute;
|
|
214
|
+
width: 104.93px;
|
|
215
|
+
height: 28px;
|
|
216
|
+
right: 1.5rem;
|
|
217
|
+
display: flex;
|
|
218
|
+
justify-content: center;
|
|
219
|
+
align-items: center;
|
|
220
|
+
|
|
221
|
+
font-weight: 600;
|
|
222
|
+
background: rgba(0, 0, 0, 0.2);
|
|
223
|
+
border-radius: 17.5px;
|
|
224
|
+
color: #fff;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.user-pdf {
|
|
229
|
+
background-color: #fff;
|
|
230
|
+
img {
|
|
231
|
+
width: 100%;
|
|
232
|
+
height: 150px;
|
|
233
|
+
object-fit: cover;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.no-cover-photo {
|
|
237
|
+
background: $primary;
|
|
238
|
+
width: 100%;
|
|
239
|
+
height: 150px;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/deep/ .user__preview__container {
|
|
244
|
+
transition: opacity 0.2s;
|
|
245
|
+
&.loading {
|
|
246
|
+
opacity: 0;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
</style>
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog
|
|
3
|
+
:visible.sync="isActive"
|
|
4
|
+
width="55%"
|
|
5
|
+
custom-class="position-relative"
|
|
6
|
+
@close="$emit('close')"
|
|
7
|
+
>
|
|
8
|
+
<template>
|
|
9
|
+
<div class="role">
|
|
10
|
+
<h3>Cadastrar Cliente</h3>
|
|
11
|
+
|
|
12
|
+
<section>
|
|
13
|
+
<validation-observer ref="sendRole">
|
|
14
|
+
<validation-provider
|
|
15
|
+
tag="div"
|
|
16
|
+
name="Nome"
|
|
17
|
+
rules="required"
|
|
18
|
+
v-slot="{ errors }"
|
|
19
|
+
>
|
|
20
|
+
<label for="name">Nome da Empresa</label>
|
|
21
|
+
<base-input
|
|
22
|
+
type="text"
|
|
23
|
+
id="name"
|
|
24
|
+
v-model="name"
|
|
25
|
+
:error="errors[0]"
|
|
26
|
+
:valid="errors.length ? true : false"
|
|
27
|
+
/>
|
|
28
|
+
<label for="name">Razão Social</label>
|
|
29
|
+
<base-input
|
|
30
|
+
type="text"
|
|
31
|
+
id="name"
|
|
32
|
+
v-model="name"
|
|
33
|
+
:error="errors[0]"
|
|
34
|
+
:valid="errors.length ? true : false"
|
|
35
|
+
/>
|
|
36
|
+
<label for="name">CNPJ</label>
|
|
37
|
+
<base-input
|
|
38
|
+
type="text"
|
|
39
|
+
id="name"
|
|
40
|
+
v-model="name"
|
|
41
|
+
:error="errors[0]"
|
|
42
|
+
:valid="errors.length ? true : false"
|
|
43
|
+
/>
|
|
44
|
+
<label for="name">CEP</label>
|
|
45
|
+
<base-input
|
|
46
|
+
type="text"
|
|
47
|
+
id="name"
|
|
48
|
+
v-model="name"
|
|
49
|
+
:error="errors[0]"
|
|
50
|
+
:valid="errors.length ? true : false"
|
|
51
|
+
/>
|
|
52
|
+
<label for="name">Endereço</label>
|
|
53
|
+
<base-input
|
|
54
|
+
type="text"
|
|
55
|
+
id="name"
|
|
56
|
+
v-model="name"
|
|
57
|
+
:error="errors[0]"
|
|
58
|
+
:valid="errors.length ? true : false"
|
|
59
|
+
/>
|
|
60
|
+
<label for="name">Cidade</label>
|
|
61
|
+
<base-input
|
|
62
|
+
type="text"
|
|
63
|
+
id="name"
|
|
64
|
+
v-model="name"
|
|
65
|
+
:error="errors[0]"
|
|
66
|
+
:valid="errors.length ? true : false"
|
|
67
|
+
/>
|
|
68
|
+
</validation-provider>
|
|
69
|
+
</validation-observer>
|
|
70
|
+
<button
|
|
71
|
+
type="button"
|
|
72
|
+
:class="{'invalid-form': name === '' && !permissions}"
|
|
73
|
+
:disabled="name === '' && !permissions"
|
|
74
|
+
@click="sendRequest"
|
|
75
|
+
class="btn ml-auto d-block btn-primary btn-md"
|
|
76
|
+
>
|
|
77
|
+
Enviar
|
|
78
|
+
</button>
|
|
79
|
+
</section>
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
<span class="tool tool-close" @click="$emit('close')">
|
|
83
|
+
Fechar
|
|
84
|
+
<font-awesome-icon
|
|
85
|
+
:icon="['fas', 'times']"
|
|
86
|
+
class="text-white ml-1"
|
|
87
|
+
/>
|
|
88
|
+
</span>
|
|
89
|
+
</template>
|
|
90
|
+
</el-dialog>
|
|
91
|
+
</template>
|
|
92
|
+
|
|
93
|
+
<script>
|
|
94
|
+
import { Dialog, Select, Option } from 'element-ui';
|
|
95
|
+
|
|
96
|
+
export default {
|
|
97
|
+
name: 'add-customer-modal',
|
|
98
|
+
components: {
|
|
99
|
+
[Dialog.name]: Dialog,
|
|
100
|
+
[Select.name]: Select,
|
|
101
|
+
[Option.name]: Option,
|
|
102
|
+
},
|
|
103
|
+
props: {
|
|
104
|
+
isActive: {
|
|
105
|
+
type: Boolean,
|
|
106
|
+
default: false,
|
|
107
|
+
description: 'Modal open verification'
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
data() {
|
|
111
|
+
return {
|
|
112
|
+
name: '',
|
|
113
|
+
permissions: null,
|
|
114
|
+
permessionsData: [
|
|
115
|
+
{
|
|
116
|
+
id: 22845207,
|
|
117
|
+
name: 'Administrador'
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
id: 22890835,
|
|
121
|
+
name: 'Usuário Empresas'
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
id: 22913699,
|
|
125
|
+
name: 'Portal do RH'
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
id: 22959227,
|
|
129
|
+
name: 'Universidade Corporativa'
|
|
130
|
+
},
|
|
131
|
+
]
|
|
132
|
+
};
|
|
133
|
+
},
|
|
134
|
+
methods: {
|
|
135
|
+
async sendRequest() {
|
|
136
|
+
const pass = await this.$refs.sendRole.validate();
|
|
137
|
+
if (!pass) {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
let payload = {
|
|
142
|
+
level: this.name,
|
|
143
|
+
permission_id: this.permissions
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
this.$emit('add-role', payload);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
</script>
|
|
151
|
+
|
|
152
|
+
<style lang="scss" scoped>
|
|
153
|
+
@import '@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
|
|
154
|
+
|
|
155
|
+
/deep/ .el-dialog__body {
|
|
156
|
+
padding: 0;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/deep/ .el-dialog__header {
|
|
160
|
+
display: none;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/deep/ .el-dialog {
|
|
164
|
+
overflow: hidden;
|
|
165
|
+
border-radius: 10px;
|
|
166
|
+
max-width: 47.5rem;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.role {
|
|
170
|
+
padding: 2rem 3rem;
|
|
171
|
+
|
|
172
|
+
section {
|
|
173
|
+
margin-top: 2rem;
|
|
174
|
+
|
|
175
|
+
.invalid-form {
|
|
176
|
+
opacity: 0.3;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.tool {
|
|
182
|
+
position: absolute;
|
|
183
|
+
top: 1rem;
|
|
184
|
+
z-index: 10;
|
|
185
|
+
color: $primary;
|
|
186
|
+
cursor: pointer;
|
|
187
|
+
|
|
188
|
+
&-close {
|
|
189
|
+
position: absolute;
|
|
190
|
+
width: 88px;
|
|
191
|
+
height: 27px;
|
|
192
|
+
right: 7px;
|
|
193
|
+
top: 7px;
|
|
194
|
+
display: flex;
|
|
195
|
+
justify-content: center;
|
|
196
|
+
align-items: center;
|
|
197
|
+
|
|
198
|
+
font-size: 11px;
|
|
199
|
+
|
|
200
|
+
font-weight: 500;
|
|
201
|
+
background: rgba(0, 0, 0, 0.2);
|
|
202
|
+
border-radius: 17.5px;
|
|
203
|
+
color: #fff;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
</style>
|
|
@@ -64,8 +64,9 @@
|
|
|
64
64
|
:disabled="selectPosition === ''"
|
|
65
65
|
:class="{'no-position': selectPosition === ''}"
|
|
66
66
|
@click="addMember(member)"
|
|
67
|
+
class="btn ml-auto d-block btn-primary btn-md"
|
|
67
68
|
>
|
|
68
|
-
Adicionar
|
|
69
|
+
Adicionar Membro
|
|
69
70
|
</button>
|
|
70
71
|
</section>
|
|
71
72
|
|
|
@@ -229,21 +230,6 @@ export default {
|
|
|
229
230
|
}
|
|
230
231
|
}
|
|
231
232
|
|
|
232
|
-
button {
|
|
233
|
-
margin-left: 1rem;
|
|
234
|
-
height: 2rem;
|
|
235
|
-
width: 11.5rem;
|
|
236
|
-
|
|
237
|
-
border: 0;
|
|
238
|
-
border-radius: 23rem;
|
|
239
|
-
|
|
240
|
-
color: #fff;
|
|
241
|
-
background-color: #5865f2;
|
|
242
|
-
border-color: #5865f2;
|
|
243
|
-
|
|
244
|
-
outline: 0;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
233
|
.no-position {
|
|
248
234
|
opacity: 0.3;
|
|
249
235
|
}
|
|
@@ -312,4 +298,4 @@ export default {
|
|
|
312
298
|
color: #fff;
|
|
313
299
|
}
|
|
314
300
|
}
|
|
315
|
-
</style>
|
|
301
|
+
</style>
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
:class="{'invalid-form': name === '' && !permissions}"
|
|
52
52
|
:disabled="name === '' && !permissions"
|
|
53
53
|
@click="sendRequest"
|
|
54
|
+
class="btn ml-auto d-block btn-primary btn-md"
|
|
54
55
|
>
|
|
55
56
|
Enviar
|
|
56
57
|
</button>
|
|
@@ -141,7 +142,6 @@ export default {
|
|
|
141
142
|
/deep/ .el-dialog {
|
|
142
143
|
overflow: hidden;
|
|
143
144
|
border-radius: 10px;
|
|
144
|
-
padding-bottom: 50px;
|
|
145
145
|
max-width: 47.5rem;
|
|
146
146
|
}
|
|
147
147
|
|
|
@@ -151,25 +151,6 @@ export default {
|
|
|
151
151
|
section {
|
|
152
152
|
margin-top: 2rem;
|
|
153
153
|
|
|
154
|
-
button {
|
|
155
|
-
position: absolute;
|
|
156
|
-
right: 48px;
|
|
157
|
-
bottom: 25px;
|
|
158
|
-
|
|
159
|
-
margin-left: auto;
|
|
160
|
-
|
|
161
|
-
width: 7.375rem;
|
|
162
|
-
height: 2rem;
|
|
163
|
-
|
|
164
|
-
background: #5865F2;
|
|
165
|
-
color: $white;
|
|
166
|
-
|
|
167
|
-
border-radius: 87px;
|
|
168
|
-
|
|
169
|
-
border: 0;
|
|
170
|
-
outline: 0;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
154
|
.invalid-form {
|
|
174
155
|
opacity: 0.3;
|
|
175
156
|
}
|
|
@@ -201,4 +182,4 @@ export default {
|
|
|
201
182
|
color: #fff;
|
|
202
183
|
}
|
|
203
184
|
}
|
|
204
|
-
</style>
|
|
185
|
+
</style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burh/nuxt-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.358",
|
|
4
4
|
"description": "Design System and Components.",
|
|
5
5
|
"author": "Burh",
|
|
6
6
|
"scripts": {
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
"generate": "nuxt generate",
|
|
11
11
|
"build:server": "git pull origin release && yarn install && yarn build && pm2 restart all",
|
|
12
12
|
"start:maintenance": "MAINTENANCE_MODE=true pm2 restart all",
|
|
13
|
-
"dev:maintenance": "MAINTENANCE_MODE=true nuxt"
|
|
14
|
-
"core:publish": "npm version patch && npm publish && git push"
|
|
13
|
+
"dev:maintenance": "MAINTENANCE_MODE=true nuxt"
|
|
15
14
|
},
|
|
16
15
|
"dependencies": {
|
|
17
16
|
"@babel/core": "^7.4.5",
|