2e716e32 by simon

默认提交

1 parent 8ff75b2a
...@@ -370,12 +370,14 @@ export default { ...@@ -370,12 +370,14 @@ export default {
370 let dateValue = this.dateValue; 370 let dateValue = this.dateValue;
371 let fortmatMonthData = this.fortmatMonthData; 371 let fortmatMonthData = this.fortmatMonthData;
372 fortmatMonthData.forEach((element, idx) => { 372 fortmatMonthData.forEach((element, idx) => {
373 if (element) {
373 let curDate = `${element.year}-${element.month}-${element.date}`; 374 let curDate = `${element.year}-${element.month}-${element.date}`;
374 if (curDate == dateValue && element.disable == true) { 375 if (curDate == dateValue && element.disable == true) {
375 disable = true; 376 disable = true;
376 } 377 }
378 }
377 }); 379 });
378 if(!disable){ 380 if (!disable) {
379 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); 381 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);
380 } 382 }
381 let result = { 383 let result = {
......