
--- client/views/pages/user/MemberManagement.vue
+++ client/views/pages/user/MemberManagement.vue
... | ... | @@ -111,7 +111,7 @@ |
111 | 111 |
<label for="use" class="require">사용여부</label> |
112 | 112 |
<div class="switch"> |
113 | 113 |
<input type="checkbox" id="switch" :checked="selectedUser.useAt === 'Y'" |
114 |
- @change="toggleUseAt" /> |
|
114 |
+ @change="toggleUseAt" :disabled="!isNewInsert" /> |
|
115 | 115 |
<label for="switch">Toggle</label> |
116 | 116 |
</div> |
117 | 117 |
</dd> |
... | ... | @@ -307,11 +307,6 @@ |
307 | 307 |
}, |
308 | 308 |
// 스위치 사용여부 |
309 | 309 |
toggleUseAt() { |
310 |
- if (!this.isNewInsert) { |
|
311 |
- alert("회원가입 시 사용여부 변경이 불가능합니다."); |
|
312 |
- return; // 변경을 막기 위해 함수 종료 |
|
313 |
- } |
|
314 |
- |
|
315 | 310 |
this.selectedUser.useAt = this.selectedUser.useAt === 'Y' ? 'N' : 'Y'; |
316 | 311 |
}, |
317 | 312 |
// 삭제 또는 복구 로직 |
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?