diff --git a/web/client/src/sections/service/containers/serviceRecord.jsx b/web/client/src/sections/service/containers/serviceRecord.jsx index cd46335..b230808 100644 --- a/web/client/src/sections/service/containers/serviceRecord.jsx +++ b/web/client/src/sections/service/containers/serviceRecord.jsx @@ -11,15 +11,15 @@ const Server = (props) => { //console.log('actions',actions) const {install,service}=actions const [dateValue,setDateValue]=useState([]) - const [mode,setMode]=useState('') + const [mode,setMode]=useState('month') const [modalVis,setModalVis]=useState(false) const [recordRow,setRecordRow]=useState(null) const [recordList,setRecordList]=useState([]) const [pepList, setPepList] = useState([])//角色分配 - const [startTime,setStartTime]=useState('1970-1-1') - const [endTime,setEndTime]=useState('2099-1-1') - const [sTime,setStime]=useState('1970-1-1') - const [eTime,setEtime]=useState('2099-1-1') + const [startTime,setStartTime]=useState('1970-1-1' ) + const [endTime,setEndTime]=useState('2099-1-1') + const [sTime,setStime]=useState(moment().startOf('month').format('YYYY-MM-DD HH:mm:ss')) + const [eTime,setEtime]=useState(moment().endOf('month').format('YYYY-MM-DD HH:mm:ss')) const [calculability,setCalculability]=useState('') const [pageSize,setPageSize]=useState(10) const [pageIndex,setPageIndex]=useState(1) @@ -184,7 +184,7 @@ const addHandler=()=>{