mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 02:02:58 +09:00
수정건 수정
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
</div>
|
||||
|
||||
<div class="table table_form">
|
||||
<form action="" target="_blank" method="get" ref="form">
|
||||
<form action="" target="_blank" method="post" ref="form">
|
||||
<input type="hidden" name="svcUserId" id="svcUserId" v-model="svcUserId" />
|
||||
<input type="hidden" name="ezSvcUserAuthKey" id="ezSvcUserAuthKey" v-model="ezSvcUserAuthKey" />
|
||||
</form>
|
||||
|
||||
@@ -136,10 +136,14 @@ export default {
|
||||
created(){
|
||||
if(this.$route.params.serviceId != null){
|
||||
this.$store.commit('dataStore/updateUserId', this.$route.params.serviceId);
|
||||
this.userId = this.$route.params.serviceId;
|
||||
console.log('created : '+this.userId);
|
||||
this.memberDetail(this.$route.params.serviceId);
|
||||
}else{
|
||||
var userId = this.$store.getters["dataStore/getUserId"];
|
||||
this.memberDetail(userId);
|
||||
var userId2 = this.$store.getters["dataStore/getUserId"];
|
||||
this.userId = userId2;
|
||||
console.log('created2 : '+this.userId);
|
||||
this.memberDetail(this.userId);
|
||||
}
|
||||
},
|
||||
destroyed() {
|
||||
@@ -150,6 +154,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
async memberDetail(serviceId){
|
||||
this.svcUserId = serviceId;
|
||||
this.row.userId = serviceId;
|
||||
try {
|
||||
const response = await custMgtApi.memberDetail(this.row);
|
||||
@@ -281,9 +286,11 @@ export default {
|
||||
this.$refs._email.focus();
|
||||
},
|
||||
homeLogin(){
|
||||
this.$refs.form.action = this.homePageUrl;
|
||||
this.$refs.form.action = this.homePageUrl;
|
||||
this.svcUserId = this.userId
|
||||
this.$refs.form.submit()
|
||||
console.log('--------');
|
||||
console.log(this.svcUserId);
|
||||
this.$refs.form.submit();
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
<script>
|
||||
import { mapGetters } from 'vuex';
|
||||
import api from '../service/api';
|
||||
import tokenSvc from '@/common/token-service';
|
||||
// import tokenSvc from '@/common/token-service';
|
||||
import { utils_mixin, chkPattern2 } from '../service/mixins';
|
||||
import LoginPopup from '@/components/LoginPopup.vue'
|
||||
import commonModal from "../components/commonModal";
|
||||
@@ -83,6 +83,12 @@ export default {
|
||||
,commonModal
|
||||
},
|
||||
created() {
|
||||
const historyUrl = this.$router.options.history.state.back;
|
||||
console.log(historyUrl);
|
||||
console.log('>>>>1111>>>>'+this.getLogin);
|
||||
if(!this.getLogin){
|
||||
this.$router.push({ path: '/login' });
|
||||
}
|
||||
// if(!!tokenSvc.getToken()){
|
||||
// this.$store.commit("login/isLogin", true);
|
||||
// this.$store.commit("login/isAuthChk", true);
|
||||
@@ -193,6 +199,14 @@ export default {
|
||||
vm.$store.commit("login/isLogin", false);
|
||||
vm.$store.commit("login/isAuthChk", false);
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}else if(rsp.retCode == '4022'){
|
||||
this.row.title = '인증실패';
|
||||
this.row.msg1 = '계정 잠김 잠시후 다시 시도해주세요.';
|
||||
this.row.msg2 = '로그아웃 됩니다.';
|
||||
this.row.callFnc = 'login'
|
||||
vm.$store.commit("login/isLogin", false);
|
||||
vm.$store.commit("login/isAuthChk", false);
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}else if (!this.timer) {
|
||||
this.timerStop(this.timer);
|
||||
this.timer = null;
|
||||
@@ -362,7 +376,7 @@ export default {
|
||||
if(callFnc === 'login'){
|
||||
this.$router.push({ path: '/'});
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
<script>
|
||||
import api from '../service/api';
|
||||
import LoginPopup from '@/components/LoginPopup.vue';
|
||||
//import LoginPopup from '@/components/LoginPopup.vue';
|
||||
import tokenSvc from '@/common/token-service';
|
||||
import commonModal from "../components/commonModal";
|
||||
|
||||
@@ -128,8 +128,7 @@ export default {
|
||||
vm.$store.commit("login/isLogin", true);
|
||||
vm.$store.commit("login/savePwd", oprtrPw);
|
||||
vm.$router.push({ name: 'loginAuth',params: {userId : oprtrId}});
|
||||
} else if(rsp.retCode == '1001'){ // 비밀번호 변경
|
||||
console.log('=-==-=-=-');
|
||||
} else if(rsp.retCode == '1001'){ // 비밀번호 변경
|
||||
console.log(this.userId);
|
||||
vm.chgChkUserId();
|
||||
this.$router.push({ name: 'updatePassword',params: {userId : this.userId}});
|
||||
@@ -157,6 +156,7 @@ export default {
|
||||
this.row.msg2 = '지났습니다. 비밀번호를 변경하여';
|
||||
this.row.msg3 = '이용 부탁드립니다.';
|
||||
this.row.callFnc = 'updatePassword'
|
||||
//vm.$store.commit("login/isLogin", true);
|
||||
this.$refs.commonModal.alertModalOpen(this.row);
|
||||
} else if(rsp.retCode == '4007') {
|
||||
this.row.title = '로그인 실패';
|
||||
@@ -194,7 +194,8 @@ export default {
|
||||
// this.$router.push({ name: 'updatePassword', params: {}}).catch(()=>{});
|
||||
// this.$router.push({ name: 'updatePassword', params: {userId : this.userId} });
|
||||
// this.$router.push({ path: '/view/login/updatePassword', params: {userId : this.userId}});
|
||||
|
||||
this.$store.commit("login/isLogin", true);
|
||||
this.$store.commit("login/isAuthChk", false);
|
||||
this.$router.push({ name: 'updatePassword',params: {userId : this.userId}});
|
||||
}
|
||||
},
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
import lodash from "lodash";
|
||||
import api from '../service/api';
|
||||
import commonModal from "../components/commonModal";
|
||||
import { mapGetters } from 'vuex';
|
||||
|
||||
export default {
|
||||
name: 'updatePassword',
|
||||
@@ -34,15 +35,31 @@ export default {
|
||||
newPw2: '',
|
||||
passwordValidFlag: true,
|
||||
row: {},
|
||||
isLogin: false,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.$store.commit("login/isLogin", true);
|
||||
this.$store.commit("login/isAuthChk", false);
|
||||
console.log('>>>>'+this.getLogin);
|
||||
if(!this.getLogin){
|
||||
this.$router.push({ path: '/login' });
|
||||
}
|
||||
// this.$store.commit("login/isLogin", true);
|
||||
// this.$store.commit("login/isAuthChk", false);
|
||||
},
|
||||
computed: {
|
||||
...mapGetters({
|
||||
getLogin: 'login/isLogin',
|
||||
}),
|
||||
},
|
||||
|
||||
watch: {
|
||||
getLogin(data) {
|
||||
if (data != null && data != '' && data == true) {
|
||||
this.isLogin = true;
|
||||
} else {
|
||||
this.isLogin = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
components: {
|
||||
commonModal,
|
||||
},
|
||||
|
||||
@@ -487,8 +487,7 @@ export default {
|
||||
const response = await sendNumMgtApi.insertNumber1(this.tenureFile, this.businessFile, this.communicationFile, this.adminId, this.custNm, this.bRegNo, this.nmineeDivCd, this.saveSendNums, this.bizrAuthYn, this.custSeq, this.bRegNo)
|
||||
const result = response.data;
|
||||
|
||||
if (result != null && result.retCode == "0000") {
|
||||
alert(499);
|
||||
if (result != null && result.retCode == "0000") {
|
||||
if(result.data.list != null && result.data.list.length > 0){
|
||||
this.row.title = '발신번호 등록';
|
||||
var failMsg = "";
|
||||
|
||||
@@ -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