From 0cc86e3163f0725b6c9bf0782e8ac4d81f86a575 Mon Sep 17 00:00:00 2001 From: zhaobing Date: Wed, 21 Jun 2023 17:51:15 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=B1=95=E7=A4=BA=E6=9C=AC?= =?UTF-8?q?=E6=9C=88=E7=9A=84=E5=8F=AF=E7=94=A8=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sections/service/containers/serviceRecord.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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=()=>{
系统可用性
onSelect(e)} value={mode} type="button"> - 本月 + 本月 全年