修改全局的搜索条件时间改完范围搜索

This commit is contained in:
qq787203167
2022-04-02 10:15:50 +08:00
parent 65b7487eb6
commit 5328319e31
3 changed files with 52 additions and 39 deletions
@@ -123,9 +123,13 @@
this.queryParam[item] = moment(this.queryParam[item]).format('YYYY-MM-DD')
},
onChange(item) {
let dateOne = moment(this.queryParam[item][0]).format('YYYY-MM-DD')
let dateTwo = moment(this.queryParam[item][1]).format('YYYY-MM-DD')
this.queryParam[item] = [dateOne, dateTwo]
if (this.queryParam[item] && this.queryParam[item].length > 0) {
let dateOne = moment(this.queryParam[item][0]).format('YYYY-MM-DD')
let dateTwo = moment(this.queryParam[item][1]).format('YYYY-MM-DD')
this.queryParam[item] = [dateOne, dateTwo]
} else {
this.queryParam[item] = []
}
}
}
}