From 39842a546bdf6e0b4a2069652ba1710ca781139c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zhaobing=E2=80=99?= Date: Mon, 11 Dec 2023 14:56:49 +0800 Subject: [PATCH] feat:fix bugs --- .../sections/patrolManage/components/addReportRulesModal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/client/src/sections/patrolManage/components/addReportRulesModal.js b/web/client/src/sections/patrolManage/components/addReportRulesModal.js index b40da70..0ee0dd5 100644 --- a/web/client/src/sections/patrolManage/components/addReportRulesModal.js +++ b/web/client/src/sections/patrolManage/components/addReportRulesModal.js @@ -83,8 +83,8 @@ const AddReportRulesModal = props => { type: values.type, system:values.system, structure: Array.isArray(values.structure) ? [...values.structure] : [values.structure], - endTime: moment(values.timeRange[1]).startOf('day').format('YYYY-MM-DD HH:mm:ss'), - startTime: moment(values.timeRange[0]).endOf('day').format('YYYY-MM-DD HH:mm:ss'), + endTime: moment(values.timeRange[1]).endOf('day').format('YYYY-MM-DD HH:mm:ss'), + startTime: moment(values.timeRange[0]).startOf('day').format('YYYY-MM-DD HH:mm:ss'), reportpic: values?.pic[0]?.name ? values?.pic.map(u => u.storageUrl) : modalData?.reportpic, } dispatch(patrolManage.postReport(params)).then(res => {