|
|
@@ -183,6 +183,7 @@ export default window.$crudCommon({
|
|
|
},
|
|
|
methods: {
|
|
|
refreshTableCol(yearAndMonth) {
|
|
|
+ this.allMonthCols = [];
|
|
|
let yearMonth = moment(yearAndMonth).format("YYYY-MM").split("-");
|
|
|
const monthDays = getMonthDatesWithMarkers(Number(yearMonth[0]), Number(yearMonth[1]));
|
|
|
for (let i=monthDays.length; i<31; i++) {
|
|
|
@@ -210,8 +211,8 @@ export default window.$crudCommon({
|
|
|
align: 'center',
|
|
|
isWorkDay: ChineseHoliday.isWorkday(item.dateString),
|
|
|
showOverflowTooltip: true,
|
|
|
- hide: item.hide
|
|
|
};
|
|
|
+ this.allMonthCols.push(moment(item.dateString).format('yyyyMMDD'),);
|
|
|
}
|
|
|
if (!ChineseHoliday.isWorkday(item.dateString)) {
|
|
|
col.labelClassName = 'red';
|
|
|
@@ -265,6 +266,7 @@ export default window.$crudCommon({
|
|
|
}
|
|
|
return item;
|
|
|
});
|
|
|
+ console.log(data)
|
|
|
return data;
|
|
|
},
|
|
|
});
|