|
|
@@ -404,7 +404,7 @@ export default {
|
|
|
dayjs(calendarDate).subtract(1, "month").startOf("month")
|
|
|
);
|
|
|
let eDate = new Date(dayjs(calendarDate).add(1, "month").endOf("month"));
|
|
|
- this.queryParams.range = [sDate, eDate];
|
|
|
+ this.queryParams.range = [sDate, eDate];
|
|
|
this.isNeedLoadedCalendarDate=true;
|
|
|
this.changeMonthText();
|
|
|
this.getList();
|
|
|
@@ -535,6 +535,12 @@ export default {
|
|
|
// console.log(this.queryParams, "pages");
|
|
|
tableList(this.queryParams)
|
|
|
.then((response) => {
|
|
|
+ if(response.rows)
|
|
|
+ {
|
|
|
+ response.rows.forEach(x => {
|
|
|
+ if(x.isDuty==null) x.isDuty="0"
|
|
|
+ });
|
|
|
+ }
|
|
|
this.tableList = response.rows;
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
|
@@ -585,6 +591,7 @@ export default {
|
|
|
}
|
|
|
editWorkTime(this.formData).then((res) => {
|
|
|
this.$message.success("保存成功");
|
|
|
+ this.isNeedLoadedCalendarDate=true;
|
|
|
this.getList();
|
|
|
});
|
|
|
});
|
|
|
@@ -647,6 +654,7 @@ export default {
|
|
|
console.log("submitCopyMouth", data);
|
|
|
addWorkTimeDay(data).then((res) => {
|
|
|
this.$message.success("保存成功");
|
|
|
+ this.isNeedLoadedCalendarDate=true;
|
|
|
this.getList();
|
|
|
});
|
|
|
},
|