Browse Source

默认展示本月的可用率

dev
zhaobing 2 years ago
parent
commit
0cc86e3163
  1. 12
      web/client/src/sections/service/containers/serviceRecord.jsx

12
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=()=>{
<div style={{ fontFamily: "YouSheBiaoTiHei", fontSize: 24, color: '#101531', marginLeft: 8 }}>系统可用性</div>
<div style={{marginLeft:350}}>
<RadioGroup onChange={e => onSelect(e)} value={mode} type="button">
<Radio value={'month'}>本月</Radio>
<Radio value={'month'} checked>本月</Radio>
<Radio value={'year'}>全年</Radio>
</RadioGroup>
<DatePicker type="dateTimeRange"

Loading…
Cancel
Save