Commit ab5a763b authored by youjie's avatar youjie

发团日期限制

parent b384cda2
......@@ -1465,6 +1465,11 @@
},
data() {
return {
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now();
}
},
GroupTypeVisible: false,
GroupTypeObj: {},
dialog: {
......@@ -1704,12 +1709,20 @@
pickerBeginDateBefore: {
disabledDate: time => {
if (this.queryMsg.EndGroupDate == null) {
return false;
if(this.queryMsg.StartGroupDate){
let endTime = this.TourDateRestrictions()
return time && endTime.getTime() >= time.getTime();
}else return false;
} else {
if(this.queryMsg.StartGroupDate){
let endTime = this.TourDateRestrictions()
return time && endTime.getTime() >= time.getTime();
}else{
let endTime = new Date(this.queryMsg.EndGroupDate);
return endTime.getTime() < time.getTime();
}
}
}
},
pickerBeginDateAfter: {
disabledDate: time => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment