수정건 수정

This commit is contained in:
USER
2022-08-03 17:40:17 +09:00
parent abb5db5b97
commit 811986fa6d
24 changed files with 327 additions and 161 deletions

View File

@@ -14,16 +14,14 @@
<tr>
<th>ID</th>
<td><input type="text" disabled v-model.trim="madangId" ref="_madangId2"></td>
</tr>
</tr>
<tr>
<th>비밀번호</th>
<td><input type="password" @keypress="onlyPassword" @input="onlyPassword" required minlength="8"
maxlength="16" ref="_pwd1" v-model.trim="userPwd1"></td>
</tr>
<tr>
<th>비밀번호 확인</th>
<td><input type="password" @keypress="onlyPassword" @input="onlyPassword" required minlength="8"
maxlength="16" ref="_pwd2" v-model.trim="userPwd2"></td>
<th>
비밀번호
</th>
<td>
<button class="button btn-p2color Ty02" @click.self.prevent="ajaxReset">비밀번호 초기화 문자 발송하기</button>
</td>
</tr>
<tr>
<th>이름</th>
@@ -125,6 +123,32 @@ export default {
// commonModal,
},
methods: {
async ajaxReset(){
var params =
{
"userId": this.madangId
}
try {
const response = await sysMgtApi.resetPassword(params)
const rsp = response.data;
console.log("RESULT_CODE : " + rsp.retCode);
if(rsp.retCode == '0000'){
this.row.title = '비밀번호 초기화';
this.row.msg1 = '등록된 휴대폰 번호로 초기화된 비밀번호가';
this.row.msg2 = '발송되었습니다.';
this.$parent.$refs.commmonModal.alertModalOpen(this.row);
}
} catch(err){
console.log(err)
this.row.title = '비밀번호 초기화';
this.row.msg1 = '실패 하였습니다.';
this.$parent.$refs.commmonModal.alertModalOpen(this.row);
return false;
}
},
doPwdValidate() {
if (this.isNull(this.userPwd2)) {
// alert("비밀번호 확인을 입력해 주세요.");