|
@@ -95,7 +95,9 @@ const onPage = (pageNum, pageSize) => {
|
|
|
}
|
|
|
// 添加表单参数
|
|
|
if (state.query.formReal.dateType != 0) {
|
|
|
- params.dateType = state.query.formReal.dateType
|
|
|
+ const now = new Date().getTime()
|
|
|
+ params.startTime = proxy.$util.YMDHms(now - 1000 * 60 * 60 * 24 * Number(state.query.formReal.dateType))
|
|
|
+ params.endTime = proxy.$util.YMDHms(now)
|
|
|
} else {
|
|
|
params.startTime = state.query.formReal.dateArea[0]
|
|
|
params.endTime = state.query.formReal.dateArea[1]
|