处理alarm模块中,点击search按钮,请求中日期参数不对的问题
This commit is contained in:
parent
3672537dc1
commit
bbbfd5b259
|
@ -117,7 +117,7 @@
|
|||
<a-form-model-item label="Alarm date">
|
||||
<a-range-picker
|
||||
dropdownClassName="asd"
|
||||
:default-value="[moment(queryParams.startDate).subtract(6, 'days'), moment(queryParams.endDate)]"
|
||||
:default-value="[moment(queryParams.startDate), moment(queryParams.endDate)]"
|
||||
@change="onRangeDateChange"
|
||||
/>
|
||||
</a-form-model-item>
|
||||
|
@ -187,8 +187,8 @@ export default {
|
|||
names: undefined,
|
||||
stations: undefined,
|
||||
sources: undefined,
|
||||
startDate: dateFormat(new Date(), 'yyyy-MM-dd'),
|
||||
endDate: dateFormat(new Date(), 'yyyy-MM-dd'),
|
||||
startDate: moment().subtract(6, 'days').format('YYYY-MM-DD'),
|
||||
endDate: moment().format('YYYY-MM-DD'),
|
||||
},
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user