mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-08 21:44:25 +09:00
웹취약점, 모의해킹 조치
This commit is contained in:
@@ -259,7 +259,6 @@ export default {
|
||||
let page = 1;
|
||||
// 페이지 정보 및 검색 조건
|
||||
const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
|
||||
console.log('getCondition : ' + getCondition);
|
||||
|
||||
// store에 저장된 페이지 정보 및 검색 조건을 불러오기
|
||||
let isKeep = false;
|
||||
@@ -274,7 +273,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,
|
||||
@@ -285,18 +283,14 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
search: function (isKeep) {
|
||||
console.log('>>>>>>> search Start >>>>>>');
|
||||
this.grid.params = {
|
||||
startDay: moment(this.startDate).format('YYYYMMDD'),
|
||||
endDay: moment(this.endDate).format('YYYYMMDD'),
|
||||
custNm: this.grid.params.custNm,
|
||||
bizrno: this.grid.params.bizrno
|
||||
};
|
||||
console.log('this.perPageCnt' + this.perPageCnt);
|
||||
console.log(this.grid.params);
|
||||
|
||||
if (moment(this.grid.params.startDay).isBefore(moment(this.grid.params.endDay).subtract(1, 'months').format('YYYYMMDD'))) {
|
||||
//alert('검색 기간은 최대 1개월까지 선택 가능 합니다.');
|
||||
this.row.title = '발송통계';
|
||||
this.row.msg1 = '검색 기간은 최대 1개월까지 선택 가능 합니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
@@ -312,9 +306,6 @@ export default {
|
||||
setPeriodDay(day) {
|
||||
this.periodDay = day;
|
||||
this.endDate = new Date();
|
||||
// this.startDate = moment(this.endDate)
|
||||
// .subtract(day, 'day')
|
||||
// .toDate();
|
||||
this.initSetStartDate();
|
||||
|
||||
this.closeDate('start');
|
||||
@@ -327,8 +318,7 @@ export default {
|
||||
if (this.startDate > this.endDate) {
|
||||
this.startDate = this.endDate;
|
||||
}
|
||||
// console.log(this.disabledSDate)
|
||||
// this.grid.params.startDt = day
|
||||
|
||||
},
|
||||
selectedEndDate(day) {
|
||||
if (day != undefined && day != null) {
|
||||
@@ -361,7 +351,6 @@ export default {
|
||||
},
|
||||
sendStoreData: function () {
|
||||
const getP = this.$refs.table.getPagination();
|
||||
console.log("==========getP : " + getP._currentPage);
|
||||
this.$store.commit('searchcondition/updateSearchCondition', {
|
||||
page: getP._currentPage,
|
||||
perPage: this.perPageCnt,
|
||||
@@ -369,13 +358,11 @@ export default {
|
||||
});
|
||||
|
||||
const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
|
||||
console.log("getCondition : " + getCondition.perPage);
|
||||
},
|
||||
initSetStartDate() {
|
||||
let initStartDate = new Date();
|
||||
initStartDate.setMonth(Number(moment(initStartDate).format('MM')) - 2);
|
||||
this.startDate = initStartDate;
|
||||
console.log(moment(this.startDate).format('YYYY-MM-DD'));
|
||||
},
|
||||
async getExcelDataDown() {
|
||||
try {
|
||||
@@ -409,7 +396,6 @@ export default {
|
||||
header: this.excelHeader,
|
||||
dataOrder: 'header'
|
||||
};
|
||||
// console.log(data);
|
||||
xlsx.export(data.list, saveFileName, options).then(() => {
|
||||
});
|
||||
},
|
||||
|
||||
@@ -264,7 +264,6 @@ export default {
|
||||
let page = 1;
|
||||
// 페이지 정보 및 검색 조건
|
||||
const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
|
||||
console.log('getCondition : ' + getCondition);
|
||||
|
||||
// store에 저장된 페이지 정보 및 검색 조건을 불러오기
|
||||
let isKeep = false;
|
||||
@@ -279,7 +278,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,
|
||||
@@ -290,18 +288,14 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
search: function (isKeep) {
|
||||
console.log('>>>>>>> search Start >>>>>>');
|
||||
this.grid.params = {
|
||||
startMon: moment(this.startDate).format('YYYYMM'),
|
||||
endMon: moment(this.endDate).format('YYYYMM'),
|
||||
custNm: this.grid.params.custNm,
|
||||
bizrno: this.grid.params.bizrno
|
||||
};
|
||||
console.log('this.perPageCnt' + this.perPageCnt);
|
||||
console.log(this.grid.params);
|
||||
|
||||
if (moment(this.grid.params.startMon).isBefore(moment(this.grid.params.endMon).subtract(2, 'months').format('YYYYMM'))) {
|
||||
//alert('검색 기간은 최대 3개월까지 선택 가능 합니다.');
|
||||
this.row.title = '발송통계';
|
||||
this.row.msg1 = '검색 기간은 최대 3개월까지 선택 가능 합니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
@@ -317,9 +311,7 @@ export default {
|
||||
setPeriodDay(day) {
|
||||
this.periodDay = day;
|
||||
this.endDate = new Date();
|
||||
// this.startDate = moment(this.endDate)
|
||||
// .subtract(day, 'day')
|
||||
// .toDate();
|
||||
|
||||
this.initSetStartDate();
|
||||
|
||||
this.closeDate('start');
|
||||
@@ -332,8 +324,7 @@ export default {
|
||||
if (this.startDate > this.endDate) {
|
||||
this.startDate = this.endDate;
|
||||
}
|
||||
// console.log(this.disabledSDate)
|
||||
// this.grid.params.startDt = day
|
||||
|
||||
},
|
||||
selectedEndDate(day) {
|
||||
if (day != undefined && day != null) {
|
||||
@@ -366,7 +357,6 @@ export default {
|
||||
},
|
||||
sendStoreData: function () {
|
||||
const getP = this.$refs.table.getPagination();
|
||||
console.log("==========getP : " + getP._currentPage);
|
||||
this.$store.commit('searchcondition/updateSearchCondition', {
|
||||
page: getP._currentPage,
|
||||
perPage: this.perPageCnt,
|
||||
@@ -374,13 +364,11 @@ export default {
|
||||
});
|
||||
|
||||
const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
|
||||
console.log("getCondition : " + getCondition.perPage);
|
||||
},
|
||||
initSetStartDate() {
|
||||
let initStartDate = new Date();
|
||||
initStartDate.setMonth(Number(moment(initStartDate).format('MM')) - 3);
|
||||
this.startDate = initStartDate;
|
||||
console.log(moment(this.startDate).format('YYYY-MM-DD'));
|
||||
},
|
||||
getExcelHeader() {
|
||||
// 헤더를 mockup으로 관리한다.
|
||||
@@ -395,7 +383,6 @@ export default {
|
||||
response = await statsApi.bsnmMonthListExcel(this.grid.params);
|
||||
|
||||
const result = response.data;
|
||||
console.log(result)
|
||||
if (result != null && result.retCode == "0000") {
|
||||
return result.data;
|
||||
} else {
|
||||
@@ -421,7 +408,6 @@ export default {
|
||||
header: this.excelHeader,
|
||||
dataOrder: 'header'
|
||||
};
|
||||
console.log(data);
|
||||
xlsx.export(data.list, saveFileName, options).then(() => {
|
||||
});
|
||||
},
|
||||
|
||||
@@ -153,13 +153,9 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
async getDayList() {
|
||||
console.log('getDayList Start');
|
||||
this.row.startDay = moment(this.startDate).format('YYYYMMDD');
|
||||
this.row.endDay = moment(this.endDate).format('YYYYMMDD');
|
||||
console.log('검색_시작일시(변환후):' + this.row.startDay);
|
||||
console.log('검색_종료일시(변환후):' + this.row.endDay);
|
||||
if (moment(this.row.startDay).isBefore(moment(this.row.endDay).subtract(1, 'months').format('YYYYMMDD'))) {
|
||||
//alert('검색 기간은 최대 1개월까지 선택 가능 합니다.');
|
||||
this.row.title = '발송통계';
|
||||
this.row.msg1 = '검색 기간은 최대 1개월까지 선택 가능 합니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
@@ -169,61 +165,26 @@ export default {
|
||||
try {
|
||||
const response = await statsApi.dayList(this.row);
|
||||
const result = response.data;
|
||||
console.log(result);
|
||||
if (result != null && result.retCode == "0000") {
|
||||
if (result.data.list.length > 0) {
|
||||
this.list = result.data.list;
|
||||
}
|
||||
this.totalCnt = result.data.list.length;
|
||||
} else {
|
||||
alert("조회정보가 없습니다.");
|
||||
}
|
||||
} catch (err) {
|
||||
alert("실패 하였습니다.");
|
||||
}
|
||||
},
|
||||
toMove(routeName) {
|
||||
this.$router.push({name: routeName, params: {page: 1, searchText: ''}});
|
||||
},
|
||||
search: function () {
|
||||
console.log('검색_시작일시:' + this.startDt);
|
||||
console.log('검색_종료일시:' + this.endDt);
|
||||
this.getDayList();
|
||||
},
|
||||
// calendarCalbackFnc(year, month, day){
|
||||
|
||||
// if(this.openStartPicker){
|
||||
// this.startDate= year +''+ month +''+ day
|
||||
// if(Number(this.endDate) < Number(this.startDate) && this.endDate !== 0){
|
||||
// this.row.title = '발송통계';
|
||||
// this.row.msg1 = '조회 시작일이 종료일보다 큽니다.';
|
||||
// this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
// this.openStartPicker = false
|
||||
// return false
|
||||
// }
|
||||
// this.startDt = year + '-' + month + '-' + day
|
||||
// this.openStartPicker = false
|
||||
// }
|
||||
// if(this.openEndPicker){
|
||||
// this.endDate=year +''+ month +''+ day
|
||||
// if(Number(this.endDate) < Number(this.startDate) && this.startDate !== 0){
|
||||
// this.row.title = '발송통계';
|
||||
// this.row.msg1 = '조회 종료일이 시작일보다 작습니다.';
|
||||
// this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
// this.openEndPicker = false
|
||||
// return false
|
||||
// }
|
||||
// this.endDt = year + '-' + month + '-' + day
|
||||
// this.openEndPicker = false
|
||||
// }
|
||||
// },
|
||||
},
|
||||
|
||||
setPeriodDay(day) {
|
||||
this.periodDay = day;
|
||||
this.endDate = new Date();
|
||||
// this.startDate = moment(this.endDate)
|
||||
// .subtract(day, 'day')
|
||||
// .toDate();
|
||||
this.initSetStartDate();
|
||||
|
||||
this.closeDate('start');
|
||||
@@ -236,8 +197,6 @@ export default {
|
||||
if (this.startDate > this.endDate) {
|
||||
this.startDate = this.endDate;
|
||||
}
|
||||
console.log(this.disabledSDate)
|
||||
// this.grid.params.startDt = day
|
||||
},
|
||||
selectedEndDate(day) {
|
||||
if (day != undefined && day != null) {
|
||||
@@ -268,7 +227,6 @@ export default {
|
||||
let initStartDate = new Date();
|
||||
initStartDate.setMonth(Number(moment(initStartDate).format('MM')) - 2);
|
||||
this.startDate = initStartDate;
|
||||
console.log(moment(this.startDate).format('YYYY-MM-DD'));
|
||||
},
|
||||
|
||||
excelDown() {
|
||||
@@ -287,7 +245,6 @@ export default {
|
||||
header: this.excelHeader,
|
||||
dataOrder: 'header'
|
||||
};
|
||||
// console.log(data);
|
||||
xlsx.export(this.list, saveFileName, options).then(() => {
|
||||
});
|
||||
},
|
||||
|
||||
@@ -155,15 +155,10 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
async getMonthList() {
|
||||
|
||||
console.log('getMonthList Start');
|
||||
this.row.startMon = moment(this.startDate).format('YYYYMM');
|
||||
this.row.endMon = moment(this.endDate).format('YYYYMM');
|
||||
console.log('검색_시작년월:' + this.row.startMon);
|
||||
console.log('검색_종료년월:' + this.row.endMon);
|
||||
|
||||
if (moment(this.row.startMon).isBefore(moment(this.row.endMon).subtract(2, 'months').format('YYYYMM'))) {
|
||||
//alert('검색 기간은 최대 3개월까지 선택 가능 합니다.');
|
||||
this.row.title = '발송통계';
|
||||
this.row.msg1 = '검색 기간은 최대 3개월까지 선택 가능 합니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
@@ -173,30 +168,22 @@ export default {
|
||||
try {
|
||||
const response = await statsApi.monthList(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;
|
||||
} else {
|
||||
alert("조회정보가 없습니다.");
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
alert("실패 하였습니다.");
|
||||
}
|
||||
},
|
||||
search: function () {
|
||||
this.getMonthList();
|
||||
},
|
||||
toMove(routeName) {
|
||||
//this.$router.push({ name: routeName, params: { page: 1, searchText: '' } });
|
||||
this.$router.push({name: routeName, params: {}});
|
||||
},
|
||||
setPeriodDay(day) {
|
||||
this.periodDay = day;
|
||||
this.endDate = new Date();
|
||||
// this.startDate = moment(this.endDate)
|
||||
// .subtract(day, 'day')
|
||||
// .toDate();
|
||||
this.initSetStartDate();
|
||||
|
||||
this.closeDate('start');
|
||||
@@ -209,8 +196,6 @@ export default {
|
||||
if (this.startDate > this.endDate) {
|
||||
this.startDate = this.endDate;
|
||||
}
|
||||
console.log(this.disabledSDate)
|
||||
// this.grid.params.startDt = day
|
||||
},
|
||||
selectedEndDate(day) {
|
||||
if (day != undefined && day != null) {
|
||||
@@ -241,7 +226,6 @@ export default {
|
||||
let initStartDate = new Date();
|
||||
initStartDate.setMonth(Number(moment(initStartDate).format('MM')) - 3);
|
||||
this.startDate = initStartDate;
|
||||
console.log(moment(this.startDate).format('YYYY-MM-DD'));
|
||||
},
|
||||
excelDown() {
|
||||
if (this.list.length <= 0) {
|
||||
@@ -290,7 +274,6 @@ export default {
|
||||
dataOrder: 'header'
|
||||
};
|
||||
|
||||
// console.log(data);
|
||||
xlsx.export(this.list, saveFileName, options).then(() => {
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user