Browse Source

时间筛选范围

dev
巴林闲侠 2 years ago
parent
commit
ca572aee39
  1. 2
      web/client/src/sections/workOrder/containers/aboutMe.jsx
  2. 2
      web/client/src/sections/workOrder/containers/initiated.jsx
  3. 2
      web/client/src/sections/workOrder/containers/preserve.jsx
  4. 2
      web/client/src/sections/workOrder/containers/receipt.jsx
  5. 2
      web/client/src/sections/workOrder/containers/stayDoWorkOrder.jsx

2
web/client/src/sections/workOrder/containers/aboutMe.jsx

@ -132,7 +132,7 @@ const Rest = (props) => {
style={{ position: "relative", width: "100%", flex: 1 }} style={{ position: "relative", width: "100%", flex: 1 }}
onSubmit={(values) => { 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]).format('YYYY-MM-DD HH:mm:ss')] 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 }) backlogData({ ...values, limit: 10, page: 0 })
setQuery({ limit: 10, offset: 0 }); setQuery({ limit: 10, offset: 0 });

2
web/client/src/sections/workOrder/containers/initiated.jsx

@ -188,7 +188,7 @@ const Rest = (props) => {
style={{ position: "relative", width: "100%", flex: 1 }} style={{ position: "relative", width: "100%", flex: 1 }}
onSubmit={(values) => { 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]).format('YYYY-MM-DD HH:mm:ss')] 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 }) backlogData({ ...values, limit: 10, page: 0 })
setQuery({ limit: 10, offset: 0 }); setQuery({ limit: 10, offset: 0 });

2
web/client/src/sections/workOrder/containers/preserve.jsx

@ -147,7 +147,7 @@ const Rest = (props) => {
style={{ position: "relative", width: "100%", flex: 1 }} style={{ position: "relative", width: "100%", flex: 1 }}
onSubmit={(values) => { 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]).format('YYYY-MM-DD HH:mm:ss')] 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 }) backlogData({ ...values, limit: 10, page: 0 })
setQuery({ limit: 10, offset: 0 }); setQuery({ limit: 10, offset: 0 });

2
web/client/src/sections/workOrder/containers/receipt.jsx

@ -135,7 +135,7 @@ const Rest = (props) => {
style={{ position: "relative", width: "100%", flex: 1 }} style={{ position: "relative", width: "100%", flex: 1 }}
onSubmit={(values) => { 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]).format('YYYY-MM-DD HH:mm:ss')] 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 }) backlogData({ ...values, limit: 10, page: 0 })
setQuery({ limit: 10, offset: 0 }); setQuery({ limit: 10, offset: 0 });

2
web/client/src/sections/workOrder/containers/stayDoWorkOrder.jsx

@ -118,7 +118,7 @@ const Rest = (props) => {
style={{ position: "relative", width: "100%", flex: 1 }} style={{ position: "relative", width: "100%", flex: 1 }}
onSubmit={(values) => { 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]).format('YYYY-MM-DD HH:mm:ss')] 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) backlogData(values)
setQuery({ limit: 10, page: 0 }); setQuery({ limit: 10, page: 0 });

Loading…
Cancel
Save