加上清除逻辑
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user