去掉number函数,解决1-9月不加载假期问题

This commit is contained in:
zmrid 2023-02-17 20:55:21 +08:00
parent 06e4c1a31c
commit 335ded87eb
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@
this.http.post('/api/Cal_Holiday/getPageData', param, true).then((result) => { this.http.post('/api/Cal_Holiday/getPageData', param, true).then((result) => {
result.rows.forEach(theDay => { result.rows.forEach(theDay => {
var timearr = theDay.TheDay.replace(" ", ":").replace(/\:/g, "-").split("-"); var timearr = theDay.TheDay.replace(" ", ":").replace(/\:/g, "-").split("-");
var timestr = timearr[0] + "-" + Number(timearr[1]) + "-" + timearr[2]; var timestr = timearr[0] + "-" + timearr[1] + "-" + timearr[2];
if (theDay.HolidayType == 'HOLIDAY') { if (theDay.HolidayType == 'HOLIDAY') {
this.holidayList.push(timestr); this.holidayList.push(timestr);
} else { } else {