去掉number函数,解决1-9月不加载假期问题
This commit is contained in:
parent
06e4c1a31c
commit
335ded87eb
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue