
--- client/views/component/modal/Modal.vue
+++ client/views/component/modal/Modal.vue
... | ... | @@ -1,7 +1,7 @@ |
1 | 1 |
<template> |
2 | 2 |
<div :class="['modal-back', { in: showModal }]"> |
3 | 3 |
<div :class="['modal', { in: showModal, shown: showModal }]"> |
4 |
- <div class="modal-dialog"> |
|
4 |
+ <div class="modal-dialog" :class="className"> |
|
5 | 5 |
<div class="modal-content"> |
6 | 6 |
<div class="modal-header"> |
7 | 7 |
<div class="flex justify-between align-center"> |
... | ... | @@ -11,9 +11,9 @@ |
11 | 11 |
<div class="modal-conts"> |
12 | 12 |
<slot></slot> |
13 | 13 |
</div> |
14 |
- <div class="modal-btn flex justify-end"> |
|
15 |
- <slot name="footer"></slot> |
|
16 |
- </div> |
|
14 |
+ <slot name="footer"> |
|
15 |
+ <!-- <div class="modal-btn flex justify-end"></div> --> |
|
16 |
+ </slot> |
|
17 | 17 |
</div> |
18 | 18 |
</div> |
19 | 19 |
</div> |
--- client/views/pages/Manager/sanctn/MyApprovalRequestList.vue
+++ client/views/pages/Manager/sanctn/MyApprovalRequestList.vue
... | ... | @@ -62,32 +62,31 @@ |
62 | 62 |
<Pagination :search="searchParams" @onChange="handlePageChange" /> |
63 | 63 |
<button class="btn sm primary" @click="isOptionsModalVisible = true">신청하기</button> |
64 | 64 |
</div> |
65 |
- <div v-if="isOptionsModalVisible" class="popup-overlay"> |
|
66 |
- <div class="popup-content"> |
|
67 |
- <div class="card"> |
|
68 |
- <div class="card-body"> |
|
69 |
- <h2 class="card-title">신청종류선택</h2> |
|
70 |
- <div class="buttons"> |
|
71 |
- <button class="btn sm hyuga" @click="handleRegistrationNavigation('휴가')">휴가신청</button> |
|
72 |
- <button class="btn sm chuljang" @click="handleRegistrationNavigation('출장')">출장신청</button> |
|
73 |
- </div> |
|
65 |
+ <Modal :showModal="isOptionsModalVisible" :className="'small-modal'"> |
|
66 |
+ <template #header> |
|
67 |
+ <div class="modal-title"> |
|
68 |
+ <p>신청 종류 선택</p> |
|
74 | 69 |
</div> |
70 |
+ <button class="btn-close" @click="isOptionsModalVisible = false"></button> |
|
71 |
+ </template> |
|
72 |
+ <div class="d-flex justify-between align-center mb20"> |
|
73 |
+ <button class="btn lg" @click="handleRegistrationNavigation('휴가')">휴가신청</button> |
|
74 |
+ <button class="btn lg" @click="handleRegistrationNavigation('출장')">출장신청</button> |
|
75 | 75 |
</div> |
76 |
- <button class="close-btn" @click="isOptionsModalVisible = false"> |
|
77 |
- <CloseCircleFilled /> |
|
78 |
- </button> |
|
79 |
- </div> |
|
80 |
- </div> |
|
76 |
+ <!-- <template #footer> |
|
77 |
+ <button class="btn sm primary" @click="isOptionsModalVisible = false">닫기</button> |
|
78 |
+ </template> --> |
|
79 |
+ </Modal> |
|
81 | 80 |
</template> |
82 | 81 |
<script> |
83 |
-import { SearchOutlined, CloseCircleFilled } from '@ant-design/icons-vue'; |
|
84 | 82 |
import Pagination from '../../../component/Pagination.vue'; |
83 |
+import Modal from '../../../component/modal/Modal.vue'; |
|
85 | 84 |
// API |
86 | 85 |
import { findMyApprovalRequestsProc } from '../../../../resources/api/sanctns'; |
87 | 86 |
|
88 | 87 |
export default { |
89 | 88 |
components: { |
90 |
- SearchOutlined, CloseCircleFilled, |
|
89 |
+ Modal, |
|
91 | 90 |
Pagination, |
92 | 91 |
}, |
93 | 92 |
|
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?