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,9 +651,11 @@ export default{ ...@@ -626,9 +651,11 @@ export default{
} }
.v-dialog { .v-dialog {
background-color: white;
&.edit-dialog {
width: 70vw !important; width: 70vw !important;
height: 80vh; height: 80vh;
background-color: white;
.edit-dialog-container{ .edit-dialog-container{
height: 100%; height: 100%;
...@@ -680,6 +707,7 @@ export default{ ...@@ -680,6 +707,7 @@ export default{
} }
} }
} }
}
} }
html.search-on { html.search-on {
@media screen and (max-width: 600px) { @media screen and (max-width: 600px) {
......
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