mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-06 23:04:44 +09:00
admin_chrg 달력 수정
This commit is contained in:
@@ -286,8 +286,8 @@ export default {
|
||||
if (type != undefined && type != null) {
|
||||
let initStartDate = new Date();
|
||||
let initEndDate = new Date();
|
||||
initStartDate.setMonth(Number(moment(initStartDate).format('MM')) )
|
||||
initEndDate.setMonth(Number(moment(initEndDate).format('MM')) +12)
|
||||
initStartDate.setMonth(Number(moment(initStartDate).format('MM')) -1)
|
||||
initEndDate.setMonth(Number(moment(initEndDate).format('MM')) +100)
|
||||
|
||||
if (type == 'start') {
|
||||
this.disabledSDate = {to: initStartDate, from: new Date()};
|
||||
@@ -295,10 +295,10 @@ export default {
|
||||
this.disabledEDate = {to: this.startDate, from: initEndDate};
|
||||
}
|
||||
} else if (type == 'end') {
|
||||
this.disabledEDate = {to: initStartDate, from: initEndDate};
|
||||
this.disabledEDate = {to: this.startDate, from: initEndDate};
|
||||
if (this.endDate !== initEndDate) {
|
||||
this.disabledSDate = {from: this.endDate};
|
||||
this.disabledSDate = {to: initStartDate, from: initEndDate};
|
||||
this.disabledSDate = {to: initStartDate, from: this.endDate};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -321,12 +321,12 @@ export default {
|
||||
},
|
||||
initSetStartDate() {
|
||||
let initStartDate = new Date();
|
||||
initStartDate.setMonth(Number(moment(initStartDate).format('MM')) );
|
||||
initStartDate.setMonth(Number(moment(initStartDate).format('MM')) -1);
|
||||
this.startDate = initStartDate;
|
||||
},
|
||||
initSetEndDate() {
|
||||
let initEndDate = new Date();
|
||||
initEndDate.setMonth(Number(moment(initEndDate).format('MM')) +12);
|
||||
initEndDate.setMonth(Number(moment(initEndDate).format('MM')) +1);
|
||||
this.endDate = initEndDate;
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user