修改全局的搜索条件时间改完范围搜索
This commit is contained in:
@@ -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] = []
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user