mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 02:16:34 +09:00
대량등록, 사용자ID 등록 팝업 수정
This commit is contained in:
@@ -83,15 +83,20 @@ httpClient.interceptors.response.use(
|
|||||||
console.log('response status:', response.status, 'data:', response.data);
|
console.log('response status:', response.status, 'data:', response.data);
|
||||||
return response;
|
return response;
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
if(error.message === 'Network Error'){
|
||||||
|
alert('네트워크 오류가 발생했습니다. 잠시 후 다시 시도해주세요.');
|
||||||
|
tokenSvc.removeToken();
|
||||||
|
window.top.location.href = '/login';
|
||||||
|
}
|
||||||
if (error.response != undefined && error.response != null) loadingLayer(false, error.response.config);
|
if (error.response != undefined && error.response != null) loadingLayer(false, error.response.config);
|
||||||
else loadingLayer(false, error.config);
|
else loadingLayer(false, error.config);
|
||||||
|
|
||||||
if (error.code === 'ECONNABORTED') {
|
if (error.code === 'ECONNABORTED') {
|
||||||
alert('서비스가 지연되고 있습니다. 잠시 후 확인하시고 다시 시도해주세요.');
|
alert('서비스가 지연되고 있습니다. 잠시 후 확인하시고 다시 시도해주세요.');
|
||||||
return Promise.reject(error);
|
return Promise.reject(error);
|
||||||
} else if(error.response.status == 401){
|
}else if(error.response.status == 401){
|
||||||
alert('세션이 만료되었습니다.');
|
alert('세션이 만료되었습니다.');
|
||||||
tokenSvc.removeToken();
|
tokenSvc.removeToken();
|
||||||
window.top.location.href = '/login';
|
window.top.location.href = '/login';
|
||||||
@@ -109,10 +114,12 @@ httpClient.interceptors.response.use(
|
|||||||
} else if (error.response.status == 511) {
|
} else if (error.response.status == 511) {
|
||||||
alert('웹템플릿 IP가 브랜드포털에 등록이 필요합니다. 기술지원에 문의해주세요.');
|
alert('웹템플릿 IP가 브랜드포털에 등록이 필요합니다. 기술지원에 문의해주세요.');
|
||||||
return Promise.reject(error);
|
return Promise.reject(error);
|
||||||
} else if (error.message == 'Network Error') {
|
}
|
||||||
alert('네트워크 오류가 발생했습니다. 잠시 후 다시 시도해주세요.');
|
// else if (error.message == 'Network Error') {
|
||||||
return Promise.reject(error);
|
// alert('네트워크 오류가 발생했습니다. 잠시 후 다시 시도해주세요.');
|
||||||
} else {
|
// return Promise.reject(error);
|
||||||
|
// }
|
||||||
|
else {
|
||||||
alert("else");
|
alert("else");
|
||||||
console.log('response error:', error);
|
console.log('response error:', error);
|
||||||
return Promise.reject(error);
|
return Promise.reject(error);
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import loginApi from '@/modules/login/service/api';
|
import loginApi from '@/modules/login/service/api';
|
||||||
import logoutModal from "./logoutModal";
|
import logoutModal from "./logoutModal";
|
||||||
|
import tokenSvc from '@/common/token-service';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "hubWebHeader",
|
name: "hubWebHeader",
|
||||||
@@ -36,7 +37,11 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
// console.log(this.$store["login/isLogin"])
|
// console.log(this.$store["login/isLogin"])
|
||||||
// this.$store.getters.getCounter
|
// this.$store.getters.getCounter
|
||||||
|
const loggedIn = !!tokenSvc.getToken();
|
||||||
|
if(!loggedIn){
|
||||||
|
window.top.location.href = '/login';
|
||||||
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters({
|
...mapGetters({
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
this.isLogin = !!tokenSvc.getToken();
|
this.isLogin = !!tokenSvc.getToken();
|
||||||
let curPage = location.pathname;
|
let curPage = location.pathname;
|
||||||
|
|
||||||
if (this.isLogin && curPage != "/login") {
|
if (this.isLogin && curPage != "/login") {
|
||||||
this.$store.commit("login/isLogin", true);
|
this.$store.commit("login/isLogin", true);
|
||||||
this.setMenuData();
|
this.setMenuData();
|
||||||
@@ -48,7 +49,7 @@ export default {
|
|||||||
this.$store.commit("login/isLogin", false);
|
this.$store.commit("login/isLogin", false);
|
||||||
this.isLogin = false;
|
this.isLogin = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
//this.menuhighlight();
|
//this.menuhighlight();
|
||||||
@@ -61,7 +62,7 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
getLogin(data) {
|
getLogin(data) {
|
||||||
if (data != null && data != '' && data == true) {
|
if (data != null && data != '' && data == true) {
|
||||||
this.isLogin = true;
|
this.isLogin = true;
|
||||||
this.setMenuData();
|
this.setMenuData();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ export default {
|
|||||||
totalItems: 0,
|
totalItems: 0,
|
||||||
grid: {
|
grid: {
|
||||||
url: '/api/v1/bo/attractMgt/channelList',
|
url: '/api/v1/bo/attractMgt/channelList',
|
||||||
pagePerRows: 50,
|
pagePerRows: 20,
|
||||||
pagination: true,
|
pagination: true,
|
||||||
isCheckbox: false, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거
|
isCheckbox: false, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거
|
||||||
initialRequest: false,
|
initialRequest: false,
|
||||||
@@ -252,7 +252,8 @@ export default {
|
|||||||
|
|
||||||
// store에 저장된 페이지 정보 및 검색 조건을 불러오기
|
// store에 저장된 페이지 정보 및 검색 조건을 불러오기
|
||||||
let isKeep = false;
|
let isKeep = false;
|
||||||
if (getCondition) {
|
if (getCondition) {
|
||||||
|
console.log(getCondition.perPage);
|
||||||
this.grid.pagePerRows = getCondition.perPage;
|
this.grid.pagePerRows = getCondition.perPage;
|
||||||
this.grid.params = getCondition.params;
|
this.grid.params = getCondition.params;
|
||||||
page = getCondition.page;
|
page = getCondition.page;
|
||||||
|
|||||||
@@ -69,7 +69,8 @@ export default {
|
|||||||
totalItems: 0,
|
totalItems: 0,
|
||||||
totalCnt: 0,
|
totalCnt: 0,
|
||||||
failCnt: 0,
|
failCnt: 0,
|
||||||
insertRowCnt: 0
|
insertRowCnt: 0,
|
||||||
|
sampleList : [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -138,7 +139,9 @@ export default {
|
|||||||
header: this.excelHeader,
|
header: this.excelHeader,
|
||||||
dataOrder: 'header',
|
dataOrder: 'header',
|
||||||
};
|
};
|
||||||
xlsx.export([], saveFileName, options).then(() => {
|
console.log('============');
|
||||||
|
console.log(this.sampleList);
|
||||||
|
xlsx.export(this.sampleList, saveFileName, options).then(() => {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getExcelHeader() {
|
getExcelHeader() {
|
||||||
@@ -146,6 +149,18 @@ export default {
|
|||||||
custMgtApi.getExcelHeader(this.pageType).then((res) => {
|
custMgtApi.getExcelHeader(this.pageType).then((res) => {
|
||||||
this.excelHeader = res;
|
this.excelHeader = res;
|
||||||
});
|
});
|
||||||
|
this.getSampleBody();
|
||||||
|
},
|
||||||
|
getSampleBody() {
|
||||||
|
const tempRow = [
|
||||||
|
{ id : '',
|
||||||
|
userNm : '',
|
||||||
|
mdn : '',
|
||||||
|
email : '',
|
||||||
|
stat : '사용'
|
||||||
|
}
|
||||||
|
];
|
||||||
|
this.sampleList = tempRow;
|
||||||
},
|
},
|
||||||
readFile(event) {
|
readFile(event) {
|
||||||
this.nData = [];
|
this.nData = [];
|
||||||
|
|||||||
@@ -137,7 +137,10 @@ export default {
|
|||||||
this.toComplete();
|
this.toComplete();
|
||||||
} else if (result != null && result.retCode == "4018") {
|
} else if (result != null && result.retCode == "4018") {
|
||||||
// 이미 사용중인 ID
|
// 이미 사용중인 ID
|
||||||
this.$refs.validationConfirmPopModal.validationIdDuplicateOpen();
|
this.row.title = '청약고객관리';
|
||||||
|
this.row.msg1 = '중복된 아이디가 있습니다.';
|
||||||
|
this.row.msg2 = '아이디를 다시 확인하여 등록 부탁드립니다.';
|
||||||
|
this.$parent.$refs.commmonModal.alertModalOpen(this.row);
|
||||||
} else {
|
} else {
|
||||||
this.row.title = '청약고객관리';
|
this.row.title = '청약고객관리';
|
||||||
this.row.msg1 = '실패 하였습니다.';
|
this.row.msg1 = '실패 하였습니다.';
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<div class="popup-wrap confirm-insert">
|
<div class="popup-wrap confirm-insert">
|
||||||
<div class="popup confirm-insert">
|
<div class="popup confirm-insert">
|
||||||
<div class="pop-head">
|
<div class="pop-head">
|
||||||
<h3 class="pop-tit">사용자 등록111111</h3>
|
<h3 class="pop-tit">사용자 등록</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="pop-cont">
|
<div class="pop-cont">
|
||||||
<p>해당 사용자를 등록하고 인증 메일을</p>
|
<p>해당 사용자를 등록하고 인증 메일을</p>
|
||||||
|
|||||||
@@ -232,11 +232,15 @@ export default {
|
|||||||
ValidationConfirmPop,
|
ValidationConfirmPop,
|
||||||
AdminNmPop,
|
AdminNmPop,
|
||||||
commonModal,
|
commonModal,
|
||||||
|
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
console.log(this.$route.params.serviceId);
|
console.log(this.$route.params.serviceId);
|
||||||
|
this.$store.commit("login/isLogin", true);
|
||||||
|
//console.log(this.$route.params);
|
||||||
this.subsDetail(this.$route.params.serviceId);
|
this.subsDetail(this.$route.params.serviceId);
|
||||||
// checkVaildBizNum
|
this.setMenuActive();
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
callAlert(props) {
|
callAlert(props) {
|
||||||
@@ -388,6 +392,16 @@ export default {
|
|||||||
console.log(this.row);
|
console.log(this.row);
|
||||||
this.$router.push({name: 'memberAdminDetail', params: {serviceId: this.row.serviceId}});
|
this.$router.push({name: 'memberAdminDetail', params: {serviceId: this.row.serviceId}});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 메뉴 활성화
|
||||||
|
setMenuActive(){
|
||||||
|
const activedMenu = document.querySelectorAll('.main_menu .is-current');
|
||||||
|
activedMenu[0].classList.remove('is-current');
|
||||||
|
const nowMenu = document.querySelectorAll('.customer');
|
||||||
|
nowMenu[0].classList.add('is-current');
|
||||||
|
|
||||||
|
//menuList.classList.add('is-current');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ export default {
|
|||||||
perPageCnt: 50,
|
perPageCnt: 50,
|
||||||
grid: {
|
grid: {
|
||||||
url: '/api/v1/bo/sendNumMgt/numberList',
|
url: '/api/v1/bo/sendNumMgt/numberList',
|
||||||
pagePerRows: 50,
|
pagePerRows: 20,
|
||||||
pagination: true,
|
pagination: true,
|
||||||
isCheckbox: true,
|
isCheckbox: true,
|
||||||
initialRequest: false,
|
initialRequest: false,
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ export default {
|
|||||||
],
|
],
|
||||||
grid: {
|
grid: {
|
||||||
url: '/api/v1/bo/sendNumMgt/profileList',
|
url: '/api/v1/bo/sendNumMgt/profileList',
|
||||||
pagePerRows: 50,
|
pagePerRows: 20,
|
||||||
pagination: true,
|
pagination: true,
|
||||||
isCheckbox: false,
|
isCheckbox: false,
|
||||||
initialRequest: false,
|
initialRequest: false,
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ router.beforeEach((to, from, next) => {
|
|||||||
const isPublic = to.matched.some(record => record.meta.public);
|
const isPublic = to.matched.some(record => record.meta.public);
|
||||||
const loggedIn = !!tokenSvc.getToken();
|
const loggedIn = !!tokenSvc.getToken();
|
||||||
|
|
||||||
if (!isPublic && !loggedIn) {
|
if (!isPublic && !loggedIn) {
|
||||||
return next('/login');
|
return next('/login');
|
||||||
}else{
|
}else{
|
||||||
var nextUrl = to.fullPath;
|
var nextUrl = to.fullPath;
|
||||||
@@ -85,7 +85,7 @@ router.beforeEach((to, from, next) => {
|
|||||||
const rootUrl = store.getters['login/getRootUrl'];
|
const rootUrl = store.getters['login/getRootUrl'];
|
||||||
if(rootUrl == null){
|
if(rootUrl == null){
|
||||||
return next('/login');
|
return next('/login');
|
||||||
}
|
}
|
||||||
return next(rootUrl);
|
return next(rootUrl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ import "../assets/css/contents.css";
|
|||||||
import "../assets/css/common.css";
|
import "../assets/css/common.css";
|
||||||
import "../assets/css/style.css";
|
import "../assets/css/style.css";
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
|
import tokenSvc from '@/common/token-service';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "hubwebLayout",
|
name: "hubwebLayout",
|
||||||
@@ -39,7 +40,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
// this.getLogin;
|
// this.getLogin;
|
||||||
// this.getAuthChk;
|
// this.getAuthChk;
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.isLogin = this.$store.getters["login/isLogin"]
|
this.isLogin = this.$store.getters["login/isLogin"]
|
||||||
|
|||||||
Reference in New Issue
Block a user