
--- client/views/pages/admin/user/UserSelectList.vue
+++ client/views/pages/admin/user/UserSelectList.vue
... | ... | @@ -119,9 +119,9 @@ |
119 | 119 |
<div> |
120 | 120 |
<input type="password" name="pwCk" id="pwCk" placeholder="password 확인" v-model="passwordCheck" ref="mngr_pwCheck" |
121 | 121 |
@change="passwordSyncCheck()" /> |
122 |
- <div v-if="this.passwordCheckFlag" style="color:rgb(0, 198, 60); display:block" class="warning">비밀번호 |
|
122 |
+ <div v-if="this.passwordCheckFlag === true" style="color:rgb(0, 198, 60); display:block" class="warning">비밀번호 |
|
123 | 123 |
일치</div> |
124 |
- <div v-else style="color:red; display:block" class="warning">비밀번호 불일치</div> |
|
124 |
+ <div v-else-if="this.passwordCheckFlag === false" style="color:red; display:block" class="warning">비밀번호 불일치</div> |
|
125 | 125 |
</div> |
126 | 126 |
<div><input type="text" placeholder="이름" v-model="mngr.mngr_nm" ref="mngr_nm" /></div> |
127 | 127 |
<div class="flex"> |
... | ... | @@ -226,6 +226,7 @@ |
226 | 226 |
methods: { |
227 | 227 |
openModal: function () { |
228 | 228 |
this.isModalOpen = true; |
229 |
+ this.passwordSyncCheck() |
|
229 | 230 |
}, |
230 | 231 |
|
231 | 232 |
closeModal: function () { |
... | ... | @@ -237,9 +238,13 @@ |
237 | 238 |
|
238 | 239 |
//비밀번호 매칭 확인 |
239 | 240 |
passwordSyncCheck: function () { |
240 |
- if (this.mngr.mngr_pw != this.passwordCheck) { |
|
241 |
+ if (!this.mngr.mngr_pw && !this.passwordCheck) { |
|
242 |
+ this.passwordCheckFlag = null; |
|
243 |
+ } else if (this.mngr.mngr_pw != this.passwordCheck) { |
|
241 | 244 |
this.passwordCheckFlag = false; |
242 |
- } else { this.passwordCheckFlag = true; } |
|
245 |
+ } else { |
|
246 |
+ this.passwordCheckFlag = true; |
|
247 |
+ } |
|
243 | 248 |
}, |
244 | 249 |
//ID 중복 검사 |
245 | 250 |
idCheck: function () { |
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?