Commit 90d9ba7d by zhangxw

筛选组件日期默认选中问题修改

1 parent 6d625904
......@@ -84,7 +84,7 @@ Component({
onFilterTagTap(e) {
const index = e.currentTarget.dataset.index;
const filter = this.properties.filters[index];
const currentValue = this.data.formData[filter.key];
// const currentValue = this.data.formData[filter.key];
let minDate = new Date(2020, 0, 1).getTime();
let maxDate = new Date(new Date().getFullYear() + 5, 11, 31).getTime();
......@@ -110,7 +110,7 @@ Component({
minDate,
maxDate
});
const currentValue = this.data.searchObj[filter.key]
if (filter.type === "month") {
this.initDatePicker(currentValue, filter.pickerType);
} else if (filter.type === "select") {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!