From b0a5f16146db573dd64c98cf43e0d1638e2c6536 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Fri, 16 Jun 2023 17:57:52 +0800 Subject: [PATCH] +8h --- web/client/src/sections/workOrder/containers/initiated.jsx | 4 ++-- web/client/src/sections/workOrder/containers/receipt.jsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/client/src/sections/workOrder/containers/initiated.jsx b/web/client/src/sections/workOrder/containers/initiated.jsx index 62e63be..e0cb349 100644 --- a/web/client/src/sections/workOrder/containers/initiated.jsx +++ b/web/client/src/sections/workOrder/containers/initiated.jsx @@ -93,7 +93,7 @@ const Rest = (props) => { }, { title: '提交时间', dataIndex: 'submissionTime', - render: (text, record, index) => text && moment(text).format('YYYY-MM-DD HH:mm:ss') || '--' + render: (text, record, index) => text && moment(text).add(8, 'hours').format('YYYY-MM-DD HH:mm:ss') || '--' }, { title: '期望完成时间', dataIndex: 'expectTime', @@ -187,7 +187,7 @@ const Rest = (props) => { layout="horizontal" style={{ position: "relative", width: "100%", flex: 1 }} onSubmit={(values) => { - if (values?.applyTimes?.length) { + if (values?.applyTimes?.length) { values.applyTimes = [moment(values?.applyTimes[0]).format('YYYY-MM-DD HH:mm:ss'), moment(values?.applyTimes[1]).endOf('day').format('YYYY-MM-DD HH:mm:ss')] } backlogData({ ...values, limit: 10, page: 0 }) diff --git a/web/client/src/sections/workOrder/containers/receipt.jsx b/web/client/src/sections/workOrder/containers/receipt.jsx index ea21b78..09ceaf8 100644 --- a/web/client/src/sections/workOrder/containers/receipt.jsx +++ b/web/client/src/sections/workOrder/containers/receipt.jsx @@ -103,7 +103,7 @@ const Rest = (props) => { }, { title: '提交时间', dataIndex: 'submissionTime', - render: (text, record, index) => text && moment(text).format('YYYY-MM-DD HH:mm:ss') || '--' + render: (text, record, index) => text && moment(text).add(8, 'hours').format('YYYY-MM-DD HH:mm:ss') || '--' }, { title: '期望完成时间', dataIndex: 'expectTime',