Commit 1a0d69ae authored by shj's avatar shj

[ADD] 가이드 목차 관리 - 비밀번호 확인 후 접근 가능하도록 수정

parent 10c8da3f
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
<div class="search-container" v-show="showSearch"> <div class="search-container" v-show="showSearch">
<v-text-field <v-text-field
v-model="keyword" v-model="keyword"
@keydown.enter="editOn" @keydown.enter="loadPWDialog"
:maxlength="50" :maxlength="50"
solo solo
dense dense
...@@ -161,8 +161,22 @@ ...@@ -161,8 +161,22 @@
<v-progress-linear absolute bottom :value="scrollPositionRate" height="1" background-color="#eee" color="primary" style="transition:none !important;" /> <v-progress-linear absolute bottom :value="scrollPositionRate" height="1" background-color="#eee" color="primary" style="transition:none !important;" />
<v-dialog v-model="editDialogPWActive" width="200">
<v-form class="pa-5" @submit.prevent>
<span>비밀번호를 입력하세요.</span>
<v-text-field
id="editModePWInput"
v-model="editDialogPW"
type="password"
autofocus
@keydown.enter="checkEditModePW"
/>
</v-form>
</v-dialog>
<v-dialog <v-dialog
v-model="editDialogActive" v-model="editDialogActive"
content-class="edit-dialog"
> >
<div class="edit-dialog-container"> <div class="edit-dialog-container">
<h2 class="pa-4 text-center">인덱스 관리</h2> <h2 class="pa-4 text-center">인덱스 관리</h2>
...@@ -306,6 +320,8 @@ export default{ ...@@ -306,6 +320,8 @@ export default{
// 인덱스 관리 // 인덱스 관리
editDialogActive: false, editDialogActive: false,
editDialogPWActive: false,
editDialogPW: '',
editModeList: [], editModeList: [],
editModeRemainList: [], editModeRemainList: [],
editFormMethod: '', editFormMethod: '',
...@@ -405,10 +421,19 @@ export default{ ...@@ -405,10 +421,19 @@ export default{
} }
}) })
}, },
editOn(){ loadPWDialog(){
if(this.keyword === '열려라 문'){ if(this.keyword === '열려라 문'){
this.editDialogPWActive = true
}
},
checkEditModePW(){
if(this.editDialogPW === 'vaz1l-9633!'){
this.editDialogPWActive = false
this.editDialogActive = true this.editDialogActive = true
this.$store.commit('setEditMode', true) this.$store.commit('setEditMode', true)
this.editDialogPW = ''
} else {
alert('비밀번호가 일치하지 않습니다.')
} }
}, },
setEditTarget(item){ setEditTarget(item){
...@@ -626,58 +651,61 @@ export default{ ...@@ -626,58 +651,61 @@ export default{
} }
.v-dialog { .v-dialog {
width: 70vw !important;
height: 80vh;
background-color: white; background-color: white;
.edit-dialog-container{ &.edit-dialog {
height: 100%; width: 70vw !important;
position: relative; height: 80vh;
.close-btn { .edit-dialog-container{
font-size: 26px; height: 100%;
position: absolute; position: relative;
top: 20px;
right: 20px;
}
.col {
.v-subheader {
font-size: 1rem;
}
.v-list { .close-btn {
height: calc(100% - 48px); font-size: 26px;
background-color: rgba(0, 0, 0, 0.034); position: absolute;
border-radius: 10px; top: 20px;
overflow: auto; right: 20px;
}
.v-list-item { .col {
&.active, &.v-list-item--active{ .v-subheader {
*{ font-size: 1rem;
font-weight: bold !important; }
color: #1E88E5;
.v-list {
height: calc(100% - 48px);
background-color: rgba(0, 0, 0, 0.034);
border-radius: 10px;
overflow: auto;
.v-list-item {
&.active, &.v-list-item--active{
*{
font-weight: bold !important;
color: #1E88E5;
}
background-color: rgba(128,128,128,0.07) !important;
} }
background-color: rgba(128,128,128,0.07) !important;
} }
} }
}
&:nth-child(2) { &:nth-child(2) {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
.v-list {
height: calc(100% - 48px);
}
}
.v-list { .v-form {
height: calc(100% - 48px); height: calc(100% - 48px);
background-color: rgba(0, 0, 0, 0.034);
border-radius: 10px;
overflow: auto;
} }
} }
.v-form {
height: calc(100% - 48px);
background-color: rgba(0, 0, 0, 0.034);
border-radius: 10px;
overflow: auto;
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment