mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 02:59:22 +09:00
대량등록, 사용자ID 등록 팝업 수정
This commit is contained in:
@@ -173,7 +173,7 @@ export default {
|
||||
totalItems: 0,
|
||||
grid: {
|
||||
url: '/api/v1/bo/attractMgt/channelList',
|
||||
pagePerRows: 50,
|
||||
pagePerRows: 20,
|
||||
pagination: true,
|
||||
isCheckbox: false, // true:첫번째 컬럼 앞에 체크박스 생성 / false:체크박스 제거
|
||||
initialRequest: false,
|
||||
@@ -252,7 +252,8 @@ export default {
|
||||
|
||||
// store에 저장된 페이지 정보 및 검색 조건을 불러오기
|
||||
let isKeep = false;
|
||||
if (getCondition) {
|
||||
if (getCondition) {
|
||||
console.log(getCondition.perPage);
|
||||
this.grid.pagePerRows = getCondition.perPage;
|
||||
this.grid.params = getCondition.params;
|
||||
page = getCondition.page;
|
||||
|
||||
@@ -69,7 +69,8 @@ export default {
|
||||
totalItems: 0,
|
||||
totalCnt: 0,
|
||||
failCnt: 0,
|
||||
insertRowCnt: 0
|
||||
insertRowCnt: 0,
|
||||
sampleList : [],
|
||||
};
|
||||
},
|
||||
components: {
|
||||
@@ -138,7 +139,9 @@ export default {
|
||||
header: this.excelHeader,
|
||||
dataOrder: 'header',
|
||||
};
|
||||
xlsx.export([], saveFileName, options).then(() => {
|
||||
console.log('============');
|
||||
console.log(this.sampleList);
|
||||
xlsx.export(this.sampleList, saveFileName, options).then(() => {
|
||||
});
|
||||
},
|
||||
getExcelHeader() {
|
||||
@@ -146,6 +149,18 @@ export default {
|
||||
custMgtApi.getExcelHeader(this.pageType).then((res) => {
|
||||
this.excelHeader = res;
|
||||
});
|
||||
this.getSampleBody();
|
||||
},
|
||||
getSampleBody() {
|
||||
const tempRow = [
|
||||
{ id : '',
|
||||
userNm : '',
|
||||
mdn : '',
|
||||
email : '',
|
||||
stat : '사용'
|
||||
}
|
||||
];
|
||||
this.sampleList = tempRow;
|
||||
},
|
||||
readFile(event) {
|
||||
this.nData = [];
|
||||
|
||||
@@ -137,7 +137,10 @@ export default {
|
||||
this.toComplete();
|
||||
} else if (result != null && result.retCode == "4018") {
|
||||
// 이미 사용중인 ID
|
||||
this.$refs.validationConfirmPopModal.validationIdDuplicateOpen();
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '중복된 아이디가 있습니다.';
|
||||
this.row.msg2 = '아이디를 다시 확인하여 등록 부탁드립니다.';
|
||||
this.$parent.$refs.commmonModal.alertModalOpen(this.row);
|
||||
} else {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="popup-wrap confirm-insert">
|
||||
<div class="popup confirm-insert">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">사용자 등록111111</h3>
|
||||
<h3 class="pop-tit">사용자 등록</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>해당 사용자를 등록하고 인증 메일을</p>
|
||||
|
||||
@@ -232,11 +232,15 @@ export default {
|
||||
ValidationConfirmPop,
|
||||
AdminNmPop,
|
||||
commonModal,
|
||||
|
||||
},
|
||||
created() {
|
||||
console.log(this.$route.params.serviceId);
|
||||
this.$store.commit("login/isLogin", true);
|
||||
//console.log(this.$route.params);
|
||||
this.subsDetail(this.$route.params.serviceId);
|
||||
// checkVaildBizNum
|
||||
this.setMenuActive();
|
||||
|
||||
},
|
||||
methods: {
|
||||
callAlert(props) {
|
||||
@@ -388,6 +392,16 @@ export default {
|
||||
console.log(this.row);
|
||||
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,
|
||||
grid: {
|
||||
url: '/api/v1/bo/sendNumMgt/numberList',
|
||||
pagePerRows: 50,
|
||||
pagePerRows: 20,
|
||||
pagination: true,
|
||||
isCheckbox: true,
|
||||
initialRequest: false,
|
||||
|
||||
@@ -87,7 +87,7 @@ export default {
|
||||
],
|
||||
grid: {
|
||||
url: '/api/v1/bo/sendNumMgt/profileList',
|
||||
pagePerRows: 50,
|
||||
pagePerRows: 20,
|
||||
pagination: true,
|
||||
isCheckbox: false,
|
||||
initialRequest: false,
|
||||
|
||||
Reference in New Issue
Block a user