mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 02:16:34 +09:00
웹취약점, 모의해킹 조치
This commit is contained in:
@@ -163,8 +163,6 @@ export default {
|
||||
let page = 1;
|
||||
// 페이지 정보 및 검색 조건
|
||||
const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
|
||||
console.log('getCondition : ' + getCondition);
|
||||
console.log(getCondition)
|
||||
// store에 저장된 페이지 정보 및 검색 조건을 불러오기
|
||||
let isKeep = false;
|
||||
if (getCondition) {
|
||||
@@ -177,32 +175,26 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
search: function (isKeep) {
|
||||
console.log(isKeep)
|
||||
console.log('this.perPageCnt' + this.perPageCnt);
|
||||
//console.log(this.grid.params);
|
||||
this.grid.params.searchType1 = this.searchType1
|
||||
this.grid.params.searchType2 = this.searchType2
|
||||
this.$refs.table.search(this.grid.params, isKeep);
|
||||
this.sendStoreData();
|
||||
},
|
||||
detailPop(props) {
|
||||
// this.getMainSlot().popupView(4);
|
||||
// this.setDtlPpPrm(props);
|
||||
|
||||
this.$refs.adminDetailModal.adminDetailModalOpen(props);
|
||||
},
|
||||
ModalOpen: function (target) {
|
||||
//this.$refs.systemModal.ModalOpen(target);
|
||||
|
||||
},
|
||||
adminRegPopOpen: function () {
|
||||
this.$refs.adminRegModal.ModalOpen(1);
|
||||
},
|
||||
adminReg2PopOpen: function () {
|
||||
this.$refs.adminRegModal.ModalOpen(2);
|
||||
//this.$refs.adminReg2Modal.adminReg2ModalOpen();//
|
||||
},
|
||||
doValidate() { //로우데이터 삭제하도록 수정
|
||||
|
||||
console.log("totalItems >> " + this.totalItems);
|
||||
if (this.totalItems == 0) {
|
||||
this.row.title = '관리자/유치채널 관리';
|
||||
this.row.msg1 = '검색 결과가 없습니다.';
|
||||
@@ -216,18 +208,13 @@ export default {
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
// for(var i = 0; i < chkList.length; i++){
|
||||
// alert(chkList[i].adminId);
|
||||
// }
|
||||
|
||||
const param = chkList.map((row) => ({adminId: row.adminId}));
|
||||
console.log(param)
|
||||
this.row.list = param;
|
||||
console.log(this.row);
|
||||
return true;
|
||||
},
|
||||
sendStoreData: function () {
|
||||
const getP = this.$refs.table.getPagination();
|
||||
console.log("==========getP : " + getP);
|
||||
this.$store.commit('searchcondition/updateSearchCondition', {
|
||||
page: getP._currentPage,
|
||||
perPage: this.perPageCnt,
|
||||
@@ -235,7 +222,6 @@ export default {
|
||||
});
|
||||
|
||||
const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
|
||||
//console.log("getCondition : "+ getCondition.perPage);
|
||||
},
|
||||
setCodeData() {
|
||||
|
||||
@@ -272,7 +258,6 @@ export default {
|
||||
}
|
||||
},
|
||||
confirmCalbackFnc(props) {
|
||||
console.log(props)
|
||||
if (props.result) {
|
||||
this.deleteRow();
|
||||
}
|
||||
@@ -282,7 +267,6 @@ export default {
|
||||
beforeRouteLeave(to, from, next) {
|
||||
|
||||
const getP = this.$refs.table.getPagination();
|
||||
console.log("==========getP : " + getP._currentPage);
|
||||
this.$store.commit('searchcondition/updateSearchCondition', {
|
||||
page: getP._currentPage,
|
||||
perPage: this.perPageCnt,
|
||||
|
||||
@@ -222,7 +222,6 @@ export default {
|
||||
this.row.title = '시스템관리';
|
||||
this.row.msg1 = '권한명을 입력해 주세요.';
|
||||
this.row.focusTaget = '1';
|
||||
console.log(this.row)
|
||||
this.$refs.commmonModal.alertSysModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
@@ -296,7 +295,6 @@ export default {
|
||||
this.row.stat = this.stat;
|
||||
this.row.list = listArr;
|
||||
|
||||
console.log(this.row);
|
||||
|
||||
try {
|
||||
let response = await sysMgtApi.insertAuth(this.row);
|
||||
|
||||
@@ -80,12 +80,9 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
async getAuthList() {
|
||||
console.log('getAuthList Start');
|
||||
//this.row.serviceId = serviceId;
|
||||
try {
|
||||
const response = await sysMgtApi.authList(this.row);
|
||||
const result = response.data;
|
||||
console.log(result);
|
||||
if (result != null && result.retCode == "0000") {
|
||||
this.list = result.data.list;
|
||||
this.totalCnt = result.data.list.length;
|
||||
@@ -101,11 +98,9 @@ export default {
|
||||
}
|
||||
},
|
||||
insertAuth() {
|
||||
//console.log("권한추가 페이지 이동");
|
||||
this.$router.push({name: 'authAdd'});
|
||||
},
|
||||
updateAuth(target) {
|
||||
//console.log("수정페이지로 이동:"+target);
|
||||
this.$router.push({name: 'authModify', params: {targetAuthCd: target}});
|
||||
},
|
||||
authDelete(target) {
|
||||
@@ -115,8 +110,6 @@ export default {
|
||||
this.$refs.commmonModal.confirmModalOpen2(this.row);
|
||||
},
|
||||
async deleteAuth() {
|
||||
//console.log("삭제처리:"+target);
|
||||
//this.row.authCd = target;
|
||||
try {
|
||||
let response = await sysMgtApi.deleteAuth(this.row);
|
||||
const result = response.data;
|
||||
@@ -142,7 +135,6 @@ export default {
|
||||
}
|
||||
},
|
||||
confirmCalbackFnc(props) {
|
||||
console.log(props)
|
||||
if (props.result) {
|
||||
this.deleteAuth();
|
||||
}
|
||||
|
||||
@@ -273,13 +273,11 @@ export default {
|
||||
|
||||
},
|
||||
async authDetail() {
|
||||
//console.log(this.$route.params.targetAuthCd);
|
||||
this.row.authCd = this.$route.params.targetAuthCd;
|
||||
try {
|
||||
const response = await sysMgtApi.authDetail(this.row);
|
||||
const result = response.data;
|
||||
|
||||
console.log(result);
|
||||
if (result != null && result.retCode == "0000") {
|
||||
this.authCd = result.data.authCd;
|
||||
this.authNm = result.data.authNm;
|
||||
@@ -301,7 +299,6 @@ export default {
|
||||
}
|
||||
|
||||
} else {
|
||||
//alert("실패 하였습니다.");
|
||||
this.row.title = '시스템관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.row.focusTaget = '0';
|
||||
@@ -309,7 +306,6 @@ export default {
|
||||
return false;
|
||||
}
|
||||
} catch (err) {
|
||||
//alert("처리 실패 하였습니다.");
|
||||
this.row.title = '시스템관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.row.focusTaget = '0';
|
||||
@@ -348,17 +344,13 @@ export default {
|
||||
this.row.stat = this.stat;
|
||||
this.row.list = listArr;
|
||||
|
||||
console.log(this.row);
|
||||
|
||||
try {
|
||||
let response = await sysMgtApi.updateAuth(this.row);
|
||||
const result = response.data;
|
||||
if (result != null && result.retCode == "0000") {
|
||||
//alert('저장 하였습니다.');
|
||||
// 권한리스트 페이지 이동
|
||||
this.$router.push({name: 'authList'});
|
||||
} else {
|
||||
//alert("실패 하였습니다.");
|
||||
this.row.title = '시스템관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.row.focusTaget = '0';
|
||||
@@ -381,6 +373,8 @@ export default {
|
||||
this.$refs._authNm.focus();
|
||||
} else if (this.row.focusTaget === '2') {
|
||||
this.$refs._authCd.focus();
|
||||
}else if(this.row.focusTaget === '0'){
|
||||
this.$router.push({name: 'authList'});
|
||||
}
|
||||
},
|
||||
confirmCalbackFnc(props) {
|
||||
@@ -396,7 +390,6 @@ export default {
|
||||
return this.defaultAuthMenu.length === this.checkedAuthMenu.length;
|
||||
},
|
||||
set: function (e) {
|
||||
//this.checkedAuthMenu = e ? this.defaultAuthMenu : [];
|
||||
if (e) {
|
||||
this.checkedAuthMenu = this.defaultAuthMenu;
|
||||
if (this.channelAuth === '') {
|
||||
|
||||
Reference in New Issue
Block a user