Browse Source

feat:抽查的查询优化

dev
zhaobing 1 year ago
parent
commit
b440605225
  1. 4
      web/client/src/sections/fillion/containers/maintenanceSpotCheck.js

4
web/client/src/sections/fillion/containers/maintenanceSpotCheck.js

@ -282,7 +282,7 @@ const MaintenanceSpotCheck = (props) => {
const [previewId, setPreviewId] = useState(0)
const [reportData, setReportData] = useState([])
const [detailVisible, setDetailVisible] = useState(false)
const [dateRange, setDateRange] = useState();
const [dateRange, setDateRange] = useState(['1970-1-1', '2099-12-31']);
const { RangePicker } = DatePicker
//console.log('reportData', reportData)
@ -424,7 +424,7 @@ const MaintenanceSpotCheck = (props) => {
}
const lookhandler = () => {
if ((dateRange && dateRange instanceof Array && dateRange[0] != '')) {
queryData({ startTime: moment(dateRange[0]).startOf('day').format('YYYY-MM-DD HH:mm:ss'), endTime: moment(dateRange[1]).startOf('day').format('YYYY-MM-DD HH:mm:ss') })
queryData({ startTime: moment(dateRange[0]).startOf('day').format('YYYY-MM-DD HH:mm:ss'), endTime: moment(dateRange[1]).endOf('day').format('YYYY-MM-DD HH:mm:ss') })
}
}
return (

Loading…
Cancel
Save