
--- client/resources/css/common.css
+++ client/resources/css/common.css
... | ... | @@ -6,6 +6,12 @@ |
6 | 6 |
align-items: center; |
7 | 7 |
} |
8 | 8 |
|
9 |
+.flex-end{ |
|
10 |
+ display: flex; |
|
11 |
+ justify-content: flex-end; |
|
12 |
+ align-items: center; |
|
13 |
+} |
|
14 |
+ |
|
9 | 15 |
.pad-10 { |
10 | 16 |
padding: 10px; |
11 | 17 |
} |
... | ... | @@ -64,6 +70,13 @@ |
64 | 70 |
justify-content: flex-end; |
65 | 71 |
align-items: center; |
66 | 72 |
} |
73 |
+.blue-border-bnt{ |
|
74 |
+ padding: 8px 15px; |
|
75 |
+ color: #417dff; |
|
76 |
+ border: 1px solid #417dff; |
|
77 |
+ border-radius: 3px; |
|
78 |
+ background-color: #fff; |
|
79 |
+} |
|
67 | 80 |
|
68 | 81 |
.blue-btn { |
69 | 82 |
padding: 8px 15px; |
--- client/views/layout/AdminHeader.vue
+++ client/views/layout/AdminHeader.vue
... | ... | @@ -1,6 +1,10 @@ |
1 | 1 |
<template> |
2 | 2 |
<header> |
3 |
- <p class="navigate_bar">{{ userId }}</p> |
|
3 |
+ <div class="flex-end"> |
|
4 |
+ <p class="admin-bar">{{ mngrId.mngr_id }} 님</p> |
|
5 |
+ <button class="blue-border-bnt" v-show="mngrId.mngr_id != null">로그아웃</button> |
|
6 |
+ </div> |
|
7 |
+ |
|
4 | 8 |
</header> |
5 | 9 |
</template> |
6 | 10 |
|
... | ... | @@ -8,6 +12,9 @@ |
8 | 12 |
import { useRoute } from 'vue-router'; |
9 | 13 |
|
10 | 14 |
export default { |
15 |
+ props:{ |
|
16 |
+ mngrId:{type: Object} |
|
17 |
+ }, |
|
11 | 18 |
data() { |
12 | 19 |
return {}; |
13 | 20 |
}, |
... | ... | @@ -27,11 +34,13 @@ |
27 | 34 |
border-bottom: 1px solid #eee; |
28 | 35 |
grid-area: header; |
29 | 36 |
background: #fff; |
37 |
+ padding: 10px 30px; |
|
30 | 38 |
} |
31 | 39 |
|
32 |
-header p { |
|
40 |
+header p.admin-bar { |
|
33 | 41 |
padding: 15px 30px; |
34 | 42 |
font-size: 1.5rem; |
35 | 43 |
font-weight: 900; |
44 |
+ |
|
36 | 45 |
} |
37 | 46 |
</style> |
--- client/views/pages/App.vue
+++ client/views/pages/App.vue
... | ... | @@ -1,7 +1,7 @@ |
1 | 1 |
<template> |
2 | 2 |
<div v-if="isAdminPage" class="admin-wrap"> |
3 | 3 |
<div :class="{ 'layout-wrap': true }"> |
4 |
- <AdminHeader v-show="mngrInfo.mngr_id != null" :userId="loggedInUserId"></AdminHeader> |
|
4 |
+ <AdminHeader v-show="mngrInfo.mngr_id != null" :mngrId="mngrInfo"></AdminHeader> |
|
5 | 5 |
<AdminMenu v-show="mngrInfo.mngr_id != null"></AdminMenu> |
6 | 6 |
<div :class="{ 'login-wrap': mngrInfo.mngr_id == null, 'main-wrap': mngrInfo.mngr_id != null }"> |
7 | 7 |
<router-view @updateIsLogin="isLogin = $event" /> |
... | ... | @@ -50,7 +50,6 @@ |
50 | 50 |
updateIsLogin: function (boolean) { |
51 | 51 |
console.log("newValue : ", newValue); |
52 | 52 |
this.isLogin = boolean; |
53 |
- this.loggedInUserId = "test"; |
|
54 | 53 |
}, |
55 | 54 |
//로그인 사용자 조회 |
56 | 55 |
loginUserSelectOne: function (callback) { |
... | ... | @@ -196,7 +195,7 @@ |
196 | 195 |
height: 100%; |
197 | 196 |
display: grid; |
198 | 197 |
grid-template-columns: 200px minmax(1234px, 1fr); |
199 |
- grid-template-rows: 50px 1fr 33px; |
|
198 |
+ grid-template-rows: auto 1fr 33px; |
|
200 | 199 |
grid-template-areas: |
201 | 200 |
"nav header " |
202 | 201 |
"nav main " |
--- client/views/pages/admin/login/Login.vue
+++ client/views/pages/admin/login/Login.vue
... | ... | @@ -63,12 +63,6 @@ |
63 | 63 |
|
64 | 64 |
data: vm.mngrLogin |
65 | 65 |
}).then(function (response) { |
66 |
- // console.log("login - response : ", response.data); |
|
67 |
- // console.log("headers",response.headers); |
|
68 |
- console.log("1 : ", response.headers); |
|
69 |
- const cookies = response.headers['Set-Cookie'] |
|
70 |
- const cookies2 = response.headers['set-cookie'] |
|
71 |
- console.log("2", cookies, "3", cookies2) |
|
72 | 66 |
if (response.data == true) { |
73 | 67 |
vm.$emit("updateIsLogin", true); |
74 | 68 |
vm.$router.push({ path: '/adm.page', query: {} }); |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?