Commit dc9085a6 by 李伟康

fix(usedCar-tool): 防止重复选择相同日期时触发不必要的更新

当用户选择与当前日期相同的日期时,避免执行后续的日期变更逻辑,
以提高性能并防止潜在的重复请求问题。
1 parent 8cccd930
...@@ -166,6 +166,7 @@ export default { ...@@ -166,6 +166,7 @@ export default {
} }
}, },
changeDate (e) { changeDate (e) {
if(e.fullDate == this.currentDate) return
let dailyReportRef = this.$refs['detail-DailyReport-Ref'] let dailyReportRef = this.$refs['detail-DailyReport-Ref']
if(dailyReportRef){ if(dailyReportRef){
let { isDateWithin7Days , orderObj , isFilled} = dailyReportRef let { isDateWithin7Days , orderObj , isFilled} = dailyReportRef
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!