还原 addDateRange js 函数

This commit is contained in:
RuoYi 2020-08-13 12:08:24 +08:00
parent 8f9f0c04cc
commit d596d5bb8e
1 changed files with 8 additions and 5 deletions

View File

@ -54,12 +54,15 @@ export function resetForm(refName) {
}
// 添加日期范围
export function addDateRange (params = {}, dateRange) {
if (dateRange != null && dateRange !== '') {
params.beginTime = this.dateRange[0]
params.endTime = this.dateRange[1]
export function addDateRange(params, dateRange) {
var search = params;
search.beginTime = "";
search.endTime = "";
if (null != dateRange && '' != dateRange) {
search.beginTime = this.dateRange[0];
search.endTime = this.dateRange[1];
}
return params
return search;
}
// 回显数据字典