加上清除逻辑

This commit is contained in:
stt
2025-11-14 11:18:54 +08:00
parent f82ef923ae
commit cd565c03ca
4 changed files with 34 additions and 61 deletions

View File

@@ -60,11 +60,11 @@ const selectChange = (showSelect: any, height: any, datePickerValue?: any) => {
headerHeight.value = height
// 如果有传入 datePicker 的值
if (datePickerValue) {
// 更新表格参数
tableStore.table.params.searchBeginTime = datePickerValue.timeValue?.[0]
tableStore.table.params.searchEndTime = datePickerValue.timeValue?.[1]
}
// if (datePickerValue) {
// // 更新表格参数
// tableStore.table.params.searchBeginTime = datePickerValue.timeValue?.[0]
// tableStore.table.params.searchEndTime = datePickerValue.timeValue?.[1]
// }
}
const tableStore: any = new TableStore({
@@ -116,6 +116,9 @@ const tableStore: any = new TableStore({
}
}
console.log('beginTime0000', beginTime)
console.log('prop.timeValue?.[0]111', prop.timeValue?.[0])
// 如果缓存中没有则使用默认值
tableStore.table.params.searchBeginTime = beginTime || prop.timeValue?.[0]
tableStore.table.params.searchEndTime = endTime || prop.timeValue?.[1]