mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 09:05:16 +09:00
어드민 수정건 수정
This commit is contained in:
@@ -327,10 +327,12 @@ export default {
|
||||
},
|
||||
setPeriodDay(day) {
|
||||
this.periodDay = day;
|
||||
this.endDate = new Date();
|
||||
this.startDate = moment(this.endDate)
|
||||
.subtract(day, 'day')
|
||||
.toDate();
|
||||
// this.endDate = new Date();
|
||||
// this.startDate = moment(this.endDate)
|
||||
// .subtract(day, 'day')
|
||||
// .toDate();
|
||||
this.initSetStartDate();
|
||||
this.initSetEndDate();
|
||||
|
||||
this.closeDate('start');
|
||||
this.closeDate('end');
|
||||
@@ -426,18 +428,6 @@ export default {
|
||||
async getExcelDataDown() {
|
||||
try {
|
||||
let response;
|
||||
// params: {
|
||||
// startMonth: '',
|
||||
// endMonth: '',
|
||||
// },
|
||||
// const params = {
|
||||
// startDt: this.grid.params.startDt,
|
||||
// endDt: this.grid.params.endDt,
|
||||
// searchType1: this.grid.params.searchType1,
|
||||
// searchType2: this.grid.params.searchType2,
|
||||
// searchType3: this.grid.params.searchType3,
|
||||
// searchText1: this.grid.params.searchText1
|
||||
// };
|
||||
|
||||
response = await calcMgtApi.calcListExcel(this.grid.params);
|
||||
|
||||
@@ -451,6 +441,18 @@ export default {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
initSetStartDate(){
|
||||
let initStartDate = new Date();
|
||||
initStartDate.setMonth(Number(moment(initStartDate).format('MM')) -4);
|
||||
this.startDate = initStartDate;
|
||||
console.log(moment(this.startDate).format('YYYY-MM-DD'));
|
||||
},
|
||||
initSetEndDate(){
|
||||
let initEndDate = new Date();
|
||||
initEndDate.setMonth(Number(moment(initEndDate).format('MM')) -2);
|
||||
this.endDate = initEndDate;
|
||||
console.log(moment(this.endDate).format('YYYY-MM-DD'));
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user