mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 06:52:01 +09:00
수정건 수정
This commit is contained in:
@@ -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("비밀번호 확인을 입력해 주세요.");
|
||||
|
||||
Reference in New Issue
Block a user