mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 01:00:23 +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("비밀번호 확인을 입력해 주세요.");
|
||||
|
||||
@@ -1,24 +1,18 @@
|
||||
<template>
|
||||
|
||||
<article id="content" class="content error_page">
|
||||
<div class="error-wrap">
|
||||
<div class="error-body">
|
||||
<img src="@/assets/images/error_message_page.png">
|
||||
|
||||
<p class="header">페이지를 찾을 수 없습니다.</p>
|
||||
<span class="message">웹 페이지의 주소가 잘못 입력되었거나,<br>
|
||||
변경 또는 삭제되어 요청하신 페이지를 찾을 수 없습니다. <br>
|
||||
입력하신 주소가 정확한지 다시 한번 확인해 주시기 바랍니다.<br>
|
||||
이용에 불편을 드려 죄송합니다.
|
||||
</span>
|
||||
|
||||
<p class="error-btns">
|
||||
<a href="#">이전 페이지로</a><a href="#">메인으로</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<div class="error-body">
|
||||
<img src="@/assets/images/error_message_page.png">
|
||||
|
||||
<p class="header">페이지를 찾을 수 없습니다.</p>
|
||||
<span class="message">웹 페이지의 주소가 잘못 입력되었거나,<br>
|
||||
변경 또는 삭제되어 요청하신 페이지를 찾을 수 없습니다. <br>
|
||||
입력하신 주소가 정확한지 다시 한번 확인해 주시기 바랍니다.<br>
|
||||
이용에 불편을 드려 죄송합니다.
|
||||
</span>
|
||||
|
||||
<p class="error-btns">
|
||||
<a href="#" @click="backGo()">이전 페이지로</a><a href="#" @click="goMain()">메인으로</a>
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -39,8 +33,15 @@
|
||||
this.$store.commit("login/isErrorPage", false);
|
||||
},
|
||||
methods: {
|
||||
// 이전 페이지
|
||||
backGo() {
|
||||
this.$store.commit("login/isErrorPage", false);
|
||||
this.$router.go(-1);
|
||||
},
|
||||
// 메인 페이지
|
||||
goMain(){
|
||||
this.$store.commit("login/isErrorPage", false);
|
||||
this.$router.push({ path: '/' });
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,23 +1,17 @@
|
||||
<template>
|
||||
|
||||
<article id="content" class="content error_page">
|
||||
<div class="error-wrap">
|
||||
<div class="error-body">
|
||||
<img src="@/assets/images/error_message_system.png">
|
||||
|
||||
<p class="header">시스템 오류</p>
|
||||
<span class="message">이용에 불편을 드려 죄송합니다.<br>
|
||||
일시적인 오류가 발생하였습니다. <br>
|
||||
잠시 후 이용하여 주시기 바랍니다.
|
||||
</span>
|
||||
|
||||
<p class="error-btns">
|
||||
<a href="#">이전 페이지로</a><a href="#">메인으로</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<div class="error-body">
|
||||
<img src="@/assets/images/error_message_system.png">
|
||||
|
||||
<p class="header">시스템 오류</p>
|
||||
<span class="message">이용에 불편을 드려 죄송합니다.<br>
|
||||
일시적인 오류가 발생하였습니다. <br>
|
||||
잠시 후 이용하여 주시기 바랍니다.
|
||||
</span>
|
||||
|
||||
<p class="error-btns">
|
||||
<a href="#" @click="backGo()">이전 페이지로</a><a href="#" @click="goMain()">메인으로</a>
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -38,8 +32,15 @@
|
||||
this.$store.commit("login/isErrorPage", false);
|
||||
},
|
||||
methods: {
|
||||
// 이전 페이지
|
||||
backGo() {
|
||||
this.$store.commit("login/isErrorPage", false);
|
||||
this.$router.go(-1);
|
||||
},
|
||||
// 메인 페이지
|
||||
goMain(){
|
||||
this.$store.commit("login/isErrorPage", false);
|
||||
this.$router.push({ path: '/' });
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
<template>
|
||||
<body>
|
||||
<div class="wrap" v-bind:class="{'main_wrap': (isAuthChk), 'login-wrap': (!isLogin && !isAuthChk), 'bg-wrap': (isLogin && !isAuthChk) }" >
|
||||
<div v-if="!isErrPage" class="wrap" v-bind:class="{'main_wrap': (isAuthChk), 'login-wrap': (!isLogin && !isAuthChk), 'bg-wrap': (isLogin && !isAuthChk) }" >
|
||||
<hub-web-header v-if="isAuthChk == true"></hub-web-header>
|
||||
<nav-bar v-if="isAuthChk == true"></nav-bar>
|
||||
<router-view :key="$route.fullPath"></router-view>
|
||||
<hub-web-footer v-if="isAuthChk == false"></hub-web-footer>
|
||||
</div>
|
||||
<div v-else class="error-wrap">
|
||||
<router-view :key="$route.fullPath"></router-view>
|
||||
</div>
|
||||
</body>
|
||||
</template>
|
||||
@@ -21,6 +24,7 @@ import "../assets/css/layout.css";
|
||||
import "../assets/css/contents.css";
|
||||
import "../assets/css/common.css";
|
||||
import "../assets/css/style.css";
|
||||
import "../assets/css/error.css";
|
||||
import { mapGetters } from 'vuex';
|
||||
import tokenSvc from '@/common/token-service';
|
||||
|
||||
@@ -45,6 +49,7 @@ export default {
|
||||
mounted() {
|
||||
this.isLogin = this.$store.getters["login/isLogin"]
|
||||
this.isAuthChk = this.$store.getters["login/isAuthChk"]
|
||||
this.isErrPage = this.$store.getters["login/isErrorPage"]
|
||||
}
|
||||
,computed: {
|
||||
...mapGetters({
|
||||
|
||||
Reference in New Issue
Block a user