2e716e32 by simon

默认提交

1 parent 8ff75b2a
......@@ -370,12 +370,14 @@ export default {
let dateValue = this.dateValue;
let fortmatMonthData = this.fortmatMonthData;
fortmatMonthData.forEach((element, idx) => {
let curDate = `${element.year}-${element.month}-${element.date}`;
if (curDate == dateValue && element.disable == true) {
disable = true;
if (element) {
let curDate = `${element.year}-${element.month}-${element.date}`;
if (curDate == dateValue && element.disable == true) {
disable = true;
}
}
});
if(!disable){
if (!disable) {
disable = !/^((?!0000)[0-9]{4}-((0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-8])|(0[13-9]|1[0-2])-(29|30)|(0[13578]|1[02])-31)|([0-9]{2}(0[48]|[2468][048]|[13579][26])|(0[48]|[2468][048]|[13579][26])00)-02-29)$/.test(dateValue);
}
let result = {
......