|
|
@ -114,6 +114,7 @@ const Server = (props) => { |
|
|
|
title: '解决者', |
|
|
|
//width:20, |
|
|
|
render:(record)=>{ |
|
|
|
// console.log('ressss',record) |
|
|
|
return <span> |
|
|
|
{record?.maintenanceRecordExecuteUsers.map((item)=>{ |
|
|
|
return item.name |
|
|
@ -132,10 +133,11 @@ const Server = (props) => { |
|
|
|
}, |
|
|
|
]; |
|
|
|
const onChangeDate=(e)=> { |
|
|
|
console.log('zzzz',e[0],e[1]) |
|
|
|
setMode('') |
|
|
|
setDateValue(e) |
|
|
|
setStime(moment(dateValue[0]).format('YYYY-MM-DD HH:mm:ss')) |
|
|
|
setEtime(moment(dateValue[1]).format('YYYY-MM-DD HH:mm:ss')) |
|
|
|
setStime(moment(e[0]).format('YYYY-MM-DD HH:mm:ss')) |
|
|
|
setEtime(moment(e[1]).format('YYYY-MM-DD HH:mm:ss')) |
|
|
|
const query={ |
|
|
|
sTime, eTime |
|
|
|
} |
|
|
@ -178,7 +180,7 @@ const addHandler=()=>{ |
|
|
|
<Radio value={'year'}>全年</Radio> |
|
|
|
</RadioGroup> |
|
|
|
<DatePicker type="dateTimeRange" |
|
|
|
onChange={e => onChangeDate(e)} |
|
|
|
onChange={e => onChangeDate(e) } |
|
|
|
density="compact" |
|
|
|
style={{ width: 260 }} |
|
|
|
value={dateValue} |
|
|
@ -195,7 +197,7 @@ const addHandler=()=>{ |
|
|
|
<Button theme='solid' type='secondary' onClick={addHandler}>新增</Button> |
|
|
|
<div style={{display:'flex',alignItems:'baseline',marginLeft:700}}> |
|
|
|
<span >产生时间</span> |
|
|
|
<DatePicker type="dateRange" insetInput style={{ width: 200,marginLeft:10 }} onChange={(e)=>{//console.log('1',e[0],e[1]) |
|
|
|
<DatePicker type="dateRange" insetInput style={{ width: 200,marginLeft:10 }} onChange={(e)=>{ |
|
|
|
setStartTime((e[0])+'');setEndTime(e[1]+'') }} |
|
|
|
onClear={()=>{setStartTime(null);setEndTime(null);setCalculability('')}} /> |
|
|
|
<Button style={{ marginLeft:20 }} onClick={()=>{ |
|
|
|