Commit 2eecd18b by chenwq

fix(supervisorDaily): 在日期切换时添加获取日期记录调用

在年、月切换和点击月份时添加遗漏的getDateRecord调用,确保日期记录能正确更新
1 parent dd579ef4
...@@ -1304,6 +1304,7 @@ Page({ ...@@ -1304,6 +1304,7 @@ Page({
this.setData(updates); this.setData(updates);
this.resetTempData(); this.resetTempData();
this.getDateRecord();
this.getRecordDetail(); this.getRecordDetail();
}, },
onNextYear() { onNextYear() {
...@@ -1317,12 +1318,14 @@ Page({ ...@@ -1317,12 +1318,14 @@ Page({
this.setData(updates); this.setData(updates);
this.resetTempData(); this.resetTempData();
this.getDateRecord();
this.getRecordDetail(); this.getRecordDetail();
}, },
onMonthClick(e) { onMonthClick(e) {
const { month } = e.detail; const { month } = e.detail;
this.setData({ selectedMonth: month, isChangeTab: true }); this.setData({ selectedMonth: month, isChangeTab: true });
this.resetTempData(); this.resetTempData();
this.getDateRecord();
this.getRecordDetail(); this.getRecordDetail();
}, },
}); });
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!