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