mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-25 16:51:52 +08:00
优化 addDateRange js 函数
This commit is contained in:
parent
876ecf21c7
commit
503dd64e3f
@ -54,15 +54,12 @@ export function resetForm(refName) {
|
||||
}
|
||||
|
||||
// 添加日期范围
|
||||
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 search;
|
||||
export function addDateRange (params = {}, dateRange) {
|
||||
if (dateRange != null && dateRange !== '') {
|
||||
params.beginTime = this.dateRange[0]
|
||||
params.endTime = this.dateRange[1]
|
||||
}
|
||||
return params
|
||||
}
|
||||
|
||||
// 回显数据字典
|
||||
|
Loading…
Reference in New Issue
Block a user