|
|
@@ -175,15 +175,14 @@ export default window.$crudCommon({
|
|
|
return `${yearAndMonthCN}${this.tag.label}`.replace(/每月/g, '');
|
|
|
}
|
|
|
},
|
|
|
- // async created() {
|
|
|
- // this.defaultColumns = deepClone(this.option.column);
|
|
|
- // this.refreshTableCol(this.params.yearAndMonth);
|
|
|
- // },
|
|
|
- // beforeDestroy() {
|
|
|
- // this.option.column = deepClone(this.defaultColumns);
|
|
|
- // },
|
|
|
methods: {
|
|
|
refreshTableCol(yearAndMonth) {
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: '表头加载中...',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
+ });
|
|
|
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++) {
|
|
|
@@ -223,6 +222,7 @@ export default window.$crudCommon({
|
|
|
});
|
|
|
|
|
|
this.option.column = newColumns;
|
|
|
+ loading.close();
|
|
|
},
|
|
|
getFormData() {
|
|
|
const newFormData = { ...this.form, yearAndMonth: this.params.yearAndMonth };
|